-
-
Notifications
You must be signed in to change notification settings - Fork 80.7k
TUI sendMessage blocks messages with 'agent is busy' regardless of /queue mode setting #89059
Copy link
Copy link
Closed
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.ClawSweeper found an open linked pull request for this issue.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.Channel message delivery can be lost, duplicated, or misrouted.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.
Description
Metadata
Metadata
Assignees
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.ClawSweeper found an open linked pull request for this issue.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.Channel message delivery can be lost, duplicated, or misrouted.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.
Type
Fields
Priority
None yet
TUI
sendMessageblocks messages with "agent is busy" regardless of/queuemode settingSummary
The TUI client (
src/tui/tui-command-handlers.ts) hardcodes a busy check insendMessage()that blocks new messages when the agent is running, completely ignoring the/queuemode setting configured on the Gateway. This meansfollowup,collect, andinterruptmodes do not work from the TUI.Steps to Reproduce
openclaw tui)/queue mode=followupExpected: The message is sent to the Gateway. The Gateway queues it as a followup turn (per the queue documentation), which executes after the current run ends.
Actual: TUI immediately shows
agent is busy — press Esc to abort before sending a new messageand does not send the message to the Gateway at all. The queued followup never fires because the message was blocked at the TUI layer.Root Cause
In
src/tui/tui-command-handlers.ts, thesendMessagefunction (around line 660) has a hardcoded busy check:This check:
/queuemode setting — the TUI doesn't even know what mode is set/stoporEsc) to proceedThe same check also appears in the top-level
isRunningguard (line 109):Why This Is a Bug
The Gateway correctly implements all four queue modes (
steer,followup,collect,interrupt) as documented indocs/concepts/queue.md. But the TUI intercepts messages before they can reach the Gateway, making these settings unusable from the TUI.The TUI should either:
Environment
2026.5.28(commit1a721b5679)bailian/qwen3.6-plus/queuemode:followup(confirmed set on session)Related
Suggested Fix
Remove or gate the busy check in
sendMessage()so messages are forwarded to the Gateway, and let the Gateway's queue system handle them according to the configured mode. If a UX indicator is needed, show a visual cue that the message will be queued rather than blocking it entirely.