Skip to content

bug(workspace): the live chat card jumps ~2s into a turn — "<agent> doesn't report steps." and Stop pop in after first paint #2964

Closed

Description

@AndriiPasternak31

Summary

While a chat turn is running in Workspace, the live execution card (ent#525, #2549) changes shape a couple of seconds into the turn. It first renders Working 0s with only the title. When the Work feed's read of this turn lands (~2.2 s), a sentence " doesn't report steps." appears and the card grows by 22 px (132 → 154). The activity line ("Thinking" / "Writing a reply") arrives later still. To the person watching it reads as: it started working → a "steps" line pops in → then the steps/activity show up. It is small, but it happens on every chat turn longer than the first feed read.

Journey Impact: extends the Workspace chat journey: a person sends a message and watches the agent work. The card is the only feedback during that wait, and it jumps.

Reproduction (measured, local stack, dev @ c45e5651d frontend)

Playwright sampled the card every 30–40 ms after pressing Enter. The turn was made to last ~9 s by delaying the agent's CLI start. 5 of 5 long turns show the same sequence:

    12ms  h=132  step=[]                steps=[]                                   (Working 0s, title, Open in Work)
  2210ms  h=154  step=[]                steps=["cornelius doesn't report steps."]  (+ Stop)
  7230ms  h=154  step=["Thinking"]      steps=["cornelius doesn't report steps."]
  8617ms  h=154  step=["Writing a reply"] …
  8974ms  terminal card

A turn that fails in under a second (no model credential) usually ends before the feed read lands, so the jump does not show. In 1 of those runs, the whole card also unmounted for ~60 ms (at 419 ms, between "doesn't report steps." appearing and "Writing a reply"). That was seen once and has not been reproduced since, so it is recorded here as unconfirmed.

Cause (from the code)

  • PortalConversation.vue liveCardItem: until the feed has this turn's row, the card gets a synthetic item with steps: undefined (renders nothing, by design: "not read yet").
  • When the feed row lands, steps becomes {state: 'none'} for a plain chat turn. stepsLine() (portalWork.js:170) then returns kind: 'none' → PortalWorkCard.vue:75 renders the "doesn't report steps." <p> with a bare v-if. No space is reserved for it, unlike the activity row directly above it (h-4, reserved for the card's whole live life, fix(agent-runtime): kill npx MCP orphans outside claude pgid that hold stdout pipe open (#618) #620).
  • Stop is gated on canCancelTurn (PortalConversation.vue:1024, sending && activeExecutionId), not on the item's can_stop: it appears when the send's 202 returns the execution id. It adds no height (it joins the row with "Open in Work" and shifts that button sideways). It usually lands within ~100 ms and coincided with the sentence only on some runs. (Corrected 2026-09-22: the first version of this issue attributed it to the synthetic item's can_stop: false.)

Acceptance criteria

  • A live chat-turn card does not change height between the first paint and the terminal state, except for content that is genuinely new work (stages of a pipeline, delegated children).
  • The decision on the "doesn't report steps." sentence for a plain single-agent chat turn is explicit. Either it is suppressed there (the chat card already shows the activity line, and the sentence adds nothing a person can act on), or its row is reserved from the first paint. It stays in the Work tab either way.
  • Stop does not pop in late if it is going to be offered (reserve its slot, or render it disabled until the id is known).
  • A regression test pins the card's live-phase shape across the steps: undefined → feed-row transition.
  • Checked by a human in the browser, both themes (design-system contract, principle 29).

Notes

Activity

  1. added
    priority-p2
    type-bug
    frontend
    theme-ui-ux
    complexity-low
    status-ready
    on Sep 22, 2026
  2. AndriiPasternak31 commented on Sep 22, 2026

    @AndriiPasternak31
    ContributorAuthor

    /claim

  3. added
    status-in-progress
    and removed
    status-ready
    on Sep 22, 2026
  4. github-actions commented on Sep 22, 2026

    @github-actions

    Claimed by @AndriiPasternak31. Label status-in-progress added.

    Next steps:

    1. Create branch: feature/2964-<short-slug>
    2. Implement the feature
    3. Open a PR with Fixes #2964
  5. added
    status-in-dev
    and removed
    status-in-progress
    on Sep 24, 2026
  6. removed
    status-in-dev
    on Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

complexity-lowfrontendpriority-p2theme-ui-uxtype-bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions