fix: preserve fast auto delivery semantics · openclaw/openclaw@9e8ab08
vincentkoc
·
2026-06-22
·
via Recent Commits to openclaw:main
File tree
extensions/codex/src/app-server
agents/embedded-agent-runner
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1836,7 +1836,11 @@ export async function runCodexAppServerAttempt(
|
1836 | 1836 | await emitFastModeAutoProgress(next); |
1837 | 1837 | }; |
1838 | 1838 | const maybeEmitFastModeAutoReset = async (): Promise<void> => { |
1839 | | -if (!fastModeAutoProgressState.offAnnounced || fastModeAutoProgressState.resetAnnounced) { |
| 1839 | +if ( |
| 1840 | +params.fastModeAuto !== true || |
| 1841 | +!fastModeAutoProgressState.offAnnounced || |
| 1842 | +fastModeAutoProgressState.resetAnnounced |
| 1843 | +) { |
1840 | 1844 | return; |
1841 | 1845 | } |
1842 | 1846 | fastModeAutoProgressState.resetAnnounced = true; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -891,7 +891,11 @@ async function runEmbeddedAgentInternal(
|
891 | 891 | return resolveAttemptFastMode(); |
892 | 892 | }; |
893 | 893 | const maybeEmitFastModeAutoReset = async () => { |
894 | | -if (!fastModeAutoProgressState.offAnnounced || fastModeAutoProgressState.resetAnnounced) { |
| 894 | +if ( |
| 895 | +params.fastMode !== "auto" || |
| 896 | +!fastModeAutoProgressState.offAnnounced || |
| 897 | +fastModeAutoProgressState.resetAnnounced |
| 898 | +) { |
895 | 899 | return; |
896 | 900 | } |
897 | 901 | fastModeAutoProgressState.resetAnnounced = true; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -415,7 +415,11 @@ async function runCliAgentWithLifecycleInternal(
|
415 | 415 | await emitFastModeAutoProgress(next); |
416 | 416 | }; |
417 | 417 | const maybeEmitFastModeAutoReset = async () => { |
418 | | -if (!fastModeAutoProgressState.offAnnounced || fastModeAutoProgressState.resetAnnounced) { |
| 418 | +if ( |
| 419 | +params.runParams.fastMode !== "auto" || |
| 420 | +!fastModeAutoProgressState.offAnnounced || |
| 421 | +fastModeAutoProgressState.resetAnnounced |
| 422 | +) { |
419 | 423 | return; |
420 | 424 | } |
421 | 425 | fastModeAutoProgressState.resetAnnounced = true; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -2981,7 +2981,11 @@ export async function dispatchReplyFromConfig(
|
2981 | 2981 | if (isDispatchOperationAborted()) { |
2982 | 2982 | return; |
2983 | 2983 | } |
2984 | | -if (isFastModeAutoProgress && progressCallbackForwarded) { |
| 2984 | +if ( |
| 2985 | +isFastModeAutoProgress && |
| 2986 | +progressCallbackForwarded && |
| 2987 | +onToolResultFromReplyOptions |
| 2988 | +) { |
2985 | 2989 | return; |
2986 | 2990 | } |
2987 | 2991 | if (sendPolicyDenied) { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。