fix: gate fallback fast reset notices · openclaw/openclaw@6eb72a8
vincentkoc
·
2026-06-22
·
via Recent Commits to openclaw:main
File tree
extensions/codex/src/app-server
| Original file line number | Diff line number | Diff line change |
|---|
@@ -3129,7 +3129,9 @@ export async function runCodexAppServerAttempt(
|
3129 | 3129 | systemPromptReport, |
3130 | 3130 | }; |
3131 | 3131 | } finally { |
3132 | | -await maybeEmitFastModeAutoResetBestEffort(); |
| 3132 | +if (params.isFinalFallbackAttempt !== false) { |
| 3133 | +await maybeEmitFastModeAutoResetBestEffort(); |
| 3134 | +} |
3133 | 3135 | codexModelCallDiagnostics.emitError( |
3134 | 3136 | "codex app-server run completed without model-call terminal event", |
3135 | 3137 | ); |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -540,7 +540,9 @@ async function runCliAgentWithLifecycleInternal(
|
540 | 540 | for (const bridge of bridges) { |
541 | 541 | bridge.unsubscribe(); |
542 | 542 | } |
543 | | -await maybeEmitFastModeAutoReset(); |
| 543 | +if (params.runParams.isFinalFallbackAttempt !== false) { |
| 544 | +await maybeEmitFastModeAutoReset(); |
| 545 | +} |
544 | 546 | if (emitLifecycleTerminal && !lifecycleTerminalEmitted) { |
545 | 547 | emitAgentEvent({ |
546 | 548 | runId: params.runId, |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1066,6 +1066,7 @@ export function createFollowupRunner(params: {
|
1066 | 1066 | fastModeStartedAtMs, |
1067 | 1067 | fastModeAutoOnSeconds: candidateFastMode.fastModeAutoOnSeconds, |
1068 | 1068 | fastModeAutoProgressState, |
| 1069 | +isFinalFallbackAttempt: runOptions?.isFinalFallbackAttempt, |
1069 | 1070 | timeoutMs: run.timeoutMs, |
1070 | 1071 | runTimeoutOverrideMs: run.runTimeoutOverrideMs, |
1071 | 1072 | runId, |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。