Repository navigation
Centralize launcher connection storage and start recording - #16753
Conversation
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
🟡 Changes recommended
The shutdown test’s TryLock assertion cannot distinguish read locks from write locks, so it can pass without verifying the exclusive locking required for map writes.
1 open issue
What changed in this PR
Centralizes connection storage and start recording across launcher paths to address #16691, preserving shutdown cleanup and lock ordering.
Changes:
- Routes HTTP, stdio, and session launches through
storeConnectionIfOpen. - Adds regression tests for storage destinations, closed-launcher rejection, locking, and store-before-record ordering.
| File | Description |
|---|---|
internal/launcher/launcher.go |
Replaces three duplicated store-and-record blocks with a shared helper. |
internal/launcher/launcher_shutdown_test.go |
Adds tests for the helper’s storage and shutdown behavior. |
Review effort: Max (adaptive)
Replace exclusive lock with read lock in storeConnectionIfOpen test. Co-authored-by: Copilot Autofix powered by AI <[email protected]>
|
@copilot merge main and resolve conflicts |
…e-launcher-connection-store-record # Conflicts: # internal/launcher/launcher.go Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Merged |
🔒 mcpg Read-Only Stress — defaultSurface coverage: MCP tool calls + proxied CLI (REST) + GraphQL mutations
Overall: INCONCLUSIVE
No write of any kind leaked through in this run.
|

Three launch paths duplicate shutdown checks, connection storage, and start recording, risking drift in cleanup and lock ordering.
storeConnectionIfOpen, with closures selecting the storage destination.l.mu; callrecordStartonly after releasing it.