重构会话agent连接、初始化、加载配置流程

This commit is contained in:
xintaofei
2026-03-26 19:55:28 +08:00
parent 484cb3557a
commit d1eaa8f725
17 changed files with 154 additions and 28 deletions

View File

@@ -643,7 +643,10 @@ async fn run_connection(
},
);
// Emit connected status
// Emit connected status early so the frontend can show cached
// selectors and enable sending while the session initialises.
// Prompts sent before run_conversation_loop are buffered in
// the cmd_rx channel and processed as soon as the loop starts.
crate::web::event_bridge::emit_event(
&handle,
"acp://event",