Skip to content

[CLI] Empty ask twins render as "Roo said: ..." ghost bubbles in YOLO mode #2819

Backlog

Description

@PennybagsCX

Summary

In YOLO mode every completion emits an empty ask|completion_result twin. The chat mapper (useMessageHandlers.ts, nonInteractive branch) renders non-tool asks as assistant bubbles with content || "", and ChatHistoryItem.tsx falls back to a literal ... placeholder (message.content || "..."). Result: a bare Roo said: ... bubble directly under the real answer.

Fix

Hide empty assistant bubbles in ChatHistoryItem (the guard must run BEFORE the || "..." default — placing it after is bypassed), and/or skip empty ask twins in the mapper.

Environment: macOS arm64, CLI v0.1.17.


Solution (applied locally 2026-12-03)

Update — solved locally. Two-part fix:

  1. ChatHistoryItem.tsx: remove the placeholder default (message.content || "..." → message.content ?? "") and return null for empty assistant content. Important: the emptiness guard must run before any placeholder default — the default converts empties into a literal "..." string that bypasses a downstream guard.
  2. Optionally skip empty ask twins in the chat mapper.

After both, the ghost Roo said: ... bubble is gone while the real say|completion_result text renders. Happy to send a PR.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions