-
-
Notifications
You must be signed in to change notification settings - Fork 80.7k
TUI sendMessage busy guard ignores queue mode setting #90012
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
Problem
The TUI
sendMessage()hardcodes a busy check that blocks new messages when the agent is running, completely ignoring the/queuemode setting configured on the Gateway. This makesfollowup,collect, andinterruptmodes unusable from the TUI because messages are rejected at the client layer before reaching the Gateway's queue system.Additionally, the typed-submit gate (
canSubmitTuiChatMessage) increateEditorSubmitHandlerstill blocks all gateway-mode sends during active runs regardless of queue mode, and the session row only exposesentry?.queueModeinstead of the effective/resolved queue mode.Expected behavior
When queue mode is set to
followup,collect, orinterrupt, the TUI should forward messages to the Gateway for queue handling instead of rejecting them with "agent is busy."Actual behavior
All messages are blocked with "agent is busy" regardless of queue mode setting.
Affected files
packages/openclaw-tui/src/tui-command-handlers.tspackages/openclaw-tui/src/tui.tspackages/openclaw-gateway/src/session-utils.ts