Skip to content

fix(chat): keep private notes out of title generation and search - #189

Merged
nullStack65 merged 1 commit into
release/native-0.1.10from
fix/174-f1-note-privacy
Nov 23, 2026
Merged

nullStack65 merged 1 commit into
release/native-0.1.10from
fix/174-f1-note-privacy

Conversation

@nullStack65

Copy link
Copy Markdown
Owner

This closes the last open Critical review finding on the agent-chatter fold PR (#174, merged): F1, private notes reaching a model before promotion. Kameron asked for #174 to merge first and this repair to follow.

  1. Title generation: regenerating a thread title sent every user message to the title model, private /note entries included. formatThreadTitleContext now drops notes, which covers both the regenerate and fork-title paths, and the first-title path ignores a note id.
  2. Agent search: the earlier F1 repair bound a JavaScript boolean in the ThreadSearch note filter. node:sqlite rejects booleans, so every message search failed (29 of 33 ThreadSearch tests on feat(chat): fold agent chatter and promote human notes #174's head). The filter now binds 0 or 1. This breakage is on release/native-0.1.10 until this PR merges.

Tracking issue T3 Chat activity and note promotion.

Verification

  • threadTitleContext tests 6/6, including a new note test.
  • ThreadTitleRegenerationService tests 16/16, including a new test of the regenerate and first-title paths with a shared-thread note.
  • ThreadSearch 33/33; HumanNote, ContextHandoffService and MCP activity tests 18/18.
  • vp run check:changed origin/release/native-0.1.10: format, typecheck and knip pass. Lint and React Compiler failures are on release-base lines (MessagesTimeline.tsx 515–525, orchestrationV2.ts 621/672, mobile new-task-flow-provider.tsx). The Orchestrator.control-reads "drops a stale question wake" failure also reproduces on a clean release checkout.

Model claude-opus-5-5 via Claude Code in T3 Code.

Deploy: none

🤖 Generated with Claude Code

Close the remaining note-privacy gap (F1) on the chatter-fold PR. Title
regeneration fed every user message, private notes included, to the
title model; the formatter and the initial-title path now drop notes.
The agent search filter bound a boolean that node:sqlite rejects, so
every message search failed; it now binds 0 or 1.

Model: claude-opus-5-5
Task: fix
Agent: Magpie
Lane: magpie
Harness: t3/claude-code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@nullStack65

Copy link
Copy Markdown
Owner Author

REVIEW

Single independent review of 95f1e28cfcb9ddf9d6cee5ca98db848ca234637e on release base 9f0588c9293c93b37dd4bdb98b5a202948d6b5af (after #174 merged). Verdict: approve, no findings. It closes F1 from the #174 review.

  • The leak closed here is title generation. Notes are now dropped from formatThreadTitleContext (regenerate and fork history) and from the first-title path.
  • Swept for other paths and found each one already excludes notes: context handoff, PR and commit context (historicalMessage), provider turn-start history (getTurnStartHistory), MCP thread read, agent search. Provider turn start and recovery are run-keyed, and notes have no run.
  • Tests verified: title regeneration 16/16, title context 6/6.
  • Not audited exhaustively: speech post-processing and notifications. A grep found no note-text path in either.
{"reviewed_head":"95f1e28cfcb9ddf9d6cee5ca98db848ca234637e","reviewer":"Claude Opus 5.5 via Claude Code · Magpie (independent subagent)","findings":[{"id":"F1","severity":"critical","summary":"Pre-promotion note privacy incomplete in title generation (carried from #174).","outcome":"fixed","rechecked_head":"95f1e28cfcb9ddf9d6cee5ca98db848ca234637e"}]}

@nullStack65
nullStack65 merged commit 83800e4 into release/native-0.1.10 Nov 23, 2026
7 of 10 checks passed
@nullStack65
nullStack65 deleted the fix/174-f1-note-privacy branch November 23, 2026 09:20
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