Add agent creation to the workbench composer picker - #693
Conversation
|
The heartbeat failure comes from concurrent access to the agent’s An inbound message updates connector thread state and writes that file. Meanwhile, reactor startup loads it to restore pending operations, token usage, and connector state. The write can briefly leave the file empty between truncation and completion. A startup read during that gap fails to parse JSON. CI captured The durable-conversation adapter already queues connector updates, restores, and mirrors. Reactor storage access bypassed that queue. The fix routes reactor For review:
Validation: the forced-overlap regression passed 10 consecutive runs, the real heartbeat E2E passed locally, and full |
Screen.Recording.2026-09-08.at.9.13.50.PM.mov |
|
@pratikbuilds question/thought - should we have further differentiation on workflows and agents? i.e Daily Digest or Morning Brief are more automated workflows than individual agents unless you are putting a singular agent in charge of just that |
|
Recommendation: approve with nits. Updated after a factual second pass. The metadata serialization fix is supported by the inspected paths: external Follow-ups
Corrections to the original review
This assessment supports the queue fix in the inspected paths; it is not a claim that every possible storage API or UI interaction was exercised. |
The new-workbench composer's agent picker offers Create agent, including when no agents exist. It opens the existing creation modal, preserves the composer draft, and selects the created agent. Empty descriptions use the agent name so the selection stays readable.
The durable-conversation adapter also serializes reactor startup reads and metadata writes with connector updates. Without this, startup can read
metadata.jsonafter a connector write truncates it but before that write completes, producing a JSON parse error and leaving the heartbeat run unfinished. The adapter retains the published storage implementation and the existing heartbeat timeout.Validation:
bun run checkpasses withWORKBENCH_CHECK_CONCURRENCY=2, including database suites and structural checks.