Skip to content

Keep a sidechain record from claiming a Claude session's directory - #21

Merged
wilbeibi merged 1 commit into
mainfrom
claude-sidechain-cwd
Sep 21, 2026
Merged

wilbeibi merged 1 commit into
mainfrom
claude-sidechain-cwd

Conversation

@wilbeibi

Copy link
Copy Markdown
Owner

A Claude Code session is listed under the first directory its transcript records. Sidechain (subagent) records were counted too, so a subagent record that came before the first main record with a directory could file the session under the subagent's directory. Sidechain records no longer set the directory.

The wanderer test fixture now has a sidechain record with a different directory ahead of the first main one. The test fails without the fix and passes with it.

#17 made the first cwd in a transcript the session's directory, but applyMeta
runs before sidechain records are skipped. A subagent record ahead of the first
main record with a cwd therefore set the directory, and no later record could
replace it. Sidechain records no longer set the directory.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@wilbeibi
wilbeibi merged commit cf83591 into main Sep 21, 2026
2 checks passed
@wilbeibi
wilbeibi deleted the claude-sidechain-cwd branch September 21, 2026 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant