Skip to content

Claude bridge-session model fix - #265

Open
davidabram wants to merge 7 commits into
mainfrom
claude-clear-session-fix
Open

Claude bridge-session model fix#265
davidabram wants to merge 7 commits into
mainfrom
claude-clear-session-fix

Conversation

@davidabram

Copy link
Copy Markdown
Member

Document the model-less Claude /clear SessionStart gap and the production evidence behind a bounded local fallback. Scope bridgeSessionId sibling discovery, exact-scope state inheritance, attribution coverage, and the best-effort model-switch tradeoff without schema or export changes.

Document the model-less Claude `/clear` SessionStart gap and the production evidence behind a bounded local fallback. Scope bridgeSessionId sibling discovery, exact-scope state inheritance, attribution coverage, and the best-effort model-switch tradeoff without schema or export changes.

Plan: claude-clear-session-model-inheritance (T01-T03)

Co-authored-by: SCE <sce@crocoder.dev>
@davidabram
davidabram marked this pull request as draft September 4, 2026 22:18
Model-less Claude SessionStart events need attribution across /clear session boundaries. Add bounded, fail-open transcript bridge discovery and seed the new session from the newest matching sibling's exact main-session state.

Add end-to-end regression coverage and document the behavior, guardrails, and residual ordering risk.

Co-authored-by: SCE <sce@crocoder.dev>
davidabram and others added 5 commits September 10, 2026 10:32
Document why lazy transcript creation makes SessionStart inheritance inert and move the accepted seeding design to the diff-trace state-miss path. Record newest-observation selection, amended attribution precedence, and the follow-up task sequence.

Plan: claude-clear-session-model-inheritance
Task: T04

Co-authored-by: SCE <sce@crocoder.dev>
Preserve transcript_path in memory at structured Claude parse time while excluding it from serialization and leaving normalized producer payloads unset. Add regressions for carry-through, omission, and missing or non-Claude inputs.

Plan: claude-clear-session-model-inheritance (T05)

Co-authored-by: SCE <sce@crocoder.dev>
Return every sibling session linked by the same bridge identifier in deterministic order while preserving bounded, fail-open transcript reads.

Ref: claude-clear-session-model-inheritance T06

Co-authored-by: SCE <sce@crocoder.dev>
Resolve raw main-session diff traces from the newest observed model across bridge-linked Claude sessions when exact state is absent. Seed the current session through the guarded state path so later traces reuse exact state, while failures and subagent scopes remain unattributed.

Plan: claude-clear-session-model-inheritance T07

Co-authored-by: SCE <sce@crocoder.dev>
Route model-less Claude SessionStart inheritance through the shared newest-chain observation rule so lifecycle and diff-trace paths select state consistently.
Remove the superseded mtime-based sibling picker and align the bridge-correlation documentation.

Plan: claude-clear-session-model-inheritance (T08)

Co-authored-by: SCE <sce@crocoder.dev>
@davidabram
davidabram force-pushed the claude-clear-session-fix branch from cbec39f to bfe0513 Compare September 10, 2026 09:11
@davidabram
davidabram marked this pull request as ready for review September 10, 2026 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants