Repository navigation
Conversation
|
@Stener1 is attempting to deploy a commit to the seanbrydonio's projects Team on Vercel. A member of the Team first needs to authorize it. |
Contributor
Author
|
CI: this fork's account can't add the |
sean-brydon
approved these changes
Oct 23, 2026
… not its host's frames
An agent that runs in chat has only berthd agent-host in its pane, so its
Agent Dashboard card showed the host's log ("out stream_event", "out
control_request") and quoted "stdio", the last word of the host's
command line. Its card now reads the agent instead:
- waiting: Session.ask, the reason and command (or the question), with
ask.choices as chips;
- otherwise: the last lines of its newest reply or step, from the
transcript read as a chat reads it (since=N: the recent window once,
then what was added), one read at a time, in place of the screen read
and as often;
- the quote: the conversation's opening prompt or command, read once
from the record's start;
- hidden when there is nothing yet. Terminal cards are unchanged.
The mock's ?structured runs four agents in chat with the host's command
line and pane log; verify-berthd gets the chat-board-cards scenario and
e2e the dashboard-chat-cards spec.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Stener1
force-pushed
the
chat-cards-show-what-the-agent-does
branch
from
October 23, 2026 23:10
2b7e848 to
0f16d67
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
An agent that runs in chat (structured:
claude,codex,acpunderberthd agent-host) has only the host in its pane. So its Agent Dashboard card showed the host's frames (out stream_event,out control_request) and quoted “stdio”, the last word of the host's command line ('--permission-prompt-tool' 'stdio'). Its card now reads the agent instead. Terminal cards are unchanged.How it reads, without adding polling:
transcript?since=N&gen=…, as a chat reads it. The recent window comes once, then only what was added; the box reads on from where it was. On real 4.7–33 MB host logs that was 60–77 ms for the first read and ~8 ms for each one after. It runs when the screen read would have run, in its place (useCardRead, now shared withuseScreenTail: one read at a time, events only prompt it). It doesn't run while the card shows an ask.transcript?before=262144&limit=50, paging back if that holds more). The first prompt comes after the agent's opening frame, tens of KB in.GET conversationsisn't used: itstitleis empty when the prompt was sent after the session started, which is how orchestrators start agents.describeAgentno longer quotes a chat session's command line.Mock:
?structurednow runs four agents in chat (waiting on a Bash permission with choices, an AskUserQuestion, working, done), with the host's command line and pane log as a real box has them. checkout-fix stays in its terminal.Follow-up, not in this PR: Review's last words and suggested commit message (
views/review/summary.ts,review-detail.tsx,review-actions.tsx) and Home's Working widget step (useLiveStep) still read the pane for agents in chat.Evidence
?mock=1&structured=1, the same build before and after; only the fixtures above are added to the "before" build.After: the command and why with its answers, the question, the reply's last lines, the opening prompt. The terminal card (Fix checkout webhook retries) is unchanged.
Cards one at a time: waiting on a command (before) · a question · working · terminal, unchanged (before)
Checks:
.claude/skills/verify-berthdchat-board-cards(new scenario +features/chat-board-cards.md): OK. It asserts each card's text and chips, and that the board has noout stream_event/out control_request/stdio, with no console errors.e2e/dashboard-chat-cards.spec.ts(new: waiting, working, terminal) withask-card,dashboard-turn-check,dashboard-off-board,dashboard-stop-archive,agents-in-chat,home-widgets,resume-picker,chat-long: passed.pnpm test: 589 passed, includingsrc/lib/chat-card.test.ts(ask → reply tail → hidden; quote; merging reads).typecheck:plugins,check:titles,check:type,check:grid,check:csp,check:themes,tsc -p e2eandpnpm buildpass, as dogo vet,go test -race ./...and the docs build.transcript?since=0plus the head page, run throughchatCard/openingPrompt, give quotes like/ship …and/intake …(were “stdio”). They give the reply's last lines orRun …steps (wereout …frames), and an AskUserQuestion's first lines.Not verified here: the Mac app window itself; the board on a real box through the app (the data path was checked on a real box's API as above).
Merge Danger
Door: two-way
App only. No daemon or API change; it uses endpoints boxes already serve (
transcript?since,transcript?before). Revert the commit to undo.Blast Radius: dashboard
Only chat agents' cards change, plus
useScreenTail's read loop (nowuseCardRead, shared), which terminal cards run on. Boxes without thetranscriptcapability show no box on chat cards (never host frames). Boxes withouthistoryshow no quote.🤖 Generated with Claude Code