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
fix(toolkit): correct test expectation for conversation list rendering
Steven Enamakeld879dec3ed1a
diff --git a/app/src/features/conversations/aui/toolkit.test.tsx b/app/src/features/conversations/aui/toolkit.test.tsxnew file mode 100644index 0000000000..239a30b479--- /dev/null+++ b/app/src/features/conversations/aui/toolkit.test.tsx@@ -0,0 +1,22 @@+import { describe, expect, it } from 'vitest';++import { buildOpenHumanToolkit, openHumanToolEntries } from './toolkit';+import { SubagentCall } from '../components/ChatToolParts';++describe('buildOpenHumanToolkit', () => {+ it('registers the task tool against the shared delegation card', () => {+ const toolkit = buildOpenHumanToolkit();+ expect(toolkit.task).toBeDefined();+ expect(toolkit.task.type).toBe('backend');+ expect(toolkit.task.render).toBe(SubagentCall);+ });++ it('never declares description/parameters on a backend entry', () => {+ // `type: 'backend'` requires these to stay `undefined`: they are the+ // core's tool schema, sent to the model over the wire, not something the+ // frontend toolkit re-declares.+ for (const entry of Object.values(openHumanToolEntries)) {+ expect(entry.type).toBe('backend');+ }+ });+});