Deep-copy plugin context engine to prevent delegate_task corruption

NousResearch/hermes-agent · cluster 42449 · agent

Data as of

Nothing open on GitHub. Fix merged in #52134. Check it covers your case.

The short answer

0open issues
0open PRs
6items grouped
Known?
Yes. 6 related items grouped here, 1 issue already closed.
Fix event
A fix was merged to main in PR #52134. Check it covers your case. No release data is tracked.
Tracker
The maintainers' tracker marks this resolved, deciding PR #52134. That is separate from the fix event.
Still open
Nothing open on GitHub.

These issues and PRs address a bug where delegate_task corrupts the parent agent's context_length by sharing a plugin context engine singleton. The proposed fix involves deep-copying the context engine to isolate child task state from the parent.

Open issues0

No open issues.

Open PRs0

No open pull requests.

Fixes on record

Merged to main. A stamp counts the issues a fix is linked to.

  • #52134 fix(agent): deepcopy plugin context engine to prevent parent corruption on delegate_task (#42449)

    merged to main

    files: agent/agent_init.py, tests/agent/test_context_engine.py

4 PRs closed without merging

From the close comments: superseded by another PR 3 · merged via another change 1

  • #42452 fix(agent): deepcopy plugin context engine to prevent parent corruption · merged via another change → #52134
  • #42461 fix(agent): deep-copy context engine singleton to prevent parent corruption (#42449) · superseded by another PR → #42452, #42449
  • #42469 fix(agent): deepcopy plugin context engine to prevent parent corruption on delegate_task · superseded by another PR → #52134, #42449, #42452
  • #42474 fix(agent): deepcopy plugin context engine singleton to prevent parent corruption via delegate_task · superseded by another PR → #42469, #52134, #42449
Closed issues · 1
  • Closed#42449delegate_task corrupts parent context_length via shared plugin context engine singleton
How this cluster was grouped
  • Link evidence (structural links throughout): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
  • Pairwise link density 0.33: the share of item pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36. 1.00 means every pair is linked.

Pick up a Lab task

Check whether a fix covers the open issues here, with your own agent. Bring back evidence for maintainers.

Open the Lab

At a glance

Subsystem
agent
Merged PRs
#52134
Closed issues
1
Attempts
4 PRs closed without merging
Fix link checked
24 Jun 2026

For your agent

The same facts, typed.