You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Browse filesBrowse the repository at this point in the historyBrowse files
authored
feat(selfhost): allow per-repo AI CLI timeout overrides in review.ai_model (#8364) (#8458)
* feat(selfhost): allow per-repo AI CLI timeout overrides in review.ai_model (#8364)
Mirror the existing model/effort config-as-code path for the four CLI
timeout knobs so a shared self-host instance is not stuck on one global
env-var budget per repo.
Co-authored-by: Cursor <cursoragent@cursor.com>
* npm run docs:drift-check
* npm run test:coverage
---------
Co-authored-by: Andriy Polanski <andriy.polanski@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: loopover-orb[bot] <296761690+loopover-orb[bot]@users.noreply.github.com>
/** `review.ai_model.claude_model`: overrides CLAUDE_AI_MODEL for this repo's claude-code reviewer. null (default) ⇒ the operator's global env var, then the provider's own default. */
1009
1010
claudeModel: string|null;
@@ -1013,6 +1014,14 @@ export type SelfHostAiModelConfig = {
1013
1014
codexModel: string|null;
1014
1015
/** `review.ai_model.codex_effort`: overrides CODEX_AI_EFFORT for this repo's codex reviewer. null (default) ⇒ the operator's global env var, then "medium". */
1015
1016
codexEffort: string|null;
1017
+
/** `review.ai_model.claude_timeout_ms` (#8364): overrides CLAUDE_AI_TIMEOUT_MS for this repo's claude-code reviewer. null (default) ⇒ the operator's global env var, then the effort-based ladder. */
1018
+
claudeTimeoutMs: number|null;
1019
+
/** `review.ai_model.codex_timeout_ms` (#8364): overrides CODEX_AI_TIMEOUT_MS for this repo's codex reviewer. null (default) ⇒ the operator's global env var, then the effort-based ladder. */
1020
+
codexTimeoutMs: number|null;
1021
+
/** `review.ai_model.claude_first_output_timeout_ms` (#8364): overrides CLAUDE_AI_FIRST_OUTPUT_TIMEOUT_MS for this repo's claude-code reviewer. null (default) ⇒ the operator's global env var, then the provider default. */
1022
+
claudeFirstOutputTimeoutMs: number|null;
1023
+
/** `review.ai_model.codex_first_output_timeout_ms` (#8364): overrides CODEX_AI_FIRST_OUTPUT_TIMEOUT_MS for this repo's codex reviewer. null (default) ⇒ the operator's global env var, then the provider default. */
1024
+
codexFirstOutputTimeoutMs: number|null;
1016
1025
/** `review.ai_model.ollama_model` (#3902): overrides OLLAMA_AI_MODEL for this repo's ollama reviewer. null (default) ⇒ the operator's global env var, then the provider's own default. */
1017
1026
ollamaModel: string|null;
1018
1027
/** `review.ai_model.openai_model` (#3902): overrides OPENAI_AI_MODEL for this repo's openai reviewer. null (default) ⇒ the operator's global env var, then the provider's own default. */
0 commit comments