Skip to content

A session's file read with no engine holding it draws an unended agent or background call as running when its last turn ended #636

Closed

Description

@SSFSKIM

What is wrong

A transcript read from a session's file while no engine holds the session can draw work as still running that ended when the engine did.

The file's reader (unendedTurnExit in src/engine-host/fs/chain-follower.ts) adds a process exit only when the chain's last turn never ended. When the last turn ended normally, nothing tells the transcript model that no engine holds the session, so anything whose end the file lacks keeps its running form:

  • an agent's row whose end is not in the file (on master today);
  • a shell call that Send now moved to the background and whose task end is not in the file (the composer landing, U4a; its Interfaces C is narrowed to say so).

What a repair needs

Either the source tells the model that the session has no holder (and the model then reads every unended task and agent as stopped), or the exit is synthesised for every holderless read. The follower alone cannot decide it: a session a terminal still runs has a holder, and its unended tasks are really running.

Acceptance

  • A session whose engine is gone, opened from its file: an agent or a background call whose end the file lacks reads stopped, whether or not the last turn ended.
  • A session a live engine or a terminal holds: unchanged; a running task reads running.
  • The same result from the wire's backfill, the file, and the rows another machine serves.

Found by

The composer landing's first milestone (UX wave U4a, ticket #581), 2026-11-13. Its debt-tracker row names this ticket.

Activity

  1. added
    bug
    status:ready-for-implementer
    priority:P3
    on Nov 13, 2026
  2. added 2 commits that reference this issue on Nov 13, 2026
  3. added
    status:in-progress
    and removed
    status:ready-for-implementer
    on Nov 14, 2026
  4. SSFSKIM commented on Nov 14, 2026

    @SSFSKIM
    OwnerAuthor

    [board] in-progress: Built in U4a

  5. added
    status:in-review
    and removed
    status:in-progress
    on Nov 14, 2026
  6. SSFSKIM commented on Nov 14, 2026

    @SSFSKIM
    OwnerAuthor

    [board] in-review: U4a PR

  7. removed
    status:in-review
    on Nov 14, 2026
  8. SSFSKIM commented on Nov 14, 2026

    @SSFSKIM
    OwnerAuthor

    [board] done: Landed in U4a, PR #656 (aa5c116). Pinned by src/renderer/src/transcript/model/send-now.test.ts ('a moved call and an agent in a transcript whose last turn ended …') and src/engine-host/fs/chain-follower.test.ts ('a holder-less chain whose last turn ended with a moved shell call and a background agent …'): holder-less, both read stopped; held, both run.

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

    bugpriority:P3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions