Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
fix(desktop): validate GET media poll guides
liugaowei7f9c396de0f3
diff --git a/apps/desktop/src/shared/mediaInvocation.ts b/apps/desktop/src/shared/mediaInvocation.tsindex 9b5657b7f1..485d8c79f5 100644--- a/apps/desktop/src/shared/mediaInvocation.ts+++ b/apps/desktop/src/shared/mediaInvocation.ts@@ -396,8 +396,14 @@ function pollError(value: unknown, path: string): string | null {if (error) return error;error = headersError(value.headers, `${path}.headers`);if (error) return error;- if (- value.method === 'POST' &&+ if (value.method === 'GET') {+ if (!(value.path as string).includes('{taskId}')) {+ return `${path} GET polling path must include {taskId}`;+ }+ if (value.bodyTaskIdPath !== undefined) {+ return `${path}.bodyTaskIdPath is only valid for POST polling`;+ }+ } else if (value.bodyTaskIdPath === undefined &&!(value.path as string).includes('{taskId}')) {