standalone summary sync#5868
Closed
ComputelessComputer wants to merge 2 commits into
Closed
Conversation
9752044 to
72350ee
Compare
1a5816f to
61f5bd2
Compare
72350ee to
2662f8b
Compare
61f5bd2 to
2d98b8d
Compare
2662f8b to
fcf9feb
Compare
2d98b8d to
9b317bd
Compare
Broadcast enhancement task snapshots from the main window so standalone note windows show generation progress for the same summary, and route standalone summary cancellation back to main.
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 9b317bd. Configure here.
| return; | ||
| } | ||
|
|
||
| store.getState().syncRemoteTasks(event.payload.tasks); |
There was a problem hiding this comment.
Sync wipes non-enhance tasks
Medium Severity
When a standalone window applies a main-window task snapshot, it calls syncRemoteTasks with only enhance tasks from serializeEnhanceTasks. That helper replaces the entire local tasks map, so any other AI task entries in that window (for example title generation) disappear whenever a sync event arrives.
Reviewed by Cursor Bugbot for commit 9b317bd. Configure here.
9b317bd to
501ab88
Compare
Delegate summary template regeneration from standalone note windows to the main enhancer service.
501ab88 to
626d7dd
Compare
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.


This is part 2 of 2 in a stack made with GitButler:
Note
Medium Risk
Touches multi-window AI task orchestration and cancellation routing; bugs could show stale progress or fail to cancel/enhance from standalone windows, but execution still centralizes on main.
Overview
Adds cross-window sync so standalone note windows show the same enhance/summary progress as the main window, while only main runs the real enhancer work.
A new
task-window-syncbridge uses Tauri events: main publishes serialized enhance task snapshots on store changes and answers sync requests; remote windows apply them viasyncRemoteTasksand request an initial snapshot on mount. Standalone UIs callrequestMainEnhanceandrequestMainAITaskCancelinstead of starting or stopping tasks locally; main handles those events through the enhancer service andcancel.Locale
.pofiles only update source line references for strings innote-input/header.tsx(from related header edits in the stack).Reviewed by Cursor Bugbot for commit 626d7dd. Bugbot is set up for automated code reviews on this repo. Configure here.