fix: address round-4 review feedback on semantic memory - #882
Open
Dhirenderchoudhary wants to merge 1 commit into
Open
Conversation
Dhirenderchoudhary
marked this pull request as ready for review
August 15, 2026 18:19
Dhirenderchoudhary
requested review from
Avtrkrb,
akramcodez and
will-lamerton
as code owners
August 15, 2026 18:19
Dhirenderchoudhary
force-pushed
the
fix/619-semantic-memory-review-fixes-v4
branch
from
August 15, 2026 18:21
3ed5fb7 to
eb7355a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Addresses comments of the semantic memory feature (#619): #619 (comment)
Revised merge bar, all four items:
/memory accept <n>re-indexing bug fixed — accepted indices are now tracked in aSetinstead of splicing the proposal array, so accepting one proposal no longer shifts the numbers under proposals still on screen./settings→ Advanced → Semantic Memory.resolveProjectContextPreferences()is the single source of truth, wired into all three call sites (TUI, ACP agent, plain shell), plus two new cyclable rows in the Advanced settings panel./memory listshort IDs —memory.tsrewritten as a themedmemory.tsxInk component (matchingtasks.tsx/mcp.tsx/agents.tsx), with 8-char short IDs and unambiguous-prefix resolution replacing raw 121-char UUID lines.Also hardened the assistant-reversal detector per the reviewer's own follow-up: added a real contradiction check between assistant turns (
isContradiction), widened the technical-evidence guard so a bare/no longer disables detection, and made the walk-back skip tool-call-only turns instead of bailing on any intervening assistant message. Plus: fenced project-context content can no longer be escaped by backticks in memory content,/memory proposeoutput is now bounded (last 40 messages scanned, 20 proposals max), and thesemanticMemoryEnableddefault no longer lives in three separate places.Closes #619
Type of Change
Changeset
pnpm changeset) describing this change for the changelogTesting
Automated Tests
.spec.ts/tsxfilespnpm test:allcompletes successfully)Ran
tsc --noEmit(clean),biome checkon every touched file (clean), and targetedavaruns covering every touched spec file — 142+ tests passing, 0 failing.Manual Testing
Checklist