Skip to content

to-human: a resumed session's marked history draws raw until the next mark #539

Open

Description

@SSFSKIM

Purpose

After claude --resume of a session under the to-human output style, the resumed history's marked messages draw raw, with the engine's own bullet (⏺ <message>got it</message>), until the session's first new marked message; then the view folds everything as it should. Seen in the sminos plugin split's live rehearsal (2026-10-19, M3.3, engine 2.1.304; its task-6 report, item 8 and Discoveries 6, a local working file that is not in the repository). The person resuming a session reads a raw transcript until the model next speaks to them.

What is known: to-human/hooks/mods/to-human.tsx folds only once hasSeenMark is set, which happens in the AssistantMessage render hook; the raw rows carry the engine's bullet, not the mod's, so the mod's hook either did not see them or passed them through. The rehearsal also logged Tool mcp__sminos__AskUserQuestion not found in render-time tools while history rows rendered, which suggests history renders before the plugins' modules register, and those cached rows are not asked for again until something invalidates them.

Done when

  • Resuming a session whose history holds marked messages draws them folded from the first frame the person sees (or from the first frame after the module loads, with one invalidation), with no new message needed.
  • The cause is named in the PR (which of: rows rendered before the module registered; native() passing them; hasSeenMark never set from history).
  • A test pins it where the mods harness can (to-human/tests/mods/run.sh), and a live check by hand confirms it on a resumed session.

History

  • 2026-10-19, deferred after PR to-human: a resumed history's raw rows are the engine's scrollback (board #105) #286 (merged as 54279ae): engine 2.1.304 draws a resumed history's first frame before plugin hook modules load. Rows then fold on the module's first answer, but on the main screen the rows already pushed into terminal scrollback are never repainted, and no mod API reprints scrollback. Fullscreen (tui: fullscreen) folds all of it. to-human/tests/mods/live-resume-check.py pins the engine behaviour; its scrollback check fails, naming this ticket, the day the engine repaints scrollback or loads modules before the first frame.

Moved from board ticket 105 on the retired board service, 2026-11-19. A board #<n> reference here names a ticket on that service.

Board note: engine-side: 2.1.304 draws a resumed history before plugin modules load, and terminal scrollback is never repainted

Activity

  1. SSFSKIM commented on Nov 20, 2026

    @SSFSKIM
    OwnerAuthor

    [board] deferred: engine-side: 2.1.304 draws a resumed history before plugin modules load, and terminal scrollback is never repainted

  2. added
    bug
    status:deferred
    priority:P2
    on Nov 20, 2026
  3. added
    undecided
    need-input
    and removed
    status:deferred
    on Nov 29, 2026
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

    bugneed-inputpriority:P2undecided

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions