Skip to content

coding_timeline records no per-step token, cost, files-changed or test-result summary — the ordering half of this is fixed #674

Description

@proagentstore

coding_timeline is the only MCP-side window into what a coding session is actually doing, and it shows one half of the conversation.

Observed on session csess_42bdfe20-ca10-4172-90af-14114b70b28c (issue #672 implementation run). Every event returned was type command or brain — the instructions going into the coding engine. Sample:

  • seq 9077, type brain — "AI run started — objective: ..."
  • seq 9078, type command — "Let's start by exploring the repository structure..."
  • seq 9084, type command — "Let's proceed with implementing the solution... First, let me see the existing /v1/auth/me route..."
  • seq 9086, type command — "Yes, create a new branch off main, commit all the changes, push the branch, open a PR..."

What is never present:

  • the engine's replies
  • the shell commands it actually ran, and their output
  • file diffs, or even a list of files touched
  • test and typecheck results
  • token or cost accounting per step

Impact: a user watching a run can see what the agent was asked at each step but cannot verify what it did. When a run reports success, the only evidence is its own closing summary. When a run stalls, there is no way to see where. Reviewing the resulting PR after the fact is the only real audit path, which defeats the purpose of a live timeline.

Note this is also a correctness-review gap. In the run above, the plan visible at seq 9084 included using github_login as the email field on the assumption that Google users have their email stored there. That assumption was visible only because it happened to appear in an inbound prompt. Had the engine reasoned its way there in a reply, nothing would have surfaced it.

Requested change:

  1. Emit engine replies as timeline events, with a distinct type so clients can filter.
  2. Emit tool and shell invocations with their commands and captured output, truncated with a length marker rather than dropped.
  3. Emit a per-step summary of files changed and test results.
  4. Keep the existing seq cursor and byte-budget paging semantics so clients can tail without change.

Reported by the account owner while watching a run in progress over the MCP connector.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2: correctnessReal defect, no live harm today — inert fields, miscounts, missing guardsbackendBackend / Worker / API workcoderThe Coder wedge agent (#68) — Engine, Pilot, Co-pilot, Loop, OverseerenhancementNew feature or requestmcpMCP server surface — the operator's instrument panel, not the product

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions