Repository navigation
fix(launcher): one transactional launch path for every analysis kind (S5) - #90
Merged
Merged
Conversation
…(S5, #77) Every launch (XR, LivePanel, VisualizeDOM) now runs as one transaction under LaunchControl: an abort signal, a 10-minute deadline and a teardown stack per session. The server starts before the watcher for every kind; a failure, the deadline or Close Analysis kills the running Python analysis and undoes the started steps newest first, exactly once. A closed launch is silent; a failed one shows one error. - targetKey(): one identity per target (case-folded on Windows/macOS, no trailing separator); the registry reserves a target before its first await, so concurrent launches yield one session (LAUNCHER-2, -17) - SSE channel and file map keyed by session id; SessionServerManager and SseNotificationManager removed; the close path matches servers by metadata.sessionId only, never by path substring - analysis types and launch kinds are descriptors (core/analysis/launch); server capabilities, default controller views and router snapshot probes are derived from them; resolveLauncher refuses unsupported combinations by name - startup cleanup sweeps the folders the launchers actually write (LAUNCHER-14) - Python output read as UTF-8 on every platform - docs/adding-an-analysis-type.md; CHANGELOG [1.2.1] Fixed; test/analysis/launchTransaction.test.cjs (15 tests); guardrail baseline regenerated; ESLint warning budget 158 -> 155 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014FkKtAtQus8TVjhG9bhytC
CHANGELOG [1.2.1] Fixed keeps both entries; guardrail baseline regenerated for the lowered ESLint warning budget (158 -> 155). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014FkKtAtQus8TVjhG9bhytC
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.
Requested by Adrián · project thread
Closes #77 (epic #72, S5: one unified, modular launcher).
What changes
Every launch (XR, LivePanel, VisualizeDOM) now runs as one transaction under a new
LaunchControl(core/analysis/launch/launchControl.ts). Each session gets an abort signal, a 10-minute deadline and a teardown stack.targetKey()resolves the path, strips the trailing separator, and case-folds on win32 and darwin. The registry reserves the target before its firstawait, so concurrent launches yield one session. This fixes LAUNCHER-2 and LAUNCHER-17.SessionServerManagerandSseNotificationManagerare deleted.metadata.sessionIdonly. The path-substring matching inserverControlis gone.serverFactoryreleases a server that failed after creation.analysisTypes.tsdeclares the analysis types (what the table shows) andlaunchKinds.tsthe launch kinds (how a page is served).resolveLauncher, which refuses unsupported combinations by name and does an own-property lookup.storageFolders.ts). This fixes LAUNCHER-14.PYTHONIOENCODING/PYTHONUTF8,setEncoding), which matters on Windows.apps/vscode-extension/docs/adding-an-analysis-type.md;[1.2.1]Fixed entry;ARCHITECTURE.mdpipeline diagram;V1.2.1_STATUS.mdsession entry.Verification
npm test: 1,113 of 1,113 pass,tscclean, ESLint 0 errors and 155 warnings. The budget is lowered from 158 to 155.test/analysis/launchTransaction.test.cjs(15 tests):targetKeyper platform;createSession;resolveLauncher;Not in scope: progress notifications are not cancellable (Close Analysis is the cancel path). LAUNCHER-11 belongs to another story.
Generated by Claude Code