mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Harden TUI subagent navigation (#39088)
## What changed - Use `/subagents` consistently for the subagent picker and status UI, removing the `/agent` alias. - Rejoin already-loaded subagent threads without overriding their existing settings. - Route notifications and approval requests only to the active thread or its known subagents, discard unrelated startup events, and avoid replaying resolved approvals. ## Testing - Add coverage for filtering buffered startup events, dropping resolved approvals, preserving owned subagent approvals, and resuming threads without setting overrides. GitOrigin-RevId: b4e597f7cd4756faccf31d8b964e7a172f5ab0eb
This commit is contained in:
1 parent
fc6268ad38
commit
0c14c73471
19 files changed
+401
-46
No files matched your search
@@ -1355,7 +1355,11 @@ impl App {
|
||||
}
|
||||
|
||||
match app_server
|
||||
.resume_thread(self.config.clone(), thread_id, self.resume_model_settings())
|
||||
.resume_thread(
|
||||
self.config.clone(),
|
||||
thread_id,
|
||||
crate::app_server_session::ResumeModelSettings::PreserveExistingThread,
|
||||
)
|
||||
.await
|
||||
{
|
||||
Ok(started) => {
|
||||
@@ -1407,7 +1411,7 @@ impl App {
|
||||
.retain(ThreadEventStore::event_survives_session_refresh);
|
||||
}
|
||||
|
||||
/// Opens the `/agent` picker after refreshing cached labels for known threads.
|
||||
/// Opens the `/subagents` picker after refreshing cached labels for known threads.
|
||||
///
|
||||
/// The picker state is derived from long-lived thread channels plus best-effort metadata
|
||||
/// refreshes from the backend. Refresh failures are treated as "thread is only inspectable by
|
||||
|
||||
Reference in new issue
Block a user