feat(webui): sp16 the agent drawer says what it can about an agent and why it can not act (#1873) #1981

Merged
jason.woltje merged 4 commits from sp16-drawer-actions into refactor 2026-11-16 18:36:26 +00:00
Owner

What changes

The agent drawer says more about an agent, and says why when it cannot.

  • Last activity reads "not recorded". No read the Console makes carries the time of an agent's last message or run. The agents read's at is when the agent took its role and since is when its state began, so neither is shown as activity.
  • Hired from names the pack for a pack hire. A hire made outside a pack says the template is not recorded.
  • Message opens the agent's thread, or New thread for a conversation definition, where an existing route opens one.
  • No Restart. No route restarts one agent, and this slice adds no writes.
  • The drawer shows an agent's state as soon as the instances read answers, with no wait for the next poll.
  • The organization page's Workflows card moves to the left column.

How

  • packages/webui/src/public/workspace.js only. The packs read for a pack hire is raced against the page's reads, so it never holds the page. A refusal or no answer is read again on the next render. A kept answer is reused for 60 s.
  • No new route, no write, no server change.

Tests

  • agent-drawer-browser.test.mjs (21 tests), org-page-fit-browser.test.mjs, unified-workspace-browser.test.mjs. Each review fix has a test that failed first.
  • Lane gate on ff096afa2: 192 webui files, each alone, 1559 pass, 1 fail, 4 skipped (org-quick-live). The fail is org-live-edit-browser "E2E6 P2-2", a race that predates this change. Run alone it passed 4/4 three times.
  • Lead check on ff096afa2: 17 files, 186 pass, 0 fail.

Review

Four rounds by fresh claude-opus-5-5 reviewers. Rounds 1 to 3 asked for changes, none blocking, all fixed. Round 4 approved with 2 nits.

Left for later

  • Restart in the drawer, in a lane that adds writes. It can reuse the terminate, wait, launch chain in agents.js.
  • A read that carries an agent's last activity.
  • For a hire the installed pack does not name, its line shows "being read" again at each 60 s expiry.
  • At 390 wide the organization page has a long blank area in the drawer, and at 1440 the columns are not level. Both predate this change.
  • The org-live-edit-browser P2-2 race.
## What changes The agent drawer says more about an agent, and says why when it cannot. - Last activity reads "not recorded". No read the Console makes carries the time of an agent's last message or run. The agents read's `at` is when the agent took its role and `since` is when its state began, so neither is shown as activity. - Hired from names the pack for a pack hire. A hire made outside a pack says the template is not recorded. - Message opens the agent's thread, or New thread for a conversation definition, where an existing route opens one. - No Restart. No route restarts one agent, and this slice adds no writes. - The drawer shows an agent's state as soon as the instances read answers, with no wait for the next poll. - The organization page's Workflows card moves to the left column. ## How - `packages/webui/src/public/workspace.js` only. The packs read for a pack hire is raced against the page's reads, so it never holds the page. A refusal or no answer is read again on the next render. A kept answer is reused for 60 s. - No new route, no write, no server change. ## Tests - `agent-drawer-browser.test.mjs` (21 tests), `org-page-fit-browser.test.mjs`, `unified-workspace-browser.test.mjs`. Each review fix has a test that failed first. - Lane gate on ff096afa2: 192 webui files, each alone, 1559 pass, 1 fail, 4 skipped (`org-quick-live`). The fail is `org-live-edit-browser` "E2E6 P2-2", a race that predates this change. Run alone it passed 4/4 three times. - Lead check on ff096afa2: 17 files, 186 pass, 0 fail. ## Review Four rounds by fresh claude-opus-5-5 reviewers. Rounds 1 to 3 asked for changes, none blocking, all fixed. Round 4 approved with 2 nits. ## Left for later - Restart in the drawer, in a lane that adds writes. It can reuse the terminate, wait, launch chain in agents.js. - A read that carries an agent's last activity. - For a hire the installed pack does not name, its line shows "being read" again at each 60 s expiry. - At 390 wide the organization page has a long blank area in the drawer, and at 1440 the columns are not level. Both predate this change. - The `org-live-edit-browser` P2-2 race.
jason.woltje added 4 commits 2026-11-16 18:36:22 +00:00
jason.woltje merged commit ff096afa27 into refactor 2026-11-16 18:36:26 +00:00
Sign in to join this conversation.