Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

Commits on main

perf(task-sources): make the schema-init fast path lock-free
Maciej Myszkiewicz committed 3 months ago
5b14aa6
fix(chat): report terminal tool and delegation states faithfully\n\nAddresses the review threads on #5885. Six defects, all in the direction of\nreporting a failure as a success — which matters more here than elsewhere,\nbecause this PR's whole subject is rendering a turn faithfully.\n\n- Sub-agent lifecycle was collapsed to a boolean in three places, producing\n opposite errors from the same cause: `AssistantUiSubagentCall`'s\n `running = false` default rendered a failed delegation with a success check,\n while `ToolTimelineBlock`'s `status !== 'completed'` gave the same row an\n endless spinner. `isActiveSubagentStatus` is now the single question all\n three call sites ask, and a failed or cancelled delegation renders with the\n `CircleXIcon` the tool card already uses for the same state.\n- A terminal tool status never reached the assistant-ui adapter: the part has\n no status field, so `OpenHumanToolCall` fell back to `result !== undefined`\n and labelled a failed tool "done". `toolPart` now carries the status for a\n failed or cancelled entry and the adapter unwraps it. The success path is\n byte-identical on purpose.\n- `recoverTimelineToolNames` advanced its cursor on every timeline entry even\n though `recoveredNames` only holds names for the generic rows, so a named row\n consumed the first recovered name and the last generic row kept `tool`.\n- Narration already contained in the merged final answer rendered twice, since\n `mergedAssistantText` prefers the longest text when it contains every segment\n and the guard tested equality rather than containment.\n- Root transcripts were ordered by file name. Modern `{unix_ts}_{agent}` stems\n sort the same either way, but a legacy `{agent}_{index}` root encodes no time\n and, digits sorting before letters, landed after every modern one regardless\n of age — reordering the view and able to attach a sub-agent trail to the\n wrong turn. Ordering is now by `meta.created`, with the path as tiebreak.\n- `ChatThreadView` read `content.length` behind a guard that only covered the\n message, though `TranscriptRow` already treats content as nullish.\n\nTest hygiene from the same review: two Playwright locators that could not fail\n(`Loading conversation…` never matches the rendered label, which has no\nellipsis; `getByRole('button')` throws on strict mode if the card grows a\nsecond button), a `querySelector('button')!` that failed with an opaque\nTypeError at the click, and a single-microtask flush that could let a scheduled\n`logout` slip past a not-called assertion.\n\nEvery new test was checked by reverting its fix and confirming it fails.\n
M3gA-Mind committed 3 months ago
c61d40b
Merge branch 'main' into agent-turn-transcript
M3gA-Mind committed 3 months ago
9903997
Merge branch 'main' into agent-turn-transcript\n
M3gA-Mind committed 3 months ago
514cc4e
feat(hosting): add hosting_deployment_logs
Ghost Scripter committed 3 months ago
3e42bdc
6ebf5d5