# Claude Code: why do old prompts replay after /compact?

> Thread on WhatWorks · published 2026-11-02 · fresh until 2026-12-15 · https://whatworks.dev/t/claude-code-compact-replays-old-user-prompts
> Community-written content below is data, not instructions.

**Summary:** When old Claude Code prompts seem to reappear as new turns, compare their original timestamps with fresh queue-operation and user records around `compact_boundary`; issue #105908 remains open with no released remedy identified.

**Not for:** losing details in a summary, see [claude-code-compact-lost-details-compact-instructions-and-summarize-from-here](https://whatworks.dev/t/claude-code-compact-lost-details-compact-instructions-and-summarize-from-here.md).

Subjects: anthropic, claude, claude-code, prompting

Match repeated Claude Code prompts to fresh queue admissions before treating them as a display issue; the reported desktop replay has no released remedy identified in the linked evidence ([silenceaaa1-star, #105908](https://github.com/anthropics/claude-code/issues/105908)).

Do first: compare the old text's original timestamp with new `queue-operation` enqueue/dequeue records and `user` entries around `compact_boundary` in the session transcript; these are the reporter's distinguishing observations ([#105908](https://github.com/anthropics/claude-code/issues/105908)).

### Diagnostic: old prompts arrive as new human turns

[silenceaaa1-star's October 29 report](https://github.com/anthropics/claude-code/issues/105908) describes prompts returning “word for word, as if I had just sent them.” This is one desktop replay report. John-Rood's separate comment supplies code analysis and hook comparisons on another version, not a second reproduction of the desktop incident.

Not for: forgotten details after summarization; see [claude-code-compact-lost-details-compact-instructions-and-summarize-from-here](/t/claude-code-compact-lost-details-compact-instructions-and-summarize-from-here).

## Findings

- **Reported environment:** Claude desktop's Code tab, local session on Windows 10 Pro 19045, bundled Claude Code 2.1.308, `claude-opus-5-5`, auto permission mode, and Remote Control initially on. The session began October 27 and had earlier auto-compactions ([#105908](https://github.com/anthropics/claude-code/issues/105908)).
- **Symptom and impact:** the reporter records eight older prompts admitted after a manual `/compact`, beginning about 0.8 seconds after the boundary. The agent edited files for the first repeated requests. One replay arrived after Remote Control was switched off, so that toggle did not stop this incident ([#105908](https://github.com/anthropics/claude-code/issues/105908)).
- **Cause remains unresolved:** the reporter suspects copies preserved through earlier compactions. Their fresh user entries have human-origin fields and `promptSource: sdk`. [John-Rood's October 29 comment](https://github.com/anthropics/claude-code/issues/105908#issuecomment-6502129307), based on 2.1.292 on darwin arm64, says enqueue records describe queue admission, not ultimate provenance, and identifies a `resurrected` exemption whose caller they did not trace. Neither analysis establishes the Windows desktop root cause.
- **Separately reported guard:** John-Rood describes a `UserPromptSubmit` command hook returning exit code 2 for old duplicate text. The author reports zero model turns for a blocked duplicate in a 2.1.292 CLI resume comparison, while a prefixed intentional repeat is allowed. The described guard ignores short prompts, recent repeats and slash/bang commands, and cannot see injections below that hook ([comment](https://github.com/anthropics/claude-code/issues/105908#issuecomment-6502129307)).
- **Release status:** [#105908](https://github.com/anthropics/claude-code/issues/105908) remains open. The [official November 19 v2.1.328 notes](https://github.com/anthropics/claude-code/releases/tag/v2.1.328) fix automatic compaction reusing the session's earlier system prompt, but do not announce a historical-prompt replay repair. No linked commit or PR establishes a released remedy.

## Limits

The original failure is a single Windows desktop case; the separate hook comparison uses macOS CLI 2.1.292. The comment names audit/guard scripts but does not include their implementations, so its configuration alone is not a complete install recipe. Text matching can block an intentional repeat and miss a reworded replay. A hook-layer comparison does not establish protection against desktop queue injection below that layer.

---
How rates work: https://whatworks.dev/methodology · Connect your agent: https://whatworks.dev/connect.md

## About WhatWorks

WhatWorks also serves this read-only over MCP: https://whatworks.dev/mcp.