Repository navigation
diag(#283): instrument transcript-load lifecycle (stuck-at-loading repro) - #284
Merged
Merged
Conversation
…ing drop Temporary instrumentation (REMOVE once root cause is fixed). Logs every transcriptStatus transition + the two resolve/error bail points where the runtime entry is missing (the smoking gun) + any key commitRehydratedState drops from its wholesale rebuild while mid-'loading'. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This was referenced Jun 18, 2026
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.
Diagnostic-only PR for #283 (session startup/resume stuck at "loading transcript"). No behavior change — temporary instrumentation to capture where the load breaks, to be reverted once the root cause is fixed.
What it logs (
[xcript-diag]prefix)src/renderer/src/workspace/hook/actions/initialHistory.tsloading-set session=… kind=…— the unconditional'loading'write.ready-set session=… entries=…— the terminal'ready'write (only when the runtime still exists).RESOLVE-DROPPED session=… liveKeys=[…]— the smoking gun: the load finished but the runtime entry is gone, so'ready'is discarded and the pane stays stuck.liveKeysshows what the id got remapped/rebuilt to.ERROR-DROPPED session=…— same, on the error path.src/renderer/src/workspace/hook/persistence/rehydrate.tscommitRehydrated DROPS session=… (was transcriptStatus=…)— flags any key the only wholesale runtimes rebuild (out = {}) drops while a load is mid-flight.How to use
[xcript-diag].loading-set A→commitRehydrated DROPS A (was loading)→RESOLVE-DROPPED Aconfirms the rebuild orphans the loader; if insteadRESOLVE-DROPPED A liveKeys=[A’]shows a different id, it's an id-remap race.[xcript-diag]lines back and I'll land the real fix at the source.Tracks #283. Typecheck clean (4 pre-existing baseline errors only).
🤖 Generated with Claude Code