[Fix] Web task-page sends steer the active turn instead of queueing silently - #32
Merged
Merged
Conversation
…ilently Messages typed on the task page while a turn is in flight were only appended to the runtime prompt queue and never delivered until the turn ended - unlike Slack/Teams/Telegram follow-ups, which steer. With a request_user_input question pending this deadlocked the task entirely: the turn never ends, so the queued message never drains. The web sendPrompt path now passes autoSteerWhenQueued: true end to end (web command -> sandbox-server procedure -> harness manager), so running sends use OpenCode native mid-turn injection, falling back to queued-prompt cancel/replay when injection fails or a question is pending. The optimistic UI places the message in the transcript rather than the queued-messages surface to match. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
No code issues found. See task |
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.
What problem this solves
Messages typed on the web task page while a turn was in flight were only appended to the runtime prompt queue and were never delivered until the turn ended — unlike Slack/Teams/Telegram follow-ups, which steer. Two user-facing consequences (found during the staging steering test pass, tasks
190holbb4xm2k,11nl0xsy05oyl,31qvhb7uek4gyon openmote):request_user_inputquestion pending, the task deadlocked outright: the turn never ends, so the queued message never drains, and the queued message can only be rescued via the (hard to discover) queued-row steer control.What changed
sandboxSession.sendPrompt(web) → sandbox-servercommands.sendPrompt→HarnessManager.sendFollowUpPromptnow passautoSteerWhenQueuedend to end, and the task-page prompt input sends withautoSteerWhenQueued: true..agent-guidance/architecture/cloud-job-execution.md(it still described steering as cancel/replay only).Validation
vitest: newapps/workersendPrompt procedure tests (flag forwarded / left unset), extended websend-promptcommand test, updatedPromptInputclient tests — fullsrc/app/(sandbox)/task/suite green (476 tests), all worker procedure tests green.pnpm lint:fastandpnpm check-types:fastclean. Localpnpm knipoutput is unchanged from base (worktree-environment noise; CI knip is authoritative).🤖 Generated with Claude Code