[Bug]: Agent stuck in infinite session summary loop**
Summary
the agent automatically generates a "Goal / Instructions / Discoveries / Accomplished" summary block after every single message — including simple greetings like "hi". The summary then gets passed as context to the next response, which triggers another summary, creating an infinite loop.
To Reproduce
- Open OpenWork (Starter workspace)
- Start a new session
- Type "hi"
- Agent responds with a full structured summary instead of a normal reply
- Every subsequent message triggers another summary — the agent never responds normally
Expected behavior
Agent should respond naturally to messages. Session summaries should only appear when explicitly requested or when context compression is genuinely needed.
Actual behavior
Every response includes a structured block like:
- Goal
- Instructions
- Discoveries
- Accomplished
- Relevant files / directories
- Next steps for the next agent
Screenshots (optional)
No response
OW version & Desktop info (optional)
No response
Additional context (optional)
The tool is completely unusable in this state. Every session immediately enters the loop regardless of input. This appears to be a built-in session handoff / context compression feature that is misfiring on every message instead of only triggering when context is long or explicitly requested.
Same here.
Linking this with #1074 and #777 (and the broader agent-loop discussion in #932) since these reports look like the same recurring loop family.
@benjaminshafii this issues still exist in latest version 1.84 - its a breaking issue, unable to use openwork
This problem is so fatal that openwork cannot be used at all.
We have a fix for this Will be in next release
Can you try in .185 + and report if ths issue is still happening?
We shipped a fix to detect if the convo is in a doom_loop and require input from the user
This mimics the underlying opencode implementation
will keep issue open for now till we get confirmation of a fix
Can you try in .185 + and report if ths issue is still happening? We shipped a fix to detect if the convo is in a
doom_loopand require input from the user This mimics the underlying opencode implementationwill keep issue open for now till we get confirmation of a fix
Still not resolved @OmarMcAdam
Version 0.11.186 (0.11.186)
What provider are you using
that OpenAi gpt-5.2 isnt matching our patterns
its not resolved
Which provider/model? Is it using built in providers or custom?
@OmarMcAdam I am using customer provider - Alicloud qwen3.5 plus
Did you manually set it up in the opencode.json Or use the ui to configure?
It seems like the context window is set too low
Did you manually set it up in the opencode.json Or use the ui to configure?
Manually set in opencode.json
It seems like the context window is set too low
its standard context size - which was working fine previously - 128k tokens
please send me copy of config so i can try to replicate @mcpizza on discord
I'm 99% certain this is to do with custom providers now and is a separate issue from the endless loop
@OmarMcAdam shared you config via DM in discord
@OmarMcAdam I have changed the model, still not resolved
input :"who are you"
Ok we're still debugging this and conflicting with an upstream issue
for now please switch off auto compaction
Settings > Workspace > Model > Auto context compaction > OFF
@OmarMcAdam I am facing same even auto compaction is off .
Please update to v0.11.194 and check behaviour
if it still does it in an old convo, try creating a new convo
@src-opn - its still same