The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
feat(providers): add external store hook for core transcript projection
Steven Enamakelaa9c2465eae7
diff --git a/app/src/providers/__tests__/useCoreTranscriptProjection.test.tsx b/app/src/providers/__tests__/useCoreTranscriptProjection.test.tsxindex ce9f55a476..9e4dfd2c95 100644--- a/app/src/providers/__tests__/useCoreTranscriptProjection.test.tsx+++ b/app/src/providers/__tests__/useCoreTranscriptProjection.test.tsx@@ -19,7 +19,9 @@ function turn(requestId: string, callId: string): DerivedDisplayItem[] {}/** A sub-agent card attached to turn `a`, which the core updates in place. */-function subagent(status: 'running' | 'completed'): DerivedDisplayItem {+function subagent(+ status: 'running' | 'completed' | 'incomplete' | 'interrupted'+): DerivedDisplayItem {return { kind: 'subagent', id: 'sub-1', status, requestId: 'a', items: [] };}@@ -189,6 +191,28 @@ describe('useCoreTranscriptProjection incremental refresh', () => {],turns: ['a', 'b', 'c'],},+ {+ // A continuable sub-agent can be resumed later, which rewrites its card+ // in place without growing the history (#7777).+ name: 'a held older incomplete sub-agent walks the full history',+ older: [subagent('incomplete'), ...turn('a', 'a-call')],+ pages: [+ page({ items: turn('c', 'c-call'), total: 10, hasMore: true, nextCursor: 'c2' }),+ page({ items: turn('b', 'b-call'), total: 10, hasMore: true, nextCursor: 'c3' }),+ page({ items: [subagent('completed'), ...turn('a', 'a-call')], total: 10 }),+ ],+ turns: ['a', 'b', 'c'],+ },+ {+ name: 'a held older interrupted sub-agent walks the full history',+ older: [subagent('interrupted'), ...turn('a', 'a-call')],+ pages: [+ page({ items: turn('c', 'c-call'), total: 10, hasMore: true, nextCursor: 'c2' }),+ page({ items: turn('b', 'b-call'), total: 10, hasMore: true, nextCursor: 'c3' }),+ page({ items: [subagent('completed'), ...turn('a', 'a-call')], total: 10 }),+ ],+ turns: ['a', 'b', 'c'],+ },{name: 'a gap past the held items walks the full history',pages: [diff --git a/app/src/providers/useOpenHumanExternalStore.ts b/app/src/providers/useOpenHumanExternalStore.tsindex 51677b8f74..934f5f86cc 100644--- a/app/src/providers/useOpenHumanExternalStore.ts+++ b/app/src/providers/useOpenHumanExternalStore.ts@@ -54,9 +54,16 @@ const DERIVED_TRANSCRIPT_PAGE_LIMIT = 500;*/const DERIVED_TRANSCRIPT_MAX_PAGES = 20;-/** A projected item the core still rewrites in place: a running sub-agent or tool call. */+/**+ * A projected item the core can still rewrite in place: a running tool call, or+ * a sub-agent that is running or can be continued (`incomplete`/`interrupted`)+ * and so changes status and contents without moving the thread's total (#7777).+ */const isUnsettled = (item: DerivedDisplayItem) =>- (item.kind === 'subagent' || item.kind === 'toolCall') && item.status === 'running';+ item.kind === 'toolCall'+ ? item.status === 'running'+ : item.kind === 'subagent' &&+ (item.status === 'running' || item.status === 'incomplete' || item.status === 'interrupted');/*** Everything the assistant-ui surface needs about the *currently running* turn