8000 feat(notes): keep note titles and summaries up to date with the model by adeelahmad · Pull Request #125 · adeelahmad/lense · GitHub
[go: up one dir, main page]

Skip to content

feat(notes): keep note titles and summaries up to date with the model - #125

Merged
adeelahmad merged 1 commit into
mainfrom
claude/notes-module-j9j30y
Oct 4, 2026
Merged

adeelahmad merged 1 commit into
mainfrom
claude/notes-module-j9j30y

Conversation

@adeelahmad
Copy link
Copy Markdown
Owner

Description

Before: a note's one-line summary was whatever someone typed, so the assistant had little context to go on in the tree and in searches.

After: two minutes after a note stops changing, the model rewrites its one-line summary to cover the whole page. It changes the title only when the title is empty, "Untitled" or no longer fits. Settings > AI has a "Refine notes" switch, which is on by default.

Motivation and Context

Notes module: "every note has a title, date and a one-liner that gives the AI context, refined by the AI if enabled". A scheduler loop in routines.start refines up to five pending notes per pass. A note is marked pending on each body change. Cost reporting moves to the activity ledger once #114 lands.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change; ! in the title)

Checklist:

  • The title is a Conventional Commit.
  • My code follows the code style of this project (make hooks checks it on commit).
  • I added or updated tests.
  • My change requires documentation updates, and I have updated docs/ accordingly.
  • Users need more than the title to understand it, so I wrote it under ## Unreleased in CHANGELOG.md.

Checked locally: the full backend suite passed (539 passed, with the known LibreOffice conversion test deselected), along with ruff, tsc and eslint.

🤖 Generated with Claude Code

https://claude.ai/code/session_01XZQXJtCvJgbG1Z2H312KcS


Generated by Claude Code

A note whose title or text changed is refined once nobody has touched it
for two minutes: the model rewrites its one-line summary, and its title
when that is empty, Untitled or no longer fits. On by default, switched
off in Settings > Assistant (ai.refine_notes).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XZQXJtCvJgbG1Z2H312KcS
@adeelahmad
adeelahmad merged commit cbd42aa into main Oct 4, 2026
2 of 5 checks passed
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.

2 participants

0