mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
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:
1 parent
a8468330bb
commit
76d98a771e
30 files changed
+1317
-44
No files matched your search
@@ -26,6 +26,8 @@ impl AppServerSession {
|
||||
self.background_rollout_migration_enabled = config
|
||||
.features
|
||||
.enabled(Feature::BackgroundPaginatedRolloutMigration);
|
||||
self.task_tool_capabilities_dir = (!self.uses_embedded_app_server())
|
||||
.then(|| config.codex_home.join("tui-thread-reference-capabilities"));
|
||||
self
|
||||
}
|
||||
|
||||
@@ -146,6 +148,10 @@ impl AppServerSession {
|
||||
started_thread_from_resume_response(response, &config, self.thread_params_mode())
|
||||
.await?;
|
||||
started.session.fork_parent_title = fork_parent_title;
|
||||
if self.task_tools_available(thread_id) {
|
||||
self.remember_task_tool_thread(thread_id);
|
||||
started.task_tools_available = true;
|
||||
}
|
||||
Ok(started)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user