You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(cli): /goal pause|resume|clear — user control of autonomous goals without a model turn #3023
Today the only way to pause, resume, or clear an autonomous goal from the TUI is to ask the model in natural language to call GoalPause / GoalResume / GoalClear. That costs a model turn and can hit the goal-control decline rules in goal-tools.ts.
Worse, the pause semantics are invisible:
Ctrl+C during a goal continuation turn aborts the turn, and the runtime auto-pauses the goal (goal-continuation.ts: any non-completed outcome settles via pauseAtCheckpoint, reason "Goal-associated turn was aborted."). The TUI prints nothing about this — the user cannot tell the goal still exists, that it is paused rather than stopped, or how to resume it.
Quitting the TUI does not stop a goal. The goal authority is durable; on the next attach, recoverActiveGoal auto-continues active/waiting goals with no notice.
The host protocol already implements goal.control with actions pause | resume | clear and optimistic expectedRevision (packages/runtime-host/src/protocol/goal.ts); the desktop client already wires clear through it. resumeFromControl restarts a paused goal without a model-owned turn.
Proposal
Add /goal pause, /goal resume, /goal clear to the TUI, dispatched through the driver's goal control (with operation_conflict retry, mirroring the desktop client's clearGoal).
When a turn abort causes the goal to become paused, print a one-line notice: goal paused, why, and that /goal resume continues it / /goal clear stops it.
When attaching to a session whose goal auto-continues after recovery, print the same style of notice so a token-burning loop never resumes silently.
Depends on the goal query/indicator slice (#3022). Codex parallel: /goal [<objective>|clear|edit|pause|resume] plus a "Resume paused goal?" prompt when submitting while paused.
Activity
feat(cli): /goal pause|resume|clear control from the TUI
feat(cli): /goal pause|resume|clear control from the TUI
feat(cli): /goal pause|resume|clear control from the TUI
feat(cli): /goal pause|resume|clear control from the TUI
feat(cli): add autonomous goal controls to the TUI (apache#3026)