Skip to content

Codex and Kimi live turn activity: thinking card and running tool #752

Closed

Description

@currentbits

Why

#751 gives Grok/Claude a live Thinking card and the current tool on the status strip. Codex and Kimi still look idle for the same window.

Codex (electron/codex.js + startCodexRun): file_change, reasoning, web_search, mcp_tool_call, and todo_list are parsed as JSONL items and discarded (#171). Only agent_message, command_execution, usage, and session id reach the transcript.

Kimi (electron/kimi.js + startKimiRun): tool starts already become cards, but reasoning is never extracted (reasoning_content / thinking blocks). Official stream-json also omits thinking from JSONL; this issue covers the JSON shapes we can ingest without scraping stderr.

Contract (same as #751)

  • A Thinking card appears as soon as reasoning starts.
  • The status strip names the running tool (Edit: src/foo.ts) or Thinking…, not a generic Agent working….
  • Completing the same item (Codex item.completed, Kimi restated tool_calls) must not duplicate cards.
  • Tests prove a reasoning/tool event is in the store before the turn settles.

Plan

  1. Shared UI (needed here because Live turn shows only 'Agent working' — thinking and current tool are invisible #751 is not on this branch): thinking on messages, Thinking card, liveWorkingLabel on the strip, live work-log duration tick.
  2. Codex: extract live items; upsert thinking/tools; route todo_list through savePlanSteps.
  3. Kimi: extract thinking; upsert tool starts by id.

Related: #751 (Grok/Claude live activity), #171 (Codex dropped item types).

Activity

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

    @currentbits
    OwnerAuthor

    Codex and Kimi now upsert live thinking/tool cards (same contract as #751).

    • Codex: extractLiveItem maps reasoning, file_change, mcp_tool_call, web_search, todo_list. Fake stream proves reasoning is in the store before file_change, and item.completed of the same ids does not duplicate cards. todo_list also feeds savePlanSteps.
    • Kimi: extractThinking (reasoning_content / thinking blocks) plus tool-start upsert by id so restated tool_calls do not duplicate.
    • Shared UI: Thinking card, strip label (tool summary or Thinking…), live work-log duration.

    Caveat: official kimi stream-json still omits thinking from JSONL (stderr only). JSON ingest is covered; scraping stderr is a follow-on.

    Tests: electron/test/codex.test.js, electron/test/kimi.test.js thinking-then-tool, plus renderer test/threadView.test.tsx / test/workingLabel.test.ts.

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

    @currentbits
    OwnerAuthor

    Landed from Solenta thread "Fork: Fork: Sometimes we only see agent working and not what". 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

    enhancementplan:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions