You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Build mode stops executing before task is complete #7159
These issues all describe similar symptoms of execution prematurely stopping or halting during task completion. Your issue with playwright/playwriter MCP tools stopping before task completion appears related to this pattern.
Feel free to ignore if none of these address your specific case.
I am having the Same Issue , I think not only playwright, even chrome dev tool, and i think more MCPs can cause this cut in the executing, and none browser MCPs can lead to the same issue , I have been trying to solve it all day , nothing worked
Are You Using any type of proxy for your LLMs? I have been trying without the proxy seems I have different results
had the same a few times and came here to check what's happening. It just ends for no real reason
generally wondering how much the claude + claude-code combo outperforms independent client / model development. If this is anything like apple vertically integrating hardware and software, I suspect this project has a difficult task to make various models play ball with the prompts they receive from opencode vs. say codex or CC
note that I've only tested opus and I'm not sure how the rest of the models behave. I'll define each model family to their respective provider at some point, but not yet
EDIT2: neither anthropic, not google liked me using OC, beware that people get banned for using OC with a claude subscription 🔥
text: `Tool ${part.tool} returned an attachment:`,
},
...part.state.attachments.map((attachment)=>({
type: "file"asconst,
url: attachment.url,
mediaType: attachment.mime,
filename: attachment.filename,
})),
],
})
}
For those using mcps or dealing w/ images in any variety, and that is what this issue will focus on because it is what OP is reporting, I think it's due to this user message injected. This was originally done so that tools could output images and it never got cleaned up
Need to figure out how to make it not require a user message (not very intuitive ai sdk behavior, or im an idiot)
Theory is that the user message containing the image was confusing the model, instead just keep the image data as tool part, should prevent it from stopping the loop randomly
Will definitely test it out thanks. Now that I think of it I think it was hanging when playwright mcp was screenshotting pages so your diagnosis makes sense.
Hmm, the problem is reproducible for me too, but my MCP server is not returning any attachments, only text.
Here's mcp server I am using (self-built): grok-imagine-mcp
it works fine for claude code.
Using Opus 4.5 (github copilot)
Generating Images
Once configured, you can ask Claude to generate images:
Generate an image of a sunset over mountains and save it to /Users/username/Pictures
Claude will use the generate_image tool, which will:
Send a request to the Chrome extension via WebSocket
The extension opens grok.com/imagine in a new tab
Automates entering the prompt and generating the image
Captures the generated image as base64
Closes the tab and sends the image back
The MCP server saves the image to the specified folder
@rekram1-node I also experience the stopping issue when using the Notion MCP. It only starts by calling notion_notion-search to search for documents and then begins analyzing them, but it stops before the search is completed at around 12.1 seconds. Using the plugin supermemory querying project data also stops after about 5.4 seconds. I’m not sure whether this is related to an MCP issue.
Activity
github-actions commentedon Jan 7, 2026
This issue might be a duplicate of existing issues. Please check:
These issues all describe similar symptoms of execution prematurely stopping or halting during task completion. Your issue with playwright/playwriter MCP tools stopping before task completion appears related to this pattern.
Feel free to ignore if none of these address your specific case.
rekram1-node commentedon Jan 7, 2026
Huh that's weird...
rekram1-node commentedon Jan 7, 2026
Does this only happen when using that mcp server?
jtaavola commentedon Jan 7, 2026
Yeah mainly the
playwritermcp, I swear I had issues with the officialplaywrightmcp earlier today too. Both seem to be fine in claude codeVikt0r70 commentedon Jan 7, 2026
I am having the Same Issue , I think not only playwright, even chrome dev tool, and i think more MCPs can cause this cut in the executing, and none browser MCPs can lead to the same issue , I have been trying to solve it all day , nothing worked
Are You Using any type of proxy for your LLMs? I have been trying without the proxy seems I have different results
luisrudge commentedon Jan 12, 2026
having the same issue when doing screenshots with the
screencapturemacos cliluisrudge commentedon Jan 13, 2026
this makes the whole 'ralph loop' unusable because OC stops halfway through a step and then starts a new iteration without finalizing the first one
pascalwhoop commentedon Jan 14, 2026
had the same a few times and came here to check what's happening. It just ends for no real reason
generally wondering how much the claude + claude-code combo outperforms independent client / model development. If this is anything like apple vertically integrating hardware and software, I suspect this project has a difficult task to make various models play ball with the prompts they receive from opencode vs. say codex or CC
pascalwhoop commentedon Jan 14, 2026
one more, the Codex 5.2 is really loosing it in opencode, no idea what it's on about. All I asked it was to search the repo for some files
dzervas commentedon Jan 14, 2026
I have the same issue with opus by antigravity for nearly any tool
EDIT: I was able to fix this by changing the defined provider from
@ai-sdk/openai-compatibleto@ai-sdk/anthropic.here's my config:
note that I've only tested opus and I'm not sure how the rest of the models behave. I'll define each model family to their respective provider at some point, but not yet
EDIT2: neither anthropic, not google liked me using OC, beware that people get banned for using OC with a claude subscription 🔥
starcraft66 commentedon Jan 14, 2026
I'm seeing the same issue with playwright mcp server (the only one in my config). I keep having to tell it to keep going.
rekram1-node commentedon Jan 14, 2026
looking into this today
rekram1-node commentedon Jan 15, 2026
Hm trying to replicate and can't, if anyone can share full sessions that'd be super helpful
rekram1-node commentedon Jan 16, 2026
I think ik the issue here:
opencode/packages/opencode/src/session/message-v2.ts
Lines 507 to 523 in e4a34be
For those using mcps or dealing w/ images in any variety, and that is what this issue will focus on because it is what OP is reporting, I think it's due to this user message injected. This was originally done so that tools could output images and it never got cleaned up
Need to figure out how to make it not require a user message (not very intuitive ai sdk behavior, or im an idiot)
rekram1-node commentedon Jan 16, 2026
Found fix I think, gonna add it shortly
This should fix it:
de2de09
Theory is that the user message containing the image was confusing the model, instead just keep the image data as tool part, should prevent it from stopping the loop randomly
rekram1-node commentedon Jan 16, 2026
This should be fixed in 1.1.24, going out rn
starcraft66 commentedon Jan 16, 2026
Will definitely test it out thanks. Now that I think of it I think it was hanging when playwright mcp was screenshotting pages so your diagnosis makes sense.
rekram1-node commentedon Jan 16, 2026
Accidentally introduced a regression w/ compaction with that fix reverting and then gonna try to find better solution
laruss commentedon Jan 17, 2026
Hmm, the problem is reproducible for me too, but my MCP server is not returning any attachments, only text.
Here's mcp server I am using (self-built): grok-imagine-mcp
it works fine for claude code.
Using Opus 4.5 (github copilot)
luisrudge commentedon Jan 18, 2026
@laruss your tool call is absolutely generating an image, hence the name
grok-imagine_generate_image😅rekram1-node commentedon Jan 18, 2026
@laruss from the readme of linked project:
So it definitely generates and returns image
laruss commentedon Jan 18, 2026
@rekram1-node it generates an image and saves it in the location requested by the agent (yeah, it's a bit tricky)
cheuklcl commentedon Jan 19, 2026
@rekram1-node I also experience the stopping issue when using the Notion MCP. It only starts by calling notion_notion-search to search for documents and then begins analyzing them, but it stops before the search is completed at around 12.1 seconds. Using the plugin supermemory querying project data also stops after about 5.4 seconds. I’m not sure whether this is related to an MCP issue.
rekram1-node commentedon Jan 22, 2026
Okay should be fixed in next release fr this time: c284469
MNCloudwerksTechnology commentedon May 29, 2026
Still reproducible in 1.15.12 using qwen3.6-35b-a3b