Skip to content

TUI sendMessage busy guard ignores queue mode setting #90012

Description

@SebTardif

Problem

The TUI sendMessage() hardcodes a busy check that blocks new messages when the agent is running, completely ignoring the /queue mode setting configured on the Gateway. This makes followup, collect, and interrupt modes 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) in createEditorSubmitHandler still blocks all gateway-mode sends during active runs regardless of queue mode, and the session row only exposes entry?.queueMode instead of the effective/resolved queue mode.

Expected behavior

When queue mode is set to followup, collect, or interrupt, 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.ts
  • packages/openclaw-tui/src/tui.ts
  • packages/openclaw-gateway/src/session-utils.ts

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Normal backlog priority with limited blast radius.clawsweeper:linked-pr-openClawSweeper 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:source-reproClawSweeper found a high-confidence source-level issue reproduction.impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions