Skip to content

fix: OpenAI-compatible adapter default max_tokens 4096 → 8192 (live-grind finding)#14

Merged
telivity-otaip merged 1 commit into
mainfrom
fix/openai-adapter-maxtokens
Jun 18, 2026
Merged

fix: OpenAI-compatible adapter default max_tokens 4096 → 8192 (live-grind finding)#14
telivity-otaip merged 1 commit into
mainfrom
fix/openai-adapter-maxtokens

Conversation

@telivity-otaip

Copy link
Copy Markdown
Collaborator

Found by an actual live grind routing ASIL's executor at gpt-4o via the OpenAI-compatible adapter (#4).

The executor rewrites whole files. On a ~700-line file the response hit the adapter's 4096 default mid-output, truncating the closing <<<END FILE>>> sentinel, so the executor rejected the incomplete block. The Anthropic caller already used 8192; the OpenAI-compatible path needs the same headroom.

After the fix the same grind ran clean end-to-end: executor → typecheck → tests → 3-persona self-review → adversarial gate all passed, stopping only at git push (no remote, by design).

Regression test asserts the 8192 default. CI-gated.

🤖 Generated with Claude Code

Surfaced by a live grind: routing the executor at gpt-4o via the
OpenAI-compatible adapter, a whole-file rewrite of a ~700-line file was
truncated at the 4096-token default mid-output, so the closing
`<<<END FILE>>>` sentinel was cut and the executor (correctly) rejected
the incomplete block as "no FILE blocks". The Anthropic caller already
used 8192; the executor rewrites entire files, so the OpenAI-compatible
path needs the same headroom. After the fix, the same grind produced a
complete patch that passed typecheck + tests + 3-persona self-review +
adversarial gate end-to-end (stopping only at the push, which had no
remote by design).

Regression test asserts the 8192 default.
@telivity-otaip telivity-otaip merged commit e5957a1 into main Jun 18, 2026
2 checks passed
@telivity-otaip telivity-otaip deleted the fix/openai-adapter-maxtokens branch June 18, 2026 03:55
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