feat: native /goal for Codex and Claude, with goal status in the UI (#15592)

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
This commit is contained in:
Theo BrowneandClaude Opus 5.5 authored and GitHub committed 2026-10-05 14:12:29 -07:00
1 parent f32c23cf1a
commit a172e1c4e8
26 files changed
+2326 -204

No files matched your search

+13
View File
@@ -193,6 +193,19 @@ Provider commands must start the message to run. T3 Code commands such as
Send `/compact` in an existing conversation to reduce context usage when the
provider supports it. Web and desktop also offer compaction from the context meter.
## Goals
With Codex and Claude, send `/goal` followed by what "done" means, for example
`/goal all tests in packages/api pass`. The agent keeps working across turns
until it judges the goal met. The thread shows **Goal** while it works, and a
row above the composer shows the goal and its progress.
- `/goal` alone shows the current goal. `/goal clear` removes it.
- Codex also supports `/goal pause` and `/goal resume`. Stopping a Codex goal
pauses it.
- Stopping Claude ends the current turn, but the goal stays set. Claude checks it
again at the end of your next message.
## Context in your message
Context you attach lands where your cursor is, as a chip inside your text: a terminal excerpt,