Skip to content

standalone summary sync#5868

Closed
ComputelessComputer wants to merge 2 commits into
fix/summary-tab-stopfrom
fix/standalone-summary-sync
Closed

standalone summary sync#5868
ComputelessComputer wants to merge 2 commits into
fix/summary-tab-stopfrom
fix/standalone-summary-sync

Conversation

@ComputelessComputer

@ComputelessComputer ComputelessComputer commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator
  • Sync summary generation state across main and standalone note windows so standalone views reflect progress for the same summary
  • Broadcast enhancement task snapshots from the main window to standalone note windows
  • Route summary cancellation from standalone note windows back to the main window
  • Delegate summary template regeneration requests from standalone note windows to the main enhancer service

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-sync bridge uses Tauri events: main publishes serialized enhance task snapshots on store changes and answers sync requests; remote windows apply them via syncRemoteTasks and request an initial snapshot on mount. Standalone UIs call requestMainEnhance and requestMainAITaskCancel instead of starting or stopping tasks locally; main handles those events through the enhancer service and cancel.

Locale .po files only update source line references for strings in note-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.

Comment thread apps/desktop/src/session/components/note-input/enhanced-actions.ts
Comment thread apps/desktop/src/ai/task-window-sync.tsx Outdated
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.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ 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);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 9b317bd. Configure here.

@ComputelessComputer ComputelessComputer force-pushed the fix/standalone-summary-sync branch from 9b317bd to 501ab88 Compare July 1, 2026 18:27
Delegate summary template regeneration from standalone note windows to the main enhancer service.
@ComputelessComputer ComputelessComputer force-pushed the fix/standalone-summary-sync branch from 501ab88 to 626d7dd Compare July 1, 2026 18:31
@ComputelessComputer ComputelessComputer deleted the branch fix/summary-tab-stop July 1, 2026 18:41
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.

1 participant