Claude bridge-session model fix - #265
Open
davidabram wants to merge 7 commits into
Open
Conversation
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
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>
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
force-pushed
the
claude-clear-session-fix
branch
from
September 10, 2026 09:11
cbec39f to
bfe0513
Compare
davidabram
marked this pull request as ready for review
September 10, 2026 11:17
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Document the model-less Claude
/clearSessionStart 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.