-
Notifications
You must be signed in to change notification settings - Fork 368
Agent loses context and halts after first session compaction #2871
Copy link
Copy link
Open
Labels
area/agentFor work that has to do with the general agent loop/agentic features of the appFor work that has to do with the general agent loop/agentic features of the apparea/sessionsFor features/issues/fixes related to session lifecycle (resume, persistence, export)For features/issues/fixes related to session lifecycle (resume, persistence, export)kind/fixPR fixes a bug (maps to fix: commit prefix)PR fixes a bug (maps to fix: commit prefix)
Metadata
Metadata
Assignees
Labels
area/agentFor work that has to do with the general agent loop/agentic features of the appFor work that has to do with the general agent loop/agentic features of the apparea/sessionsFor features/issues/fixes related to session lifecycle (resume, persistence, export)For features/issues/fixes related to session lifecycle (resume, persistence, export)kind/fixPR fixes a bug (maps to fix: commit prefix)PR fixes a bug (maps to fix: commit prefix)
Type
Fields
Give feedbackNo fields configured for Bug.
Description
After the first session compaction, the agent stops mid-task and responds as if it has no conversation history, outputting something like:
This breaks the agent's current thought process entirely. The only workaround is to re-enter the original prompt manually, after which it manages to continue — but all in-progress state is lost.
Steps to Reproduce
docker-agentsession with a multi-agent setupExpected Behavior
The agent should handle compaction transparently and continue its work without interruption or loss of context.
Actual Behavior
Additional Context
.yamlconfig — this is a regression