Skip to content

fix(s08): preserve the complete active request after compaction - #603

Merged
CrazyBoyM merged 1 commit into
mainfrom
review/pr-578-active-request-20261027
Oct 27, 2026
Merged

CrazyBoyM merged 1 commit into
mainfrom
review/pr-578-active-request-20261027

Conversation

@CrazyBoyM

Copy link
Copy Markdown
Contributor

Long tool-use sequences can archive the active request. This incorporates #578, restores the request after a real snip, and compares the complete request field in retained summaries so an older request such as review code and rewrite it cannot stand in for the new request review code.

Fixes #577. The original author is credited in the commit. The two independently added test groups from #561 and #578 are both retained. The EN/ZH/JA examples are synchronized. A replacement branch is used because this integration cannot write to the contributor's fork.

Validation: context-compaction/tool-pair/chapter tests: 31 passed and 34 subtests passed. The new shortened-request regression failed before the boundary fix and passes afterward. No paid model API calls. Combined queue verification before the additional two regression cases passed 498 tests and 112 subtests; final combined verification follows with the generated-content update in the workflow-discovery PR.

AI assistance: prepared and reviewed with Codex as part of the maintainer-requested PR review.

Incorporate PR #578, retain the overflow regression tests from #561,
and match the complete request field in retained summaries.

Co-authored-by: ship <shiyipeng2002@163.com>
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
❌ Deployment failed
View logs
learn-claude-code a7bbf7d Oct 27 2026, 04:44 AM

@CrazyBoyM
CrazyBoyM merged commit 7226f55 into main Oct 27, 2026
2 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[s08_context_compact] Current user request may be lost after snip_compact

1 participant