Skip to content

feat: improved workspace disconnect and closed ux.#92

Merged
knightedcodemonkey merged 2 commits intonextfrom
bananas
Apr 23, 2026
Merged

feat: improved workspace disconnect and closed ux.#92
knightedcodemonkey merged 2 commits intonextfrom
bananas

Conversation

@knightedcodemonkey
Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings April 23, 2026 21:42
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

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/disconnected PR 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.

Comment thread src/modules/app-core/workspace-pr-session-handoff-controller.js
Comment thread src/modules/app-core/workspace-pr-session-handoff-controller.js
Comment thread src/modules/app-core/workspace-pr-session-handoff-controller.js Outdated
Comment thread src/modules/app-core/workspace-pr-session-handoff-controller.js
@knightedcodemonkey knightedcodemonkey merged commit 1567cac into next Apr 23, 2026
6 checks passed
@knightedcodemonkey knightedcodemonkey deleted the bananas branch April 23, 2026 22:22
knightedcodemonkey added a commit that referenced this pull request May 2, 2026
* feat: idb infrastructure. (#63)

* feat: dynamic tabs. (#64)

* refactor: better accessbility for tabs. (#68)

* feat: remove allow-same-origin for better security. (#69)

* feat: tab reordering via drag-n-drop. (#70)

* feat: explicit css imports, diagnostics per editor buffer. (#71)

* feat: idb + github sync with atomic open and push to remote. (#78)

* closes #73, closes #74, closes #75.

* refactor: more colocation and smaller file sizes. (#79)

* refactor: improvements with styles and gh syncs. (#82)

* test: webkit flake. (#83)

* test: address flake. (#84)

* refactor: github pr context. (#85)

* fix: require app in entry, hide workspaces without pat, remove star important. (#86)

* feat: make idb source of truth for pr context. (#87)

* fix: active pr context on reload and dedupe workspace identity. (#88)

* fix: edited and push sync across reloads. (#89)

* fix: properly commit tab name changes. (#90)

* fix(tabs): filename edits, min-widths, scrolling, content sync. (#91)

* feat: improved workspace disconnect and closed ux. (#92)

* refactor: status styling and biome config. (#94)

* fix(diagnostics): enforce current-editor snapshots and stale results. (#95)

* fix: consistent head handling. (#96)

* fix: prevent workspace overwrites. (#100)

* fix(playwright): stabilize lint diagnostics waits with one-time rerun fallback. (#101)

* feat: improved workspace ux and state identity separation.  (#103)

* fix: iframe protocol mismatch in receiver reads. (#104)

* refactor: remove remaining fixed editor assumptions. (#105)

* refactor: simplify PR close flow with deterministic workspace state updates (#106)

* feat: mode-aware entry tab extensions. (#108)

* feat: workspace status bar. (#109)

* feat: tab-scoped ai chat. (#111)

* refactor: better workspace drawer ux. (#112)

* refactor: remove collapsible editors and update breakpoint styles. (#113)

* docs: update for vnext. (#114)

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
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