[Bug] Post-/compact continue references wrong session context (cross-session memory bleed)
Bug Description
Post-/compact continue responds with prior session's context (cross-session bleed).
I had chat 1 where I wanted to update settings.local.json, which we accomplished. In chat 2 from where I took the screenshot, agentic pipeline(skill) was implementing a plan up until 95% session ctx fill where I decided to perform /compact. Once compact was done, I prompted "continue" to which claude responded seemingly with chat 1 context at first. Reprompting it helped.
On second screenshot we can see that 1st chat's details bled into compact summary too:
- Sidebar: user just asked about adding tsc-deny hooks - already present in .claude/settings.local.json.
Maintainers can reach me via email so I could provide raw jsonl transcripts if need be.
Repro steps:
- Session A in project X, do work, end session.
- Open session B in same project, run pipeline until ~95% context.
- Run /compact.
- Prompt continue — first response references session A's topic; reprompt recovers session B context.
Expected: continue resumes session B's compacted summary.
Actual: first post-compact turn pulls from a different session's memory/history
Environment Info
- Platform: darwin
- Terminal: WarpTerminal
- Version: 2.1.108
- Feedback ID: 6432ba94-feac-456e-907f-500a7dbe9d2b
Errors
[{"error":"McpToolCallError: ### Error\nError: browserBackend.callTool: net::ERR_CONNECTION_REFUSED at http://[REDACTED]:3210/\nCall log:\n\^[[2m - navigating to \"http://[REDACTED]:3210/\", waiting until \"domcontentloaded\"\^[[22m\n\n at mh9 (/$bunfs/root/src/entrypoints/cli.js:1772:63)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T23:52:43.466Z"},{"error":"McpToolCallError: ### Error\nTimeoutError: locator.textContent: Timeout 30000ms exceeded.\nCall log:\n\^[[2m - waiting for locator('[role=region][aria-label*=\"Notifications\"]')\^[[22m\n\n at mh9 (/$bunfs/root/src/entrypoints/cli.js:1772:63)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T23:54:38.085Z"},{"error":"Error: EISDIR: illegal operation on a directory, read '/Users/lee/dev/dk-web-agent-next/src/features/chat-filter/lib'\n at E1H (/$bunfs/root/src/entrypoints/cli.js:4438:15399)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T00:20:07.958Z"},{"error":"Error: Error normalizing tool input: ZodError: [\n {\n \"expected\": \"string\",\n \"code\": \"invalid_type\",\n \"path\": [\n \"command\"\n ],\n \"message\": \"Invalid input: expected string, received undefined\"\n }\n]\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:4866:1005)\n at map (native:1:11)\n at eK_ (/$bunfs/root/src/entrypoints/cli.js:4866:556)\n at Jp7 (/$bunfs/root/src/entrypoints/cli.js:8037:7769)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T00:33:07.054Z"},{"error":"McpToolCallError: ### Error\nError: Ref e21 not found in the current page snapshot. Try capturing new snapshot.\n at mh9 (/$bunfs/root/src/entrypoints/cli.js:1772:63)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T00:41:38.955Z"}]
<img width="708" height="834" alt="Image" src="https://github.com/user-attachments/assets/e4844a54-254c-4c2f-8345-78675dc44f1c" />
<img width="701" height="664" alt="Image" src="https://github.com/user-attachments/assets/b7c0e269-4e77-455a-9076-51799d46f7f7" />
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗