feat: improved workspace disconnect and closed ux.#92
Merged
knightedcodemonkey merged 2 commits intonextfrom Apr 23, 2026
Merged
feat: improved workspace disconnect and closed ux.#92knightedcodemonkey merged 2 commits intonextfrom
knightedcodemonkey merged 2 commits intonextfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR improves the end-of-session UX for PR-linked workspaces by archiving closed/disconnected PR workspaces and immediately moving the user to a fresh local (inactive) workspace, while also making local-only contexts easier to spot in the Workspaces drawer.
Changes:
- Prefixes local-only inactive workspace labels with
local:in the Workspaces drawer. - Introduces a PR session handoff controller to archive
closed/disconnectedPR workspaces and start a fresh local workspace. - Updates PR-context snapshotting, docs, and Playwright coverage for the new flows.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| src/modules/workspace/workspaces-drawer/drawer.js | Adds local: prefix for inactive, non-PR workspaces in option labels. |
| src/modules/app-core/workspace-pr-session-handoff-controller.js | New controller to archive PR workspaces on close/disconnect and initialize a fresh local workspace. |
| src/modules/app-core/workspace-local-helpers.js | Snapshot logic now prefers runtime PR context metadata when the PR context is active. |
| src/modules/app-core/workspace-context-controller.js | Passes { silent } to onWorkspaceRecordApplied for distinguishing silent restores. |
| src/app.js | Wires the new handoff controller and adjusts PR context rehydration rules on workspace apply. |
| playwright/github-pr-drawer.spec.ts | Adds/updates tests for disconnect/close handoff and re-open behavior. |
| docs/pr-context-storage-matrix.md | Updates storage/behavior contract docs for reconnect + end-of-session behavior. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
No description provided.