Skip to content

fix: move headroom before translation to cover all output formats (#2…#2698

Open
hobart9527 wants to merge 2 commits into
decolua:masterfrom
hobart9527:master
Open

fix: move headroom before translation to cover all output formats (#2…#2698
hobart9527 wants to merge 2 commits into
decolua:masterfrom
hobart9527:master

Conversation

@hobart9527

Copy link
Copy Markdown

…620)

Move compressWithHeadroom call before translateRequest, operating on body (source messages) with sourceFormat instead of translatedBody with finalFormat. This ensures all output formats (commandcode, ollama, gemini, etc.) get compressed — previously non-OpenAI/Claude formats silently skipped compression because translated bodies lack body.messages.

hobart9527 added 2 commits July 18, 2026 21:35
…colua#2620)

Move compressWithHeadroom call before translateRequest, operating on
body (source messages) with sourceFormat instead of translatedBody with
finalFormat. This ensures all output formats (commandcode, ollama, gemini,
etc.) get compressed — previously non-OpenAI/Claude formats silently
skipped compression because translated bodies lack body.messages.
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