Add task mentions to the TUI composer (#40315)

## What changed

- Include matching Codex tasks in the `@` mention popup when the active thread supports task tools, prioritizing tasks from the current working directory.
- Submit selected tasks as bounded live thread references so Codex can load their contents with `read_thread`.
- Preserve task mentions across composer history and thread start, resume, and fork flows.

## Testing

- Add coverage for task search and capability propagation, popup selection and rendering, submission encoding, history round-trips, and reference validation and limits.

GitOrigin-RevId: 17502be91bf6d4b01745668829eb69fb318cb5b9
This commit is contained in:
Eric Traut authored and copyberry committed 2026-08-24 02:46:56 +00:00
1 parent a8468330bb
commit 76d98a771e
30 files changed
+1317 -44

No files matched your search

+2
View File
@@ -4764,6 +4764,7 @@ async fn primary_thread_ignores_child_mcp_startup_notifications() {
session: test_thread_session(child_thread_id, test_path_buf("/tmp/child")),
turns: Vec::new(),
blocks_direct_input: false,
task_tools_available: false,
},
&mut child_snapshot,
)
@@ -7652,6 +7653,7 @@ async fn refreshed_snapshot_session_persists_resumed_turns() {
session: resumed_session.clone(),
turns: resumed_turns.clone(),
blocks_direct_input: true,
task_tools_available: false,
},
&mut snapshot,
)