Skip to content

refactor: remove model API proxy and require native protocols - #224

Merged
SaladDay merged 12 commits into
mainfrom
codex/model-protocol-design-20260929
Sep 29, 2026
Merged

SaladDay merged 12 commits into
mainfrom
codex/model-protocol-design-20260929

Conversation

@SaladDay

@SaladDay SaladDay commented Sep 29, 2026 •

Copy link
Copy Markdown
Collaborator

Models now connect directly using protocols supported natively by the selected Harness: Responses for Codex, Anthropic for Claude Code, and all three existing protocols for MiniMax Code. Remove the embedded model HTTP proxy, conversion machinery and CLIProxyAPI dependency. Unsupported configurations fail explicitly without rewriting stored Session snapshots.

Define the shared model configuration contract in internal/harnessconfig/harness.go. Core and Runtime consume the same declaration; Runtime registration binds it to direct, preparation and Executor entry points. Validate model identity, provider and native parameters before native work. Claude's private bridge receives compiled native options and retains structural checks without duplicating Go's parameter semantics.

Web uses the single ordered protocol list and rejects unsupported stored selections. Preserve encrypted credentials, atomic configuration replacement and native execution/cancellation. Broader unified generation fields remain design-only and extend the existing contract.

Validation: targeted Go regression suites; client 755 tests and typecheck; Web typecheck and browser checks; Claude bridge 166 tests; OpenAPI and documentation verification. Fresh independent review found no in-scope issues. Rebuilt native Claude acceptance passed tool calls, failed tool results, cancellation, continuation and cold recovery. Full make check, official-client acceptance and Linux/macOS/Windows CI passed on 1b1d6c2622a4e235f8e93d22a8473ef19ea1a154.

@SaladDay
SaladDay marked this pull request as ready for review September 29, 2026 10:19
@SaladDay SaladDay changed the title docs: define unified model configuration protocol refactor: remove model API proxy and require native protocols Sep 29, 2026
@blacksmith-sh

This comment has been minimized.

…design-20260929

# Conflicts:
#	apps/docs/content/docs/bootstrap-projects-keys.mdx
#	apps/docs/content/docs/concepts.mdx
#	apps/docs/content/docs/configure.mdx
#	apps/docs/content/docs/index.mdx
#	apps/docs/content/docs/install.mdx
#	apps/docs/content/docs/public-api.mdx
#	apps/docs/content/docs/quickstart.mdx
#	apps/docs/content/docs/sessions.mdx
#	apps/docs/content/docs/troubleshooting.mdx
#	apps/docs/content/docs/user-guide.mdx
#	apps/docs/content/guide-sources.json
@SaladDay
SaladDay merged commit 313cc5b into main Sep 29, 2026
6 checks passed
@SaladDay
SaladDay deleted the codex/model-protocol-design-20260929 branch October 7, 2026 06:38
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