Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins
TypeScript ai-agentcoding-agentdesktop-appelectronglobali18nlocal-firstmcppipi-agentpi-desktoppluginsreactrusttypescript
fix(test): stub the turn usage capsule in the session reference fixture
v_wyxgwangcf13efa36044
diff --git a/apps/desktop/test/session-reference-ui.test.mjs b/apps/desktop/test/session-reference-ui.test.mjsindex 1db27721a..9324b20a6 100644--- a/apps/desktop/test/session-reference-ui.test.mjs+++ b/apps/desktop/test/session-reference-ui.test.mjs@@ -76,6 +76,9 @@ const shared = load(new URL("../src/features/chat/transcript/shared.tsx", import"./TextShimmer": {TextShimmer: ({ text }) => React.createElement("span", null, text),},+ // The usage capsule has its own render contract; this fixture only proves+ // the session-chip graph still loads and renders.+ "./TurnUsageCapsule": { TurnUsageCapsule: () => null },"../../../hooks/use-preview-target": {useOpenChatFileRef: () => () => {},useOpenPreviewTarget: () => undefined,@@ -103,7 +106,16 @@ const shared = load(new URL("../src/features/chat/transcript/shared.tsx", import"../../../lib/assistant-turns": { messageThinking: () => "" },"../../../lib/use-referenced-image-data-url": { useReferencedImageDataUrl: () => undefined },"../../../lib/chat-links": { isHtmlFilePath: () => false },- "../../../lib/context-usage": { calculateTokenRate: () => 0 },+ "../../../lib/context-usage": {+ calculateTokenRate: () => 0,+ turnUsageBreakdown: () => ({+ inputTokens: 0,+ outputTokens: 0,+ cacheReadTokens: 0,+ cacheWriteTokens: 0,+ totalTokens: 0,+ }),+ },"../../../stores/app-store": { useAppStore },});