Skip to content

Keep each turn's plan with its own turn #816

Closed

Description

@EVWorth

Severity: P2.

What happens

  1. Open ?mock=connected, click AI, then Start Claude Agent.
  2. Send "How are orders split?" and wait for the answer. A Plan box appears near the top.
  3. Send "And again by status?".
  4. The second turn shows Reasoning, text, the tool row and the answer, but no Plan box. The new plan's progress updates the first turn's box, which has scrolled out of view at the top of the transcript.

Cause

src/lib/agent-transcript.ts:104-110: the plan case uses items.findIndex((item) => item.kind === "plan"), which finds the first plan in the whole transcript and replaces it in place.

Fix

Only replace a plan found after the most recent user item. Otherwise append a new plan item for the current turn.

Part of #783.

Activity

  1. added
    bug
    on Oct 21, 2026
  2. added a commit that references this issue on Oct 24, 2026
    114ac46
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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions