fix(session): pass targetSessionsDir to forkSessionFromParent#101996
fix(session): pass targetSessionsDir to forkSessionFromParent#101996aniruddhaadak80 wants to merge 1 commit into
Conversation
|
Thanks for the context here. I did a careful shell check against current Close: current main already carries the same-or-better parent-fork implementation through the Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. So I’m closing this as already implemented rather than keeping a duplicate issue open. Review detailsBest possible solution: Close this PR and keep the current Do we have a high-confidence way to reproduce the issue? No high-confidence current-main reproduction of the linked session-fork bug remains: current source resolves the parent store target and passes the child store through Is this the best way to solve the issue? No, this PR is not the best way to solve the issue because current main already solved the directory/target placement through Security review: Security review cleared: The diff only changes one TypeScript session-fork callsite and introduces no dependency, workflow, secret, permission, or code-execution surface. AGENTS.md: found and applied where relevant. What I checked:
Likely related people:
Codex review notes: model internal, reasoning high; reviewed against bf310355387d; fix evidence: commit a68caa185bf1, main fix timestamp 2026-07-07T10:47:02-07:00. |
|
ClawSweeper applied the proposed close for this PR.
|
Description
This PR resolves an issue where global and cross-agent session forks fail to inherit history and terminate silently.
Changes
session-parent-fork-prepare.ts, passtargetSessionsDir: path.dirname(params.storePath)instead ofsessionsDir: path.dirname(params.storePath)into theforkSessionFromParent()parameters. This allows the resolver to correctly resolve the parent session file path from the parent's actual session directory (e.g. the global directory) instead of incorrectly attempting to look up the parent transcript inside the target sessions directory.Fixes #101811