Skip to content

fix(opencode): preserve Qwen system-message compatibility - #11

Merged
HuChundong merged 1 commit into
mainfrom
codex/qwen-system-context-compat
Jul 16, 2026
Merged

HuChundong merged 1 commit into
mainfrom
codex/qwen-system-context-compat

Conversation

@HuChundong

Copy link
Copy Markdown
Owner

Summary

  • add configurable, case-insensitive model glob compatibility rules for stable recall context injection
  • default Qwen 3.6 models to synthetic user text so strict gateways receive a single system message
  • preserve system-context injection and prompt-cache behavior for all other models
  • prepare synchronized 0.7.2 release metadata

Closes anomalyco/opencode#20785 contextually; the upstream issue demonstrates the same strict Qwen system-message behavior.

Validation

  • cargo fmt --all -- --check
  • cargo clippy --workspace --all-targets --locked -- -D warnings
  • cargo test --workspace --locked
  • root data-tools npm run build
  • OpenCode plugin npm run typecheck
  • OpenCode plugin npm test (52 passed)
  • OpenCode plugin npm run pack:check
  • synchronized Cargo/root npm/plugin versions: 0.7.2

Compatibility

The new systemContextUserTextModelPatterns option defaults to ["*qwen3.6*"]. Users may add patterns for other strict gateways or set [] to disable the fallback. Title and compaction isolation, idempotent transforms, fail-open behavior, and non-matching model behavior remain unchanged.

@HuChundong
HuChundong merged commit e8e0f3d into main Jul 16, 2026
6 checks passed
@HuChundong
HuChundong deleted the codex/qwen-system-context-compat branch July 16, 2026 07:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Qwen/Qwen3.5-397B-A17B: system message must be at the beginning

1 participant