Skip to content

Fix prompted Copilot startup without preassigned session IDs - #229

Merged
0101 merged 3 commits into
mainfrom
session-launch-fix
Oct 16, 2026
Merged

0101 merged 3 commits into
mainfrom
session-launch-fix

Conversation

@0101

@0101 0101 commented Oct 16, 2026

Copy link
Copy Markdown
Owner

Fresh prompted launches now let Copilot generate the session ID and deliver startup instructions through the bridge for the returned terminal. Resume still uses the existing session ID. Startup acceptance has a two-minute deadline, and later instructions stay queued for that terminal while startup is unresolved.

Updated the launch fixtures and specs.

Verification: 222 targeted startup, bridge, and worktree API tests passed. Real-session E2E verification was not run.

0101 and others added 2 commits October 13, 2026 12:12
Bind startup prompt reservations to the exact returned terminal and discover the CLI-generated session ID through its bridge. Preserve full prompt transport, startup ordering, exact cleanup, and Resume selection. Allow two minutes for startup acceptance independently of post-fork setup.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: e2ea5171-0766-4200-be14-6cc6c9fdf9f7
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 0704f818-7516-4e51-a1c7-c2204f7025b5
Copilot AI balanced review requested due to automatic review settings October 16, 2026 08:04

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Startup deferral can trigger duplicate AutoSync terminal launches instead of retaining instructions for the intended session.

1 open issue
What changed in this PR

Fresh prompted launches let Copilot generate session IDs and route startup instructions through the returned terminal’s bridge.

Changes:

  • Remove preassigned IDs from fresh launches while preserving Resume behavior.
  • Bind startup delivery to terminal identity and extend acceptance to two minutes.
  • Update launch fixtures, ordering tests, and authoritative specs.
File Description
src/​Tests/​TestAgentRecorder/​Program.fs Generate fixture session IDs when absent.
src/​Tests/​TerminalHostTests.fs Update fresh-launch command construction.
src/​Tests/​StartupPromptTests.fs Cover terminal binding and deferred delivery.
src/​Tests/​EmbeddedLaunchEndToEndTests.fs Adjust command expectations and path normalization.
src/​Tests/​CommandBuilderTests.fs Verify fresh launches omit session selectors.
src/​Server/​TerminalLaunch.fs Remove ID allocation and extend timeout.
src/​Server/​SessionBridge.fs Bind startup prompts and defer ordinary delivery.
src/​Server/​CodingToolCli.fs Separate fresh and Resume command arguments.
docs/​spec/​worktree-monitor.md Document terminal-bound worktree startup.
docs/​spec/​embedded-terminal.md Describe binding, ordering, and acceptance deadlines.
docs/​spec/​canvas-interaction-routing.md Update startup routing documentation.

Review effort: Balanced

Comment thread src/Server/SessionBridge.fs Outdated
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 0704f818-7516-4e51-a1c7-c2204f7025b5
@0101
0101 merged commit e1bb240 into main Oct 16, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants