Skip to content

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

Commits on main

fix(chat): restore the composer-adjacent cards on the assistant-ui surface\n\n`mainPanel` is an either/or — `legacyMainPanel` for the mic-cloud voice embed,\n`assistantUiMainPanel` for everything else — so every card written inline\ninside the legacy panel stopped rendering on `/chat` when the text chat moved\nto the assistant-ui `Thread`. Six of them were collateral to that switch, and\nnone had a second mount anywhere:\n\n- the send-error banner (`displayedSendError`, with its voice "Setup" CTA).\n The worst of the six: a rejected send writes nothing to the transcript\n either, so a user who could not send got no feedback at all — the message\n simply vanished.\n- `sendAdvisory`.\n- `FlowApprovalRequestCard` — the only Approve / Approve-always / Deny\n affordance for a paused tinyflows run. Another silent block.\n- the in-flight / failed `ArtifactCard` deck, Retry included.\n- `ChatFilesChip`.\n- the background-processes button and its running-count / memory-sync badge,\n and with it the three `TranscriptOverlays` modals it fronts\n (`BackgroundProcessesPanel`, `SubagentDrawer`, `AgentProcessSourcePanel`),\n whose only host was `ChatThreadView` — the legacy panel's transcript.\n\nEach is now defined once, above both panels, and rendered by both: the legacy\nvoice footer keeps exactly what it had, and the assistant-ui surface gets the\nsame nodes through `ComposerHeader` and a new `composerFooterExtras` slot on\n`AssistantUiChat` (the toolbar row beside the model pill). One definition is\nthe point — a second copy is how these drifted apart in the first place.\n\nTwo seams needed more than a move:\n\n- The overlays are driven by disclosure state that lived inside\n `ChatThreadView`. `Conversations` now owns its own trio for the assistant-ui\n surface and mounts `TranscriptOverlays` beside the `Thread`; the shared\n button takes its opener, so legacy still reaches the imperative handle.\n- `AgentProcessSourcePanel`'s only trigger is the "View full agent process\n source" link at the foot of `ToolTimelineBlock`, which assistant-ui has no\n equivalent of. It is registered as a command-palette action instead.\n\n`composerFooterExtras` is read through a ref for the same reason\n`ComposerHeader` is: the slot is rendered by type, so closing over the node\nwould remount the row on every host render.\n\nTests: five cases on the default (assistant-ui) render — a rejected send, a\nfailed thread create, a parked flow gate, an in-flight artifact, and opening\nthe background-processes panel. All five fail with the change reverted, each\nnaming its own element.\n
M3gA-Mind committed 3 months ago
a91ce7d
fix(chat): surface inference phase, round and active tool on assistant-ui\n\n`/chat` renders `AssistantUiChat`, and `legacyMainPanel` — with it\n`ChatThreadView` and `InferenceStatusLine` — is unreachable there. So\n`chatRuntime.inferenceStatusByThread`, maintained on every\n`inference_start` / `iteration_start` / `tool_call`, was dispatched and\nrendered nowhere. assistant-ui knows only `thread.isRunning`, so a turn\nthat spent minutes reasoning was a bare spinner: no phase, no round\ncounter, no tool name, nothing to tell a slow turn from a stuck one.\n\nTwo halves, per the surface's constraints:\n\n- Adapter: `useOpenHumanExternalStore` selects the status slice and\n publishes it on the runtime's `extras` channel, together with the\n running timeline rows the `tool_use` / `subagent` phases are titled\n from. `extras` rather than a renderer-side Redux read so the status is\n always that of the thread *this* runtime represents — the Workflow\n Copilot mounts a second runtime on a thread that is deliberately not\n `selectedThreadId`.\n- Render: `Thread` gains a `RunningStatus` slot under the last message,\n gated on `thread.isRunning`; `AssistantUiChat` fills it with\n `AssistantUiInferenceStatus`, which projects `extras` through the\n existing `InferenceStatusLine` so the two surfaces cannot drift.\n\nThe line is kept for `thinking` — the phase with no row of its own, and\nthe one a long turn sits in — and suppressed once the phase's row is on\nscreen as a tool part, which would otherwise caption the same work\ntwice. `status.activeTool` / `activeSubagent` remains the fallback name\nwhenever that row is absent.\n\n`onInferenceHeartbeat` is untouched: it feeds the 120s silence timer in\n`Conversations`, which already runs outside `legacyMainPanel`.\n
M3gA-Mind committed 3 months ago
c852e58
eb3cddc
fix(chat): render the plan-review and workflow-proposal gates on /chat\n\nBoth cards lived inline in `legacyMainPanel`, which `/chat` never mounts:\n`mainPanel` picks `assistantUiMainPanel` unless the composer is `mic-cloud`,\nand the two panels are an either/or, never a supplement. So a `request_plan_review`\ngate parked the live turn with nothing on screen to decide it, and a\n`propose_workflow` draft lost its only route to `flows_create` ("Save & enable").\nBoth block the user the same way a tool approval does.\n\nHoist the two blocks into a shared `agentGateCards` fragment and render it from\nthe assistant-ui composer header as well as the legacy panel. The panels are\nmutually exclusive, so nothing renders twice, and voice mode keeps both cards.\nNo runtime/adapter change is needed: `pendingPlanReviewByThread` and\n`pendingWorkflowProposalsByThread` are already selected at the top of\n`Conversations`, so the cards see the same state on either surface.\n\nAlso give `ComposerHeader` a stable component identity in `AssistantUiChat`.\n`thread.tsx` renders that slot by type, so a callback closing over the header\nnode changed type on every host render and remounted the whole subtree. That\nwas invisible for an error string and the queued-followup strip, but it would\nwipe half-typed plan feedback and an in-flight "Save & enable" on any unrelated\nre-render. The node is now read through a ref; nothing in `thread.tsx` is\nmemoized, so the subtree still re-renders with its host.\n\nTests: three cases in Conversations.render.test.tsx drive the real assistant-ui\nsurface. Revert-checked — dropping the header render fails all three on the\nmissing card, and restoring the closure-based header fails the third with an\nemptied feedback textarea.\n
M3gA-Mind committed 3 months ago
b161c20
fix(memory-sources): read a draining embed backlog as pending, not failed\n\nRight after a large sync the Sources row flipped to the amber "Ingested\nonly / Stored without vectors. Semantic search unavailable." while the\nchunks were merely queued for the embed backfill, then cleared itself a\nfew minutes later. Since tinymemory 1.14 vectors come from the deduped\nreembed_backfill job rather than inline at ingest, so every sizeable sync\nleaves a transient backlog that the row read as a failure.\n\nFrontend:\n- sourcePipelineStatus gains a soft `vectors_pending` state. Pending\n chunks are "waiting" while the engine reports a re-embed chain with\n rows to process (memory_tree_memory_backfill_status.in_progress) or the\n source's newest chunk is inside the core's five-minute `recent` window.\n The amber warning stays for the global semantic_recall latch, an\n embeddings-family blocking cause (budget/auth/unconfigured/dim\n mismatch/local model), or a backlog with nothing queued and no chunk\n for over five minutes.\n- MemorySourcesRegistry polls the backfill status as a fourth best-effort\n call and hands it to rows; a failed RPC falls back to freshness.\n- MemorySourceRow renders a neutral "{count} chunks waiting for vectors"\n note and keeps the freshness pill in the soft state. The verdict is\n no longer suppressed by a terminal result chip (`settled = !progress`),\n which un-skips the spec that documented that hole.\n- New i18n key sync.pipeline.vectorsPending in all 14 locales.\n\nRust:\n- SYNC_PASS_MAX_ITEMS 500 -> 200. One pass is one AcceptSourceItems call\n that embeds each document in turn (~1.7 s each); 500 items ran ~14 min\n into the host's 15-minute deadline and logged a false\n "initial sync failed ... timed out" after every document had landed.\n The Sources-row button loops up to 50 passes (per-click ceiling now\n 10k). The four single-pass entry points (periodic tick, manual provider\n sync, connection_created initial sync, Slack ingest RPC) move at most\n 200 items per invocation instead of 500; connection_created is the path\n that logged the false failure.\n\nTests: derivation cases for every hard/soft branch, row render cases for\nthe note beside a result chip and the amber fallback, registry wiring +\nRPC-failure fallback, Playwright spec gated on the core's own hard-vs-soft\nverdict.\n\nCloses #6025\n
Shanu committed 3 months ago
385b4f7
style: cargo fmt
shanu committed 3 months ago
9fb407e
style: cargo fmt\n
shanu committed 3 months ago
28ea92b