[PR #11600] fix: convert system message content to string for Copilot provider #13856

Closed
opened 2026-02-16 18:18:41 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/11600

State: closed
Merged: Yes


Summary

  • Fixed system message content being wrapped in array format instead of plain string
  • The GitHub Copilot API for Claude/Anthropic models expects system message content as a string, causing AGENTS.md instructions to be silently ignored
  • Added explicit test for system message format

Fixes #11540
Fixes #11732

Test plan

  • Unit tests pass: bun test test/provider/copilot/convert-to-copilot-messages.test.ts
  • Manual test: Create AGENTS.md with custom instruction and verify Opus via Copilot follows it

🤖 Generated with Claude Code

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/11600 **State:** closed **Merged:** Yes --- ## Summary - Fixed system message content being wrapped in array format instead of plain string - The GitHub Copilot API for Claude/Anthropic models expects system message content as a string, causing AGENTS.md instructions to be silently ignored - Added explicit test for system message format Fixes #11540 Fixes #11732 ## Test plan - [x] Unit tests pass: `bun test test/provider/copilot/convert-to-copilot-messages.test.ts` - [x] Manual test: Create AGENTS.md with custom instruction and verify Opus via Copilot follows it 🤖 Generated with [Claude Code](https://claude.com/claude-code)
yindo added the pull-request label 2026-02-16 18:18:41 -05:00
yindo closed this issue 2026-02-16 18:18:41 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#13856