Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

Merge remote-tracking branch 'upstream/main' into integration/pi-live-rebased

Chris09ebaf39487a
diff --cc apps/desktop/src/main/maker-ipc/agent-input-coordinator.ts
index 2e86d9d539,b6ff094c63..18eeaad9fe
--- a/apps/desktop/src/main/maker-ipc/agent-input-coordinator.ts
+++ b/apps/desktop/src/main/maker-ipc/agent-input-coordinator.ts
@@@ -130,14 -130,16 +130,16 @@@ export interface AgentInputCoordinatorD
abortSession: (sessionId: string) => Promise<void>;
isTurnRunning: (sessionId: string) => boolean;
/**
- * steer 收到 maker-core 权威的 NO_ACTIVE_TURN 后回调 host 校准 busy 视图。
- * isTurnRunning 的事件驱动 tracker 可能 stale 为 true (turn 异常死亡没发
- * terminal event), 此时 fallback 转普通派发后 drain 会被假忙永久挡住,
- * 插话点击表现为"毫无反应"。host 实现应自行复核后再清 tracker。
+ * Reconcile the host's live session/tracker view after an abort or a
+ * maker-core NO_ACTIVE_TURN. The event-driven tracker can stay stale when a
+ * turn dies without a terminal event, leaving the queue behind a false busy
+ * boundary. Returns true only when it actually cleared that stale boundary;
+ * a normal status=closed cleanup returning false must not make Codex release
+ * its abort lock before the in-flight send outcome settles.
*/
- reconcileTurnIdle?: (sessionId: string) => void;
+ reconcileTurnIdle?: (sessionId: string) => boolean;
hasPendingInteraction: (sessionId: string) => boolean;
- getAgentKind: (sessionId: string) => 'claude-code' | 'codex' | null;
+ getAgentKind: (sessionId: string) => 'claude-code' | 'codex' | 'pi' | null;
getSdkSessionId: (sessionId: string) => Promise<string | undefined>;
/**
* interrupted-turn-resume:判断某条已派发 user 消息之后 agent 是否已产出内容
diff --cc apps/desktop/src/renderer/components/settings/ImDefaultSettingsSection.tsx
index f96d201213,617d88928d..f72b102942
--- a/apps/desktop/src/renderer/components/settings/ImDefaultSettingsSection.tsx
+++ b/apps/desktop/src/renderer/components/settings/ImDefaultSettingsSection.tsx
@@@ -12,9 -16,7 +16,8 @@@ import { useTranslation } from 'react-i
import { ClaudeMark } from '@/components/icons/ClaudeMark';
import { CodexMark } from '@/components/icons/CodexMark';
+import { PiMark } from '@/components/icons/PiMark';
import { ModelSelector } from '@/components/new-chat/ModelSelector';
- import { PermissionSelector } from '@/components/new-chat/PermissionSelector';
import { type ModelDescriptor, useAgentCapabilities } from '@/hooks/useAgentCapabilities';
import { useProviders } from '@/hooks/useProviders';
import { deriveModelsFromProviders } from '@/lib/providerModels';
@@@ -102,9 -100,10 +103,11 @@@ export function ImDefaultSettingsSectio
// 准入口径:IM 默认模型是「从零挑一个」的清单,停用的供应商/模型与能力模型
// 不该可选 —— 否则 headless runner 派发时才降级换模型,用户无感(PR #744 review)。
const fromProviders = {
- 'claude-code': deriveModelsFromProviders(providers, 'claude-code', { admissionFiltered: true }),
+ 'claude-code': deriveModelsFromProviders(providers, 'claude-code', {
+ admissionFiltered: true,
+ }),
codex: deriveModelsFromProviders(providers, 'codex', { admissionFiltered: true }),
+ pi: deriveModelsFromProviders(providers, 'pi', { admissionFiltered: true }),
};
return {
'claude-code': fromProviders['claude-code'].length