fix: request assistant reply for structured output#141
Conversation
|
@codex please review this PR when you have a chance. Context: this fixes OpenCode structured output usage by requesting an assistant reply instead of |
|
I tried to merge this PR into the latest
Several structured-output / opencode-provider changes landed in the latest release, which is what this now collides with. Please rebase/merge the latest |
|
I tried to merge this PR into the latest
Structured-output / opencode-provider changes landed in the latest release, which is what this now collides with. Please rebase/merge the latest |
Summary
noReply: falsefor transient OpenCode structured-output prompts and update the opencode-provider regression test.noReply: trueas context-only, returning before the assistant loop that populatesinfo.structured.Scope
generateStructuredOutput()calls through OpenCode v2session.prompt; related unit test expectation.Deployment Targets
opencodeProvider+opencodeModelfor auto-capture/profile structured output.noReply: truerequest behavior.Acceptance Plan
info.structured; transient sessions are still deleted.Validation
bun test tests/opencode-provider.test.tsbun run typecheckbun run format:checkbun run build && bun test156 pass, 0 fail.