Skip to content

fix(server): goals stop the running turn, clear while working, no echoes - #25426

Merged
t3dotgg merged 5 commits into
mainfrom
t3/goal-commands-polish
Oct 26, 2026
Merged

t3dotgg merged 5 commits into
mainfrom
t3/goal-commands-polish

Conversation

@t3dotgg

@t3dotgg t3dotgg commented Oct 26, 2026 •

Copy link
Copy Markdown
Member

Problem

Goals felt unpolished:

  • A /goal sent while a turn runs was rejected ("Goal commands must run as a separate turn").
  • /goal clear could not run while anything was working, and the banner hid Clear during work.
  • Setting a goal echoed it back as an assistant message.
  • Codex goals looked like they paused and restarted on their own.

Change

  • Goal commands stop the turn. A new goal, or /goal resume, sent into a running turn (composer, banner, queue Steer, mobile, MCP) stops that turn and runs first in the queue. /goal clear and /goal pause stop the turn only when the goal drives it. A run that is only finishing or running background work is never stopped. An explicit queue still queues. This applies to Codex and Claude only; other providers keep today's behavior.
  • Clear while working. The goal banner keeps Clear visible during work. Resume still waits for the turn to end.
  • No echoes. Claude's "Goal set: X" / "Goal cleared: X" and Codex's fake "Goal cleared." / "Goal paused." replies no longer appear. The banner shows the state. No-op replies ("No goal set") stay, because they are the only feedback. Codex's first goal turn now gets "Start working toward this goal: X" instead of the bare objective, which the model answered with "Got it. ".
  • Clear runtime. When Codex does not continue a goal within its 5 s window, the goal is paused as the run ends, and a late turn is stopped. Setting a Codex goal no longer flashes "Goal paused".
  • Claude limits. Claude Code has no /goal pause or /goal resume (it reads them as new goals named "pause"/"resume"), so T3 rejects them for Claude.
  • A /goal prompt reaches the provider verbatim; pending context waits one turn, as with /compact.

Scope and approval

Requested directly by a maintainer (Theo). This replaces the approach in #22802, which hides Steer for queued /goal messages.

Verification

  • Focused tests, each failing without its fix: orchestrator routing (steer stops and starts the goal, clear stops only goal work, promote, a goal sent into a starting run), Codex adapter (no paused flash, expiry pause, a late turn during the expiry pause is stopped), Claude adapter (goal confirmation not rendered). vp run check:changed passes.
  • Live Codex goals in a dev server, screenshots below. Not checked live: Claude goals (adapter tests only) and mobile.

Before: /goal mid-turn failed with "Goal commands must run as a separate turn", and the banner had no Clear button while working.

Goal running, Clear visible while working:

Pursuing goal with Clear while working

A new goal sent mid-turn stops the run and starts the goal. The first reply is a plan, not an echo:

New goal stops the run

Clear clicked while working: the run stops, the banner goes away, no echo message:

Clear while working

A finished goal reads "Goal complete" with the real result above it:

Goal complete

Council review

Rounds: 5 (round 1 was design and is not scored)

Delegate Round 2 Round 3 Round 4 Round 5
Claude Opus 5.5 8/10 8/10 9/10 —
Muse Wonder Full 6/10 8/10 8/10 —
Codex GPT-6.1 Sol 7/10 8/10 8/10 9/10

🤖 Generated with Claude Code (Claude Opus 5.5) in T3 Code

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L 100-499 changed lines (additions + deletions). vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant