Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
Merge remote-tracking branch 'upstream/main' into integration/pi-live-rebased
Chris5bdf3575eb71
diff --cc apps/desktop/src/renderer/lib/makerChatStore.tsindex 99a32ffce7,945e38380a..80a20cea06--- a/apps/desktop/src/renderer/lib/makerChatStore.ts+++ b/apps/desktop/src/renderer/lib/makerChatStore.ts@@@ -22,9 -22,12 +22,13 @@@*/import type { CindyRegion } from '@cindy/maker-shared/brand-identity';+import { dbToMakerAgentKind } from '../../shared/agentKindConversion';import { redactSensitiveText } from '@cindy/maker-shared/error-redaction';- import { applyCodexPlanSnapshotOnDone } from '@cindy/maker-shared/message-render';+ import {+ applyCodexPlanSnapshotOnDone,+ getLatestMessageTodoState,+ isAgentPlanToolName,+ } from '@cindy/maker-shared/message-render';import {normalizeWorkflowProgressEntries,type WorkflowProgressEntry,@@@ -10065,9 -10146,10 +10172,11 @@@ function mapServerMessages(serverMsgs:)? { turnCompleted: true }: {}),- // usage 是独立于价格的事实。Pi/新模型可能已有 token/cache 明细,- // 但参考价尚未上线;历史加载也必须恢复该明细,不能绑在 money 分支。- // 本轮 token 明细独立于金额挂载:算不出报价的轮次只有它,UI 据此退回显示 token。++ // 本轮 token 明细独立于金额挂载:Pi/新模型算不出报价的轮次只有它,++ // UI 据此退回显示 token,历史加载不能把它绑在 money 分支。...(m.role === 'assistant' && turnUsageDetails ? { turnUsageDetails } : {}),+ // 整轮累计费用同样独立挂载:无价收尾轮只有它,没有 turnCost。+ ...persistedUserTurnCostPatch,// assistant 上挂的 per-turn 费用(main turn 结束时 patch 进 agent_meta)...(m.role === 'assistant' &&agentMeta &&