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
@@ -1723,13 +1723,13 @@ async fn open_agent_picker_preserves_running_hints_until_observed_completion() -
|
||||
let event = app_event_rx.try_recv().expect("agent status history cell");
|
||||
if let AppEvent::InsertHistoryCell(cell) = event {
|
||||
let rendered = lines_to_single_string(&cell.display_lines(/*width*/ 80));
|
||||
if rendered.contains("/agent") {
|
||||
if rendered.contains("/subagents") {
|
||||
break rendered;
|
||||
}
|
||||
}
|
||||
};
|
||||
assert_snapshot!(status, @r###"
|
||||
/agent
|
||||
/subagents
|
||||
Sub-agents running
|
||||
|
||||
• `/root/child`
|
||||
|
||||
Reference in new issue
Block a user