Skip to content

feat(server): add per-instance toggle for Codex developer instructions - #5

Open
hwanseoc wants to merge 1 commit into
mainfrom
feat/codex-developer-instructions-toggle
Open

feat(server): add per-instance toggle for Codex developer instructions#5
hwanseoc wants to merge 1 commit into
mainfrom
feat/codex-developer-instructions-toggle

Conversation

@hwanseoc

Copy link
Copy Markdown
Owner

Problem

Every Codex turn carries T3 Code's developer_instructions payload — collaboration mode rules, the Plan mode <proposed_plan> contract, preview browser guidance, and runtime info — with no way to opt out.

Fix

New injectDeveloperInstructions flag on CodexSettings (default on, so no behavior change unless toggled). It rides the existing per-instance config path: makeCodexAdapter(codexConfig)CodexSessionRuntimeOptionsbuildTurnStartParams, which simply omits the developer_instructions key when the flag is off.

No UI code: the schema-driven provider settings form renders the switch (Settings → Providers → Codex) from the field's providerSettingsForm annotation. Mobile has no provider settings form; the setting is server-authoritative.

Turning this off removes the Plan mode rules along with the rest of the payload — the setting's description and the new docs/user/providers-codex.md section both say so.

Verification

  • New CodexSessionRuntime.test.ts case: developer instructions omitted when the flag is off, model/effort settings still present.
  • vp test run on the four touched test files: 72 passed. Targeted tsgo (contracts, server) and vp lint clean.
  • Browser pass: toggled the switch in a dev server and confirmed providerInstances.codex.config.injectDeveloperInstructions: false persists to settings.json, and is stripped back to the default when re-enabled.

Screenshots

Before After
before after

— Kimi K3 via OpenCode

Codex turns always carry T3 Code's developer_instructions payload
(collaboration mode rules, the Plan mode contract, preview browser
guidance, and runtime info). Add an injectDeveloperInstructions flag to
CodexSettings, defaulting to on, and gate the payload on it. The
schema-driven provider settings form renders the switch automatically.

Turning it off removes the Plan mode rules with it; the setting's
description says so.
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.

1 participant