Skip to content

Qwen3.5 series models fail with 'System message must be at the beginning' error in v0.9.14 #315

Description

@allanchan339

Issue

Image

After updating from v0.9.2 to v0.9.14, Qwen3.5 series models (e.g., Qwen3.6 plus, Qwen3.5 27B) throw the error:

Reproduction Steps

  1. Use oh-my-opencode-slim v0.9.14
  2. Configure a Qwen3.5 series model
  3. Run opencode

Expected Behavior

System prompt should be placed at the beginning of the message array.

Actual Behavior

System prompt appears to be placed incorrectly, causing the error.

Workaround

Removing the plugin resolves the issue immediately.

Suggestion

Please check if the system prompt is being inserted at the correct position in the message array for Qwen3.5 models.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions