fix: validate acp prompt timeout metadata · openclaw/openclaw@4cbce84
steipete
·
2026-05-29
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -56,7 +56,7 @@ import {
|
56 | 56 | formatToolTitle, |
57 | 57 | inferToolKind, |
58 | 58 | } from "./event-mapper.js"; |
59 | | -import { readBool, readNumber, readString } from "./meta.js"; |
| 59 | +import { readBool, readNonNegativeInteger, readNumber, readString } from "./meta.js"; |
60 | 60 | import { |
61 | 61 | buildAcpPermissionRequest, |
62 | 62 | parseGatewayExecApprovalEventData, |
@@ -1023,7 +1023,7 @@ export class AcpGatewayAgent implements Agent {
|
1023 | 1023 | idempotencyKey: runId, |
1024 | 1024 | thinking: readString(params["_meta"], ["thinking", "thinkingLevel"]), |
1025 | 1025 | deliver: readBool(params["_meta"], ["deliver"]), |
1026 | | -timeoutMs: readNumber(params["_meta"], ["timeoutMs"]), |
| 1026 | +timeoutMs: readNonNegativeInteger(params["_meta"], ["timeoutMs"]), |
1027 | 1027 | }; |
1028 | 1028 | |
1029 | 1029 | return new Promise<PromptResponse>((resolve, reject) => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。