fix: edited and push sync across reloads.#89
Merged
knightedcodemonkey merged 2 commits intonextfrom Apr 20, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes workspace edited/push-sync state persistence across reloads by making PR file targeting derive reliably from tab paths (avoiding stale targetPrFilePath collisions), and by tightening how sync reconciliation treats primary vs non-primary tabs.
Changes:
- Normalize/derive
targetPrFilePathfromtab.path(especially for module tabs) to prevent stale target path collisions across reloads. - Update workspace sync reconciliation to avoid overwriting non-primary module tabs during editor sync and to dedupe commits when paths collide with primary tabs.
- Refresh edited indicators after push reconciliation and add Playwright coverage for the new behaviors.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| src/modules/workspace/workspace-tab-shape.js | Recomputes targetPrFilePath from normalized paths to prevent stale target metadata after reload. |
| src/modules/app-core/workspace-sync-controller.js | Adjusts push/editor sync reconciliation logic to treat primary tabs differently and avoid module overwrite/collisions. |
| src/app.js | Refreshes edited indicators after push reconciliation and reloads the active tab after active-context sync. |
| playwright/github-pr-drawer.spec.ts | Adds coverage for dirty-state clearing, stale target-path collision handling, and reload sync 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.