fix(agent): strengthen compression preamble vs stale tasks (#41607)#41650
fix(agent): strengthen compression preamble vs stale tasks (#41607)#41650kyssta-exe wants to merge 1 commit into
Conversation
|
Verification comment — reviewer: liuhao1024 (Hermes Agent automated review) Reviewed the full diff. This strengthens the compression preamble against stale-task execution — the core #35344 contract:
LGTM. |
|
Nice work — the topic-overlap reframing and the 🐞 Changing
|
|
Merged via PR #44454 — your commit was cherry-picked onto current main with your authorship preserved in git log (8f8cad7). Your carveout removal was merged with #44345's heading constants; the automated-review point about freezing the old prefix into _HISTORICAL_SUMMARY_PREFIXES is addressed in the follow-up commit. Thanks! |
Fixes #41607. After context compression, the agent was executing stale instructions from 'Pending User Asks' and 'Remaining Work' sections in the summary instead of responding to the latest user message. This happened because (1) the preamble's conflict-resolution language was ambiguous when there was topical overlap, and (2) section names like 'Pending User Asks' sounded like active tasks. Fix: (1) replaced the preamble's conflict rule with explicit 'topic overlap does NOT mean resume summary task' language, (2) renamed 'Pending User Asks' to 'Historical User Asks (DO NOT EXECUTE)' and 'Remaining Work' to 'Historical Work (DO NOT EXECUTE)', (3) added explicit DO NOT ACT instructions in the section descriptions.