Skip to content

fix(tui): drop duplicated in-transcript thinking placeholder - #16

Merged
jkyberneees merged 1 commit into
mainfrom
fix/dedupe-thinking-indicator
Jul 27, 2026
Merged

fix(tui): drop duplicated in-transcript thinking placeholder#16
jkyberneees merged 1 commit into
mainfrom
fix/dedupe-thinking-indicator

Conversation

@jkyberneees

Copy link
Copy Markdown
Contributor

Symptom

While a streamed assistant turn had no visible content yet, two "thinking" signals rendered at once:

  1. Top bar: ⠇ 🧠 thinking · 3s — spinner, context-aware label, elapsed time
  2. Transcript: a second spinner + thinking… placeholder inside the assistant message body

Fix

  • Removed the in-transcript thinking… placeholder (internal/tui/view.go)
  • An empty in-flight assistant turn no longer renders a bare ⬡ odek block at all (emptyStreamingTurn guard in the conversation renderer) — no dangling label, no layout jump

The top bar is now the single progress signal. The turn block appears atomically once the first token, reasoning chunk, or tool step arrives.

Tests (TDD — written red first)

TestEmptyStreamingTurnHidden:

  • empty streaming turn → no thinking… placeholder, no ⬡ odek block in the transcript
  • after the first thinking event → the turn block renders with the reasoning excerpt

Verification

  • make fmt && make vet && make lint — 0 issues
  • make test — full -race suite green

While a streamed assistant turn had no content yet, the transcript
rendered a spinner + "thinking…" placeholder line that duplicated the
top-bar progress signal (spinner + status + elapsed time).

The placeholder is removed and an empty in-flight turn no longer renders
a bare odek block at all — the top bar stays the single progress signal
and the turn block appears atomically once the first token, reasoning
chunk, or tool step arrives.
@jkyberneees
jkyberneees merged commit dd50826 into main Jul 27, 2026
5 checks passed
@jkyberneees
jkyberneees deleted the fix/dedupe-thinking-indicator branch July 27, 2026 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant