Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
test(mobile): 超时接线锁定测试跟进 main 的 resolveMobileInvokeTimeoutMs 方案
Kafeifeif004428efa43
diff --git a/apps/mobile/src/__tests__/newSession.test.ts b/apps/mobile/src/__tests__/newSession.test.tsindex 198ff39e94..75e9b72f44 100644--- a/apps/mobile/src/__tests__/newSession.test.ts+++ b/apps/mobile/src/__tests__/newSession.test.ts@@ -1026,10 +1026,19 @@ describe('new session worktree wiring (source locks)', () => {});it('applies the protocol timeout override map to mobile invokes (worktree:create needs 60s)', () => {+ // 2026-07-29 与 main 合并后,移动端逐通道超时统一走 invokeTimeouts 的+ // resolveMobileInvokeTimeoutMs(mobile 专属表 → 协议契约表 INVOKE_TIMEOUT_OVERRIDES_MS+ // 兜底),worktree:create 的 60s 预算经协议表兜底生效——两层缺一都会让+ // 被控端建完 worktree 而控制端已超时放弃。const contextSource = readTextLf(resolve(process.cwd(), 'src/device-link/DeviceLinkContext.tsx'),'utf8',);- expect(contextSource).toContain('INVOKE_TIMEOUT_OVERRIDES_MS[channel]');+ expect(contextSource).toContain('resolveMobileInvokeTimeoutMs(channel)');+ const timeoutsSource = readTextLf(+ resolve(process.cwd(), 'src/device-link/invokeTimeouts.ts'),+ 'utf8',+ );+ expect(timeoutsSource).toContain('INVOKE_TIMEOUT_OVERRIDES_MS[channel]');});});