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:
1 parent
f32c23cf1a
commit
a172e1c4e8
26 files changed
+2326
-204
No files matched your search
@@ -116,6 +116,14 @@ resumes a run, queues behind active work, or steers when the adapter supports it
|
||||
retain the provider's live response path. Do not infer that a request has disappeared merely because
|
||||
it is outside the recent history window.
|
||||
|
||||
Native `/goal` state belongs to the provider and is mirrored on the provider thread. Codex starts
|
||||
the next goal turn on its own milliseconds after the last one completes, so the
|
||||
[adapter](../../apps/server/src/orchestration-v2/Adapters/CodexAdapterV2.ts) keeps the run open
|
||||
and adds that turn to it. One run can therefore own several native turns. `/goal` commands that
|
||||
start no Codex turn settle on a provider turn without a native ref, which native rollback must
|
||||
not count. Claude's SDK mode emits no goal events; its adapter reads goal state from the
|
||||
synthetic command output and Stop hook feedback in the transcript.
|
||||
|
||||
Capabilities must describe what the provider can actually do. Antigravity can capture workspace
|
||||
checkpoints but cannot roll back its conversation. The [checkpoint boundary](./overview.md#turn-completion-and-checkpoints)
|
||||
therefore rejects revert before touching files. Native permission and question option IDs must
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user