Skip to content

fix(workspaces): preserve local workspace names across autosave.#132

Merged
knightedcodemonkey merged 2 commits intomainfrom
bananas
May 4, 2026
Merged

fix(workspaces): preserve local workspace names across autosave.#132
knightedcodemonkey merged 2 commits intomainfrom
bananas

Conversation

@knightedcodemonkey
Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings May 4, 2026 01:06
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 updates workspace autosave so local workspace names are preserved from persisted state when the PR title input is empty, which fits the app’s IndexedDB-backed workspace restore/autosave flow.

Changes:

  • Extend createWorkspaceContextSnapshotGetter to use persisted local workspace titles as a fallback.
  • Wire app.js state into the snapshot getter so it can read workspace scope and the active persisted title.
  • Add a Playwright regression test covering rename persistence after an editor change.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
src/modules/app-core/workspace-local-helpers.js Adds the new local-title fallback logic used when building autosave snapshots.
src/app.js Passes workspace scope and persisted title state into the snapshot helper.
playwright/github-byot-ai.spec.ts Adds regression coverage for renamed local workspace titles surviving an edit/autosave cycle.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/modules/app-core/workspace-local-helpers.js
@knightedcodemonkey knightedcodemonkey merged commit 09958ef into main May 4, 2026
6 checks passed
@knightedcodemonkey knightedcodemonkey deleted the bananas branch May 4, 2026 01:27
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