-
由 Will Chen 提交于
## Summary - Non-Anthropic providers (OpenAI, Google, Ollama, etc.) error with "The model does not support assistant message prefill" when the unclosed `dyad-write` continuation retry triggers - The continuation logic was using an assistant message as the last message (prefill pattern), which only Anthropic supports - Replaced with a user message that includes the partial response and asks the model to continue where it left off ## Test plan - Use a non-Anthropic provider (e.g. OpenAI, Gemini) in build mode - Trigger a response that produces an unclosed `<dyad-write>` tag (e.g. a large file write that gets cut off) - Verify the continuation retry no longer errors and the model completes the response
🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- devin-review-badge-begin --> --- <a href="https://app.devin.ai/review/dyad-sh/dyad/pull/3027" target="_blank"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://static.devin.ai/assets/gh-open-in-devin-review-dark.svg?v=1"> <img src="https://static.devin.ai/assets/gh-open-in-devin-review-light.svg?v=1" alt="Open with Devin"> </picture> </a> <!-- devin-review-badge-end --> --------- Co-authored-by:Claude Opus 4.6 (1M context) <noreply@anthropic.com>