Skip to content

[codex] add plan-only model routing isolation#1

Draft
luobosibing2 wants to merge 4420 commits into
devfrom
codex/plan-only-model-routing
Draft

[codex] add plan-only model routing isolation#1
luobosibing2 wants to merge 4420 commits into
devfrom
codex/plan-only-model-routing

Conversation

@luobosibing2

Copy link
Copy Markdown
Owner

Summary

  • Add plan_only_model_routing config and inject a fake-key plan-only/glm-5.1 provider through the plugin config hook.
  • Route Plan and Prometheus - Plan Builder messages to the Plan-only model, restore normal models for non-Plan misuse, and keep Plan-only out of session model state.
  • Add Plan route header marking plus reference docs covering requirements, logic, tests, and demo runtime.

Test Plan

  • npx --yes bun@latest run build:schema
  • npx --yes bun@latest test src/config/schema/oh-my-opencode-config.test.ts src/plugin-handlers/config-handler.test.ts src/plugin/chat-message.test.ts src/plugin/chat-headers.test.ts src/plugin/event.test.ts src/plugin/event-compaction-agent.test.ts --bail
  • npx --yes bun@latest run typecheck
  • npx --yes bun@latest run build
  • Staged secret scan for the provided real key prefixes and real-key env assignment patterns
  • Local demo listeners verified on 127.0.0.1:8787, 127.0.0.1:4096, and 127.0.0.1:4444

code-yeongyu and others added 30 commits May 31, 2026 00:42
Resolve LazyCodex/Codex integration conflicts and keep Codex install compatibility checks building bundled MCP runtimes before installer tests.
…e-opencode-responses

fix: dedupe OpenCode idle responses
Plan: plans/codex-windows-git-bash-profile.md
Plan: plans/codex-windows-git-bash-profile.md
code-yeongyu and others added 28 commits June 3, 2026 02:23
…size

The Final Quality Gate forced a $code-review reviewer spawn on every
final goal. For small, local, low-risk changes that is wasteful. Make
step 4 size-aware: spawn $code-review only for large or risky work
(multi-file, cross-cutting, new architecture, security/data surfaces,
or low confidence), otherwise self-review and record codeReview via the
UNCONDITIONAL APPROVAL evidence path with a one-line justification.

Keeps the quality-gate-json contract intact (codeReview stays required).
$code-review was not a defined command or tool, just an informal alias.
The Codex Tool Mapping already names the real reviewer as the
codex-ultrawork-reviewer agent (worker fallback when unavailable).
Point the final quality gate (full-workflow.md step 4) and the goal
instruction text at that actual spawn_agent call instead of the
non-existent $code-review.
Replace the bogus $code-review token in the final review step with the same size-judged codex-ultrawork-reviewer spawn guidance used elsewhere, matching the reviewer-call fix already on dev.
@github-actions

github-actions Bot commented Jun 3, 2026

Copy link
Copy Markdown

Thank you for your contribution! Before we can merge this PR, we need you to sign our Contributor License Agreement (CLA).

To sign the CLA, please comment on this PR with:

I have read the CLA Document and I hereby sign the CLA

This is a one-time requirement. Once signed, all your future contributions will be automatically accepted.


I have read the CLA Document and I hereby sign the CLA


1 out of 2 committers have signed the CLA.
✅ (MoerAI)[https://github.com/MoerAI]
@dihak
You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

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.

10 participants