Skip to content

Live turn shows only 'Agent working' — thinking and current tool are invisible #751

Closed

Description

@currentbits

Symptom

During a live turn the transcript often shows only a Work Log with Starting agent / Agent working and a status strip that says Agent working…. No thinking, no current tool. Screenshot on the originating thread.

Cause

  1. Grok streaming-messages-json groups reasoning into one assistant message per model response. Without --include-partial-messages it emits no stream_event thinking/text deltas, so the UI is blank for the whole thinking window (grok-4.6, often long).
  2. The claude-stream runner only handles text and tool_use content blocks. { type: "thinking" } is dropped (the fake grok success scenario already emits this shape).
  3. The status strip is hardcoded to "Agent working…" even when a running tool card exists.
  4. Work-log duration uses only item timestamps, so an in-progress run stays Worked for 0s.

Fix

  • Pass --include-partial-messages on grok (and claude, same flag).
  • Ingest stream_event thinking/tool/text deltas; upsert so the later complete assistant message does not duplicate cards.
  • Render thinking as a live card; put the current tool summary (or "Thinking…") on the status strip.
  • Tick work-log duration with now while the run is live.

Tests

Renderer: live label + thinking card. Electron: grok argv flag + fake scenario where a thinking delta is visible before the complete assistant message, and tool_use is not duplicated.

Activity

  1. added
    bug
    plan:doing
    on Aug 28, 2026
  2. currentbits commented on Aug 28, 2026

    @currentbits
    OwnerAuthor

    Implemented on this thread.

    • grok and claude now pass --include-partial-messages
    • claude-stream ingest handles stream_event thinking/text/tool deltas and upserts so the complete assistant restatement does not duplicate cards
    • transcript shows a Thinking card; the status strip shows the running tool summary or "Thinking…" instead of a generic Agent working…
    • in-progress work-log duration ticks off the wall clock

    Tests: test/workingLabel.test.ts, ThreadView live-activity cases, grok fake scenario thinking-then-tool.

  3. currentbits commented on Aug 28, 2026

    @currentbits
    OwnerAuthor

    Follow-up: Cursor, Kimi, and OpenCode.

  4. added
    plan:done
    and removed
    plan:doing
    on Aug 28, 2026
  5. currentbits commented on Aug 28, 2026

    @currentbits
    OwnerAuthor

    Landed from Solenta thread "Fork: Sometimes we only see agent working and not what it is". Closed on merge.

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

    bugplan:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions