Skip to content

console: 'busy' while a step completes, 'thinking' only when answering (#788) - #791

Merged
dp-web4 merged 1 commit into
mainfrom
mcnugget/788-busy
Nov 19, 2026
Merged

dp-web4 merged 1 commit into
mainfrom
mcnugget/788-busy

Conversation

@dp-web4

@dp-web4 dp-web4 commented Nov 19, 2026

Copy link
Copy Markdown
Owner

Part of #788. Implements dp's ruling of 2026-11-19: no cancelling the in-flight model call. Let it complete, then switch attention, and indicate 'busy' (as opposed to 'thinking') while waiting for completion.

What changes (console only):

  • A new waitingState(beats, awaiting) names the state from the heartbeat's own phase report (/status → beats.current):
    • thinking: only when the beat has reported its answer phase.
    • busy: any other phase is running, so the being is finishing a step before it answers.
    • waiting: no beat is running.
  • The waiting line now leads with that word:
    • busy · 1 turn waiting: mcnugget-being is mid-beat (explore, running 1m 52s); the step it is on runs to completion before it answers.
    • thinking · 1 turn waiting: mcnugget-being is writing its answer now.
    • waiting · 1 turn waiting: no beat is running (the last ended 2m ago); waiting for one to start.
  • The state is also set as a class on the line: busy is amber and thinking uses the accent colour, so the two read differently at a glance.

Unchanged: the beat, preemption and the inference call. Nothing is cancelled.

Tests:

  • test_console_waiting_for_the_being.py has a new test, test_busy_while_a_step_runs_thinking_only_when_answering. It checks that each non-answer phase gives busy and that the line never says "thinking" there. It also checks that the answer phase gives thinking, no beat gives waiting, and nothing waiting gives no state.
  • With test_console_refusal_is_not_absence.py: 11 passed.
  • cargo test -p sage-daemon: 56 passed. The page is compiled in via include_str!.

🤖 Generated with Claude Code

…ering (#788)

dp, 2026-11-19: no cancelling the in-flight model call. Let it complete,
then switch attention, and indicate 'busy' (as opposed to 'thinking')
while waiting for completion.

waitingState() names the state from the heartbeat's own phase report:
'thinking' only in the answer phase, 'busy' while any other phase runs,
'waiting' when no beat runs. The waiting line leads with it and the
conv-state element carries it as a class (busy amber, thinking accent).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dp-web4
dp-web4 merged commit b832150 into main Nov 19, 2026
3 checks passed
@dp-web4
dp-web4 deleted the mcnugget/788-busy branch November 19, 2026 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant