agent-joule/crates/collab/tests/integration/collab_tests.rs
David Charlot 51bd1a2181 Step 2: rip the agent stack (~200k LOC)
Delete the AI agent/assistant layer entirely (to be replaced by our own loop):
- Removed crates: agent, agent_ui, agent_servers, acp_thread, acp_tools,
  skill_creator, eval_cli, eval_utils, sidebar (sidebar existed only to host
  the agent thread UI). ~200k LOC / ~190 files gone.
- Cut all agent init + panel lifecycle + zed:// URL handlers from main.rs/zed.rs/
  open_listener.rs; removed settings_ui tool-permissions page; dropped agent
  dev-deps and agent_sharing tests from collab/remote_server.

Kept (structurally needed by retained crates, defer to later cleanup):
- agent_skills  (prompt_store ProjectContext + rules_to_skills_migration; also
  auto_update_ui, settings_ui skills page)
- ai_onboarding (edit_prediction onboarding modal/upsell; language_models cloud)

cargo check --workspace is GREEN (0 errors, 13 warnings). Residual: a few
test-only / visual-test-gated files still ref the deleted agent crate
(visual_test_runner.rs, remote_server remote_editing_tests.rs) — not in the
default build; cleanup tracked for follow-up.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-05-31 05:01:45 -04:00

53 lines
1.5 KiB
Rust

use call::Room;
use client::ChannelId;
use gpui::{Entity, TestAppContext};
mod auto_watch_tests;
mod channel_buffer_tests;
mod channel_guest_tests;
mod channel_tests;
mod collab_panel_tests;
mod db_tests;
mod editor_tests;
mod following_tests;
mod git_tests;
mod integration_tests;
mod notification_tests;
mod random_channel_buffer_tests;
mod random_project_collaboration_tests;
mod randomized_test_helpers;
mod remote_editing_collaboration_tests;
mod test_server;
pub use randomized_test_helpers::{
RandomizedTest, TestError, UserTestPlan, run_randomized_test, save_randomized_test_plan,
};
pub use test_server::{TestClient, TestServer};
#[derive(Debug, Eq, PartialEq)]
struct RoomParticipants {
remote: Vec<String>,
pending: Vec<String>,
}
fn room_participants(room: &Entity<Room>, cx: &mut TestAppContext) -> RoomParticipants {
room.read_with(cx, |room, _| {
let mut remote = room
.remote_participants()
.values()
.map(|participant| participant.user.github_login.clone().to_string())
.collect::<Vec<_>>();
let mut pending = room
.pending_participants()
.iter()
.map(|user| user.github_login.clone().to_string())
.collect::<Vec<_>>();
remote.sort();
pending.sort();
RoomParticipants { remote, pending }
})
}
fn channel_id(room: &Entity<Room>, cx: &mut TestAppContext) -> Option<ChannelId> {
cx.read(|cx| room.read(cx).channel_id())
}