Skip to content

fix(notes): ask before Update notes replaces an edited summary - #4640

Draft
richiemcilroy wants to merge 7 commits into
mainfrom
fix/notes-update-line-keeps-edits
Draft

richiemcilroy wants to merge 7 commits into
mainfrom
fix/notes-update-line-keeps-edits

Conversation

@richiemcilroy

@richiemcilroy richiemcilroy commented Nov 29, 2026 •

Copy link
Copy Markdown
Member

The "Transcript updated" line's Update notes called Meetings::update_notes directly (meetings_ui/documents/bar/health_line.rs), skipping the pane's own Write notes: an edited summary was replaced without asking, and queued summary saves were not flushed first.

  • The line now takes the pane's write_notes(None) as a callback (the route the left-out toast already uses) and no longer clears itself on click. It goes away when new notes land, so cancelling keeps the reminder.
  • write_notes opens "Replace notes?" in cx.defer. A click or menu action in the documents window is still dispatching there, and gpui can't update a window from inside its own event, so the prompt never opened before and nothing happened (pane.rs).
if self.has_enhanced() && self.enhanced_edited {
    cx.defer(move |_, cx| {
        // find the documents window, prompt, generate on Replace
    });
    return;
}
  • documents/tests.rs: the line is clicked in a drawn pane registered as the documents window. Edited summary: the prompt opens; Cancel writes nothing and keeps the line; Replace writes new notes. Unedited summary: notes are written without a prompt. On main both edited cases fail on macOS, Windows and Linux.
  • cap_ai.rs: debug_selector on the dock line's action for the tests.
  • Not run in the real app.

Confidence Score: 5/5 · The PR appears safe to merge; no new actionable issue was found.RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge; no new actionable issue was found.

Summary

Routes Update notes through write_notes so edited summaries require confirmation and queued saves finish before generation.

  • Update notes asks before replacing an edited meeting summary.

Reviews (3) · Last reviewed commit: "fix(notes): defer takes the app context" · Reviewed by Greptile

@richiemcilroy

Copy link
Copy Markdown
Member Author

@greptileai review

@vercel

vercel Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
cap-status Skipped Skipped Nov 29, 2026 1:49am UTC

@vercel
vercel Bot temporarily deployed to Preview – cap-status November 29, 2026 01:30 Inactive
@vercel
vercel Bot temporarily deployed to Preview – cap-status November 29, 2026 01:37 Inactive
@vercel
vercel Bot temporarily deployed to Preview – cap-status November 29, 2026 01:45 Inactive
@vercel
vercel Bot temporarily deployed to Preview – cap-status November 29, 2026 01:49 Inactive
@richiemcilroy

Copy link
Copy Markdown
Member Author

@greptileai review

This branch was previously deployed

1 inactive deployment
Preview – cap-status — cba8ac15 Deployed Nov 29, 2026 by vercel[bot]
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