Skip to content

fix(memory): keep claims on every line of a note - #222

Merged
nullure merged 1 commit into
CaviraOSS:mainfrom
GPT-AGI:fix/newline-claim-extraction
Nov 10, 2026
Merged

nullure merged 1 commit into
CaviraOSS:mainfrom
GPT-AGI:fix/newline-claim-extraction

Conversation

@GPT-AGI

@GPT-AGI GPT-AGI commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

📋 Description

On main, this note stores only user prefers light mode:

I prefer dark mode
I prefer light mode

extract_claims splits only on sentence punctuation, while its claim patterns do
not cross newlines. The extractor now starts a new statement when a new line
matches a claim pattern or list marker, and joins wrapped continuation lines.
Regression assertions live in the existing recall:check.

🔄 Type of Change

  • 🐛 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 not work as expected)
  • 📚 Documentation update
  • 🎨 Style/UI changes
  • ♻️ Code refactoring
  • ⚡ Performance improvements
  • 🔧 Build/CI changes

Verification

  • pnpm release:check passes locally
  • New files pass pnpm branding:check (no new files)
  • User-visible behavior has been exercised manually when applicable

Node 25.9.0 and pnpm 11.5.2:

  • Passed: pnpm recall:check, pnpm typecheck, pnpm branding:check,
    pnpm release:files, pnpm sdk:python:check, pnpm extension:check,
    pnpm bench:typecheck, pnpm bench:ci, and
    node tools/check-integrations.mjs.
  • pnpm dashboard:audit has the same pre-existing dependency advisory failure
    as main (three high, one critical).
  • The n8n lint step has the existing Windows setup failure
    Command "eslint" not found; no integration files changed.

Behavior:

  • Two preference lines: one preference before, both preferences after.
  • Wrapped preference: one unsplit action before, one complete preference after.
  • Bullet list: only the final location before, both list claims after.

📱 Screenshots (if applicable)

None.

🔍 Code Review Checklist

  • Code follows the project's coding standards
  • Changes generate no new warnings

📚 Related Issues

None.

🚀 Deployment Notes

None.

📋 Additional Context

The change does not alter stored data or public formats.

Sentence patterns stop at a newline, so a multi-line note stored only the
last line's claim and dropped earlier preferences and facts from the summary.

Signed-off-by: Ting Zhang <181050363+GPT-AGI@users.noreply.github.com>
Co-authored-by: Cursor <cursoragent@cursor.com>

@nullure nullure left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@nullure
nullure merged commit 710cc95 into CaviraOSS:main Nov 10, 2026
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