feat: generate AI titles and summaries for Mac-authored notes#324
Merged
Conversation
Notes created or edited on the Mac never got a stored title or card summary — the web client is the one that calls /api/notes/title, so Mac-authored notes showed raw first lines everywhere. The store now fetches metadata on create and folds regeneration into body saves when the lead line changes, the same policy as the web autosave. Meta failures (offline, rate-limited, body too large) degrade to a plain save. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.
Summary
KeepAPI.generateMetacalls the existingPOST /api/notes/titleendpointNotesStore.createfetches title+summary before POSTing, like the web's createNotesStore.updateregenerates meta only when a body save changes the note's lead line (or the note has no title), folded into the same PATCH — the web's exact policy, so no extra model calls on ordinary keystroke autosavestry?on the meta fetch means rate limits / offline / oversized bodies degrade to a plain saveTest plan
xcodebuild -scheme KeepMacand-scheme Keep(iOS) build🤖 Generated with Claude Code