Skip to content

Chat: after Claude Code's /branch, the chat keeps reading the old transcript and shows no replies #2020

Closed

Description

@Hyd3-14

What happened

After running Claude Code's /branch in a pane, Chat mode stops showing the conversation. The /branch bubble shows "結果を確認できません" (the result can't be confirmed), and every message sent after it stays at "作業中…" with no reply. Terminal mode shows Claude Code answering normally, so the agent is working; only the chat view is stuck.

/branch did not fail. Its output in the new transcript is Branched conversation. You are now in the new branch (session 56b93911-…). Use /resume 0b1834e6-… to return …. Claude Code copies the conversation into a new transcript, 56b93911-….jsonl, whose records carry "forkedFrom": {"sessionId": "0b1834e6-…", "messageUuid": …}, and writes everything after the branch there. The old transcript, 0b1834e6-….jsonl, gets no more user or assistant records (only a cost-state line at the end).

Ovis keeps reading the old transcript. On main (cff839b), continuedInSession in server/claude-store.ts:521 follows a session switch only when the transcript ends in a continued-in record, which /resume writes. /branch writes no continued-in record to the old transcript, and nothing in server/ reads forkedFrom, so the pane never moves to the new transcript.

Expected: after /branch, Chat mode follows the new session, as it does after /resume. One way: when the pane's transcript stops growing, a newer transcript in the same project directory whose first records have forkedFrom.sessionId equal to the current session is the one to follow.

How often

Seen once; not retried yet. The cause above does not depend on timing, so I expect it every time.

Ovis version

0.4.17

How it runs

herdr plugin

Agent

Claude Code 2.1.302

Server PC

Arch Linux (kernel 7.2.9)

Device and browser

Windows, Brave

How the device reaches the server

tailscale serve

How it signs in

Not sure

Screenshots or logs

The transcript records quoted above are from ~/.claude/projects/<project>/. No screenshot attached.

Activity

  1. added a commit that references this issue on Oct 28, 2026
    817f238
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