feat: add Codex Fast mode setting - #50
Open
niffyord wants to merge 3 commits into
Open
Conversation
Signed-off-by: niffyweb3 <85721983+niffyord@users.noreply.github.com>
niffyord
marked this pull request as ready for review
August 3, 2026 14:56
Contributor
|
Looks good! One concern before merge: Fast mode is enabled for every native Codex scan, but Could you add a compatibility guard (or confirm/document Codex’s fallback behavior) and cover an unsupported native model in tests? |
Signed-off-by: niffyweb3 <85721983+niffyord@users.noreply.github.com> # Conflicts: # .env.example # docker-compose.yml # engine/open_kritt_engine/harnesses.py # engine/open_kritt_engine/worker.py # engine/tests/test_runtime_repository_regressions.py
Signed-off-by: niffyweb3 <85721983+niffyord@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What & why
Add an opt-in, live Codex Fast mode setting for latency-sensitive scans.
Operators can turn Fast mode on or off from Settings without recreating the engine container. Native Codex scan and structured-output resume calls receive
features.fast_mode=trueandservice_tier="fast"; OpenRouter-backed Codex calls and tool-free generation keep their existing behavior.The toggle is intentionally explicit and warns that supported models consume credits at a higher rate. It follows the Codex Fast mode configuration.
Type of change
fix— bug fixfeat— new featuredocs— documentation onlyrefactor/chore/test/ci!/BREAKING CHANGE:)Affected components
Checklist
()scope)git commit -s) — DCOnpm run lint/ruff check .)IF NOT EXISTS-guarded migration indatabase/init/, Prisma schema updated, andmigrate.jsre-runs cleanly (idempotent)Notes for reviewers
Runtime behavior:
ENGINE_CODEX_FAST_MODE=falseValidation: