Repository navigation
feat: let agents remember across private conversations - #100140
Conversation
|
Codex review: found issues before merge. Reviewed July 18, 2026, 3:11 AM ET / 07:11 UTC. Summary PR surface: Source +593, Tests +2186, Docs +146, Generated 0, Other +526. Total +3451 across 56 files. Reproducibility: yes. for the review finding: enable the setting and include an id-less entry in Review metrics: 2 noteworthy metrics.
Stored data model Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Mantis proof suggestion Risk before merge
Maintainer options:
Next step before merge
Security Review findings
Review detailsBest possible solution: Guard every Do we have a high-confidence way to reproduce the issue? Yes, for the review finding: enable the setting and include an id-less entry in Is this the best way to solve the issue? No, not yet: reusing Active Memory and Memory Core is the appropriate owner boundary, but the doctor helper must consistently handle optional agent IDs before this is safe to merge. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against cad4e395d21f. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +593, Tests +2186, Docs +146, Generated 0, Other +526. Total +3451 across 56 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
Review history (13 earlier review cycles; latest 8 shown)
|
a5ec482 to
48fc398
Compare
16c31aa to
9b81709
Compare
Co-authored-by: Vincent Koc <[email protected]>
7032b86 to
ae9c6ea
Compare
|
Merged via squash.
|
* feat(memory): remember across private conversations Co-authored-by: Vincent Koc <[email protected]> * chore(docs): regenerate config baseline * fix(memory): restore recall configuration wiring * fix(memory): scope recall transcript indexing * test(memory): repair conversation recall fixtures * test(memory): split session visibility coverage * style(memory): format type imports --------- Co-authored-by: Vincent Koc <[email protected]> Co-authored-by: Peter Steinberger <[email protected]>
* feat(memory): remember across private conversations Co-authored-by: Vincent Koc <[email protected]> * chore(docs): regenerate config baseline * fix(memory): restore recall configuration wiring * fix(memory): scope recall transcript indexing * test(memory): repair conversation recall fixtures * test(memory): split session visibility coverage * style(memory): format type imports --------- Co-authored-by: Vincent Koc <[email protected]> Co-authored-by: Peter Steinberger <[email protected]>
Closes #99611
What Problem This Solves
Personal agents currently keep every private conversation isolated, so relevant context from another Telegram DM, WebUI session, TUI session, or other private surface is unavailable unless operators broaden session-tool visibility or assemble several advanced memory settings.
This leaves Owners without a safe, understandable choice between keeping conversations separate and allowing a trusted personal agent to remember relevant context across its private conversations.
Why This Change Was Made
This adds a default-off, per-agent
memorySearch.rememberAcrossConversationssetting. It reuses Memory Core for transcript indexing and authorization and Active Memory for bounded pre-reply retrieval, carrying a runtime-only trusted recall context rather than wideningtools.sessions.visibilityor merging transcripts.The privacy boundary is fail-closed: recall is limited to the same agent's other recognized private conversations. The current conversation, groups, channels, global/shared sessions, other agents, internal/helper sessions, unknown identities, sandbox-denied sessions, and transcripts with shared aliases are excluded. Ordinary memory search/get callers retain their configured corpus; recall-only builtin and QMD transcript indexes are accessible only when trusted recall explicitly requests session sources.
User Impact
Owners can opt a personal or fully trusted agent into Remember across conversations while preserving separate conversations and delivery routes. Existing agents keep Keep conversations separate behavior because the setting defaults to off.
Shared workspace Markdown memory is unchanged. Group and channel conversations remain isolated in both directions.
/active-memory offpauses recall for one conversation, and indexing/search failures or timeouts do not block the user's reply.Evidence
pnpm test <15 affected test files> -- --reporter=dot— 906/906 passed across config, agent plumbing, Memory Core, Active Memory, QMD, doctor, Plugin SDK, and QA Lab suites.pnpm openclaw qa suite --provider-mode mock-openai --scenario remember-across-conversations --output-dir .artifacts/qa-e2e/remember-pr-final— 1/1 passed against a real Gateway child and qa-channel transport. The scenario proves positive private-to-private recall plus group/anchor exclusion, setting-off behavior, per-conversation pause, fresh-conversation independence, and unchangedtools.sessions.visibility.pnpm build— passed.pnpm config:docs:check— passed.pnpm plugin-sdk:api:check— passed.pnpm check:changed— passed all production/test typechecks, lint shards, import-cycle checks, architecture/security/package guards, and extension contracts.git diff --check origin/main...HEAD— passed.Live
openai/gpt-5.4 --fastacceptance was not run locally because no approved API credential was available. The deterministic mock-provider scenario covers the complete Gateway/channel/privacy flow without provider variance.