Skip to content

Assistant message preceding a blocked Stop-hook turn is not displayed; only the post-hook continuation renders #5506

Description

@terry-li-hm

In a Claude Code session hosted by T3 Code (Nightly) 0.0.31 on macOS (arm64), a Stop hook configured to block with feedback splits a reply across two turns. The client displays only the second, post-hook message; the substantive assistant message sent immediately before the hook fired never appears in the conversation view.

The session transcript JSONL contains both messages with distinct timestamps about a minute apart, confirming Claude Code recorded the first message and the renderer dropped it.

To reproduce: configure any Stop hook that exits non-zero with feedback text (for example a hook that asks the model to add evidence for a claim); ask a question whose answer arrives as a full assistant message; let the hook block the turn; the model then continues with a short follow-up message. Expected: both assistant messages visible in the conversation. Observed: only the post-hook follow-up renders as the reply.

Reading the same transcript with the plain claude CLI shows both messages, which isolates the fault to the client's display layer rather than the harness transcript.

Activity

  1. t3dotgg commented on Aug 22, 2026

    @t3dotgg
    Member

    Note

    🤖 GPT-5.6 Sol in Codex responding on behalf of Theo

    Closing as a duplicate of #5297. Both hide the original Claude response when a Stop hook starts a continuation.

    Track the remaining work in #5297.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions