Repository navigation
console: 'busy' while a step completes, 'thinking' only when answering (#788) - #791
Merged
Merged
Conversation
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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):
waitingState(beats, awaiting)names the state from the heartbeat's own phase report (/status→beats.current):thinking: only when the beat has reported itsanswerphase.busy: any other phase is running, so the being is finishing a step before it answers.waiting: no beat is running.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.Unchanged: the beat, preemption and the inference call. Nothing is cancelled.
Tests:
test_console_waiting_for_the_being.pyhas a new test,test_busy_while_a_step_runs_thinking_only_when_answering. It checks that each non-answer phase givesbusyand that the line never says "thinking" there. It also checks that the answer phase givesthinking, no beat giveswaiting, and nothing waiting gives no state.test_console_refusal_is_not_absence.py: 11 passed.cargo test -p sage-daemon: 56 passed. The page is compiled in viainclude_str!.🤖 Generated with Claude Code