Skip to content

feat: generate AI titles and summaries for Mac-authored notes#324

Merged
fjbarrett merged 1 commit into
mainfrom
feat/mac-note-meta
Jul 10, 2026
Merged

feat: generate AI titles and summaries for Mac-authored notes#324
fjbarrett merged 1 commit into
mainfrom
feat/mac-note-meta

Conversation

@fjbarrett

Copy link
Copy Markdown
Owner

Summary

  • KeepAPI.generateMeta calls the existing POST /api/notes/title endpoint
  • NotesStore.create fetches title+summary before POSTing, like the web's create
  • NotesStore.update regenerates 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 autosaves
  • try? on the meta fetch means rate limits / offline / oversized bodies degrade to a plain save
  • No visible UI change on its own (titles/summaries populate from the server), so no screenshot

Test plan

  • xcodebuild -scheme KeepMac and -scheme Keep (iOS) build
  • Manual: create a note on the Mac, confirm the web grid shows an AI title + card summary

🤖 Generated with Claude Code

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>
@fjbarrett
fjbarrett merged commit a600e66 into main Jul 10, 2026
3 checks passed
@fjbarrett
fjbarrett deleted the feat/mac-note-meta branch July 10, 2026 03:55
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