Repository navigation
fix: write the memory index's placement link in words that need no escape - #3105
Merged
Merged
Conversation
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.
Summary
Problem
Every agent session starts with a Project Memory index, and a card placed in a file or merged in a pull request showed as
m794 PR은 CI 통과 후 바로 머지 -> AGENTS.md.The index escapes
<,>and&so a card's own text cannot close the<hide-memory-index>tag, but it also escaped Hide's own->separator, so Hide's words read as noise to every agent.Before → After
m1033 ... -> docs/BUILD.mdand... -> merged in pull request #924 (original repository unknown)m1033 ... (in docs/BUILD.md)and... (merged in pull request #924, original repository unknown)Same for the user: only the text agents read at session start changes.
Not verified
Injection::contextinhide-memory.hide-memory/src/store.rsconstructs or readsInjectedItem, andrgfinds no other writer of the-> pathtext.Evidence
scripts/verify-cargo.sh nextest -p hide-memory -p hide-agent-hooks: 703 passed, 3 skipped;clippy -p hide-memory --all-targets -D warningsandcargo fmt --all --checkclean.Tests
hide-memory's store tests.>(Hide's link escaped again), or the card's own>in a title left unescaped;a_merged_card_points_at_its_file_and_is_never_given_in_fullnow reads the rendered index and a title containing>.Risky files
hide-memory/src/store.rs-InjectedItemgainsplaced(serde default, skipped when none); the line is written once inindexand rendered inInjection::context, which still escapes the card's text.