Skip to content

fix: flip TUI --deliver default to true to prevent stuck spinner#67017

Closed
nightq wants to merge 1 commit intoopenclaw:mainfrom
nightq:fix/issue-66991-tui-deliver-default
Closed

fix: flip TUI --deliver default to true to prevent stuck spinner#67017
nightq wants to merge 1 commit intoopenclaw:mainfrom
nightq:fix/issue-66991-tui-deliver-default

Conversation

@nightq
Copy link
Copy Markdown
Contributor

@nightq nightq commented Apr 15, 2026

Summary

Fixes TUI stuck spinner / "no active run" issue when using default settings.

Root Cause

--deliver defaults to false in the TUI CLI. When delivery is off, the gateway runs the turn to completion but does not stream chat.event frames back to the TUI client. The TUI's run-lifecycle state machine depends on these events to clear the spinner and finalize the run — without them, the spinner spins forever and Esc prints "no active run".

Fix

Changed --deliver default from false to true, and added --no-deliver for explicit opt-out. Per commander.js convention, declaring --deliver first with a true default means --no-deliver becomes the negation flag, so existing muscle memory (--deliver) remains harmless.

Closes #66991

Fixes openclaw#66991

Root cause: --deliver defaults to false, causing the gateway to run the
turn without streaming chat.event frames back to the TUI client. The TUI's
run-lifecycle state machine never receives the events needed to clear the
spinner, leaving it stuck indefinitely.

Fix: Changed --deliver default from false to true, and added --no-deliver
for explicit opt-out. Per commander.js convention, declaring --deliver
first with true default means --no-deliver becomes the negation flag.
@openclaw-barnacle openclaw-barnacle Bot added cli CLI command changes size: XS r: too-many-prs Auto-close: author has more than twenty active PRs. labels Apr 15, 2026
@openclaw-barnacle
Copy link
Copy Markdown

Closing this PR because the author has more than 10 active PRs in this repo. Please reduce the active PR queue and reopen or resubmit once it is back under the limit. You can close your own PRs to get back under the limit.

@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps Bot commented Apr 15, 2026

Greptile Summary

This PR flips --deliver from false to true as the default in the TUI CLI and adds --no-deliver as the explicit opt-out, fixing the stuck spinner / "no active run" UX bug that occurs because the TUI's run-lifecycle state machine depends on chat.event frames that are only sent when delivery is enabled. The fix is minimal and correct; --deliver (previously a no-op in most cases) remains harmless, and Commander.js properly resolves --no-deliver as the negation.

Confidence Score: 5/5

Safe to merge — single-line default change with correct Commander.js negation pattern and no downstream breakage.

All findings are P2 or lower. The root-cause analysis in the PR description is accurate, the fix is correctly scoped, and the Commander.js --no-deliver negation is idiomatic. No logic, data, or security concerns.

No files require special attention.

Reviews (1): Last reviewed commit: "fix: flip TUI --deliver default to true ..." | Re-trigger Greptile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli CLI command changes r: too-many-prs Auto-close: author has more than twenty active PRs. size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: openclaw tui hangs with stuck spinner and no active run when --deliver is off (default)

1 participant