[Bug] Agent ignores memory instructions for git diff and relies on --stat instead of full diff
Status Open
Reported on v2.1.220
Maintainer reply None cached
Activity 0 comments · opened Aug 24, 2026
Bug Description
even though I have a memory for the claude code agent to do a 'git --no-pager diff' at certain points to help write commit messages, the agent continually forgets and just goes 'git --no-pager diff --stat', uses sed and then reads the lines it wants, or writes the messages from memory while missing items that were contextually changed or bugs that were introduced but not caught at the time of writing. Using Opus 5, but it happened on 4.8 as well. Using medium effort, if that makes a difference. Happens in the current working directory and several others I have been working in over the past couple of weeks.
Environment Info
- Platform: win32
- Terminal: windows-terminal
- Version: 2.1.220
- Feedback ID: 6af43b28-a186-4d24-87b1-90768f8b8314
Errors
[{"error":"TelemetrySafeError: VirtualMessageList: itemKeys/messages length desync (keys=251 messages=250 range=[219,251))\n at Gzb (B:/~BUN/root/src/entrypoints/cli.js:21739:8188)\n at Hhf (B:/~BUN/root/src/entrypoints/cli.js:21739:1103)\n at no (B:/~BUN/root/src/entrypoints/cli.js:2061:21369)\n at DA (B:/~BUN/root/src/entrypoints/cli.js:2061:40466)\n at q3 (B:/~BUN/root/src/entrypoints/cli.js:2061:51400)\n at Mne (B:/~BUN/root/src/entrypoints/cli.js:2061:89060)\n at ULe (B:/~BUN/root/src/entrypoints/cli.js:2061:88007)\n at Wge (B:/~BUN/root/src/entrypoints/cli.js:2061:87827)\n at nQ (B:/~BUN/root/src/entrypoints/cli.js:2061:84091)\n at Rt (B:/~BUN/root/src/entrypoints/cli.js:2061:6668)","timestamp":"2026-08-23T20:03:27.390Z"}]