Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
70e52ed
Studio: an unreachable plotkeeper says so plainly, and Pre-flight say…
danielrispler Dec 1, 2026
970d091
Studio: a History row opens by mouse, and a hint closes when its trig…
danielrispler Dec 1, 2026
a4738ff
Studio: a badge list whose badge goes away gives the focus to its par…
danielrispler Dec 1, 2026
c320080
Studio: after a project switch, a closing badge list leaves the focus…
danielrispler Dec 1, 2026
cd3195c
Merge issue-1044-history-press-hints into issue-1036-qa-root-causes (…
danielrispler Dec 1, 2026
f56628a
Merge branch 'issue-1036-qa-root-causes' into issue-1045-badge-focus
danielrispler Dec 1, 2026
efb5a5e
Studio: the server caps a session name at 200 characters
danielrispler Dec 1, 2026
16294cc
Merge remote-tracking branch 'origin/issue-1036-qa-root-causes' into …
danielrispler Dec 1, 2026
8a8dc5d
Merge branch 'issue-1046-unreachable-preflight' into issue-1036-qa-ro…
danielrispler Dec 1, 2026
5936324
Merge branch 'issue-1045-badge-focus' into issue-1036-qa-root-causes
danielrispler Dec 1, 2026
d51057a
Studio: Esc skips a list that isn't drawn over the map, and the top b…
danielrispler Dec 1, 2026
7b151c6
Merge origin/issue-1036-qa-root-causes into issue-1047-esc-topbar
danielrispler Dec 1, 2026
4c61662
Studio: the top bar's text is cut text with the full-text rule, and t…
danielrispler Dec 1, 2026
55fc863
Merge branch 'issue-1048-cheap' into issue-1036-qa-root-causes
danielrispler Dec 1, 2026
d83f5af
Merge branch 'issue-1047-esc-topbar' into issue-1036-qa-root-causes
danielrispler Dec 1, 2026
315f6bf
Studio: a permission shows its command whole, and the rename and Dele…
danielrispler Dec 1, 2026
85beadd
Merge issue-1049-bounded-text into issue-1036-qa-root-causes
danielrispler Dec 1, 2026
fb7d65e
Docs: the Map view describes #1036's fixes
danielrispler Dec 1, 2026
dd920ff
Merge remote-tracking branch 'origin/issue-1036-qa-root-causes' into …
danielrispler Dec 1, 2026
02689d0
Merge branch 'issue-1050-cheap' into issue-1036-qa-root-causes
danielrispler Dec 1, 2026
3ae5bad
Studio: the final review's fixes to the four root causes (#1036)
danielrispler Dec 1, 2026
575470e
Studio: the hint table's follow-up step is `after`, as Biome refuses …
danielrispler Dec 1, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/studio/behaviour/cards.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ A turn a wake-up opened that changed nothing itself writes only its summary and
In a Claude Code session, a plan (`ExitPlanMode`), a question (`AskUserQuestion`) or another tool's permission docks at the top of the session's story with its answers while plotkeeper's answer hook waits for them (#892). The hook waits at Claude Code's `PermissionRequest`, which leaves the terminal's own dialog open the whole time, so the first answer, the page's or the terminal's, decides.

- **A plan or a question waits in the background**, whenever plotkeeper runs, whether or not the page shows its session: open the session later and its card still has its buttons. The hook waits while the server whose pid `plotkeeper.running.json` names lives, for up to 29 minutes 50 seconds, just under the entry's 1800 s timeout. When it gives up (that deadline, or plotkeeper stopped) it records a `StudioWaitEnded` line, and the session's block is marked "stopped waiting" (`stopped_waiting` on the session).
- **Any other tool's permission** keeps the older rule: it waits only while the page shows its session in a visible window, for up to 120 seconds, so the page never approves a command out of context.
- **Any other tool's permission** keeps the older rule: it waits only while the page shows its session in a visible window, for up to 120 seconds, so the page never approves a command out of context. Its command is shown whole (#1049): a block that keeps the command's line breaks and wraps long lines inside the card, never past its edge, so what Allow approves is all in view. Past about twelve lines the block scrolls on its own, with Allow and Deny always under it, and the agent's description follows on its own line. The decision history draws the same command the same way, with no height cap.
- **One ask per call.** Each wait leaves its own ask, `asks/<session>/<nonce>.json`, and the server sends every ask of the shown session, so a plan, a subagent's question and a permission at once do not end each other's waits. The hook removes only its own ask when it ends; it also ends, with no answer, when its ask is removed.
- **Matching.** A `PermissionRequest` names no call id, so a question's card takes the ask of its tool, its questions and its agent, and the core records a card's answer against the open call the same way: a plan by its text and agent, a question by its questions, so a field one event carries and another lacks (`planFilePath`) does not break the match. A question answered on the page is recorded as the card's, under its call's id.
- **Where an ask stands.** The core answers, for an ask's tool, input and agent, whether its call is unseen (its `PreToolUse` has not landed yet), open, stopped waiting, or closed on the card or in the terminal (`Session::ask_state`), keeping a session's recently closed blocks for that.
Expand Down
9 changes: 5 additions & 4 deletions docs/studio/behaviour/map.md

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/studio/behaviour/plotkeeper.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
Each start has its own id, its start time in Unix ms, which `about` returns beside the version; the page keeps the id it read at load (#909). The token stays per start and is not saved (spec #319), so a restart reaches a tab left open in one of two ways: its stream's reconnect is refused, since its cookie holds the old token, or, since the cookie is host-only and the new start's cookie covers every port, the stream opens again against the new server. Both look the same on the page:

- While the stream retries (plotkeeper stopped, the machine asleep, the network down), the top bar says "Lost connection to plotkeeper — retrying". The line clears when the stream opens again, its first open, the load's, included: a stream that fails before it ever opened says it is retrying too, and its first open clears the line with no read again.
- A command that finds plotkeeper unreachable (the browser's request failed, with no reply) fails with "plotkeeper is not reachable", never the browser's own words; a refusal keeps the server's reason (#1046). While the top bar's line shows, retrying or restarted, that error is not repeated in the notice line, and one the notice line drew before the line showed goes when the stream's state changes, so it is never left after the reconnect. The top bar's text gives way to its buttons in a narrow window (#1047), and the connection line gives way last: the project name, the install hint's sentence and the port line shrink to nothing first, and in a window 480 px wide or less the bar's gaps tighten, so at 390 px the retrying line still reads "Lost connection…". After a restart at 390 px with the install hint showing, Reload takes most of that room and the notice is cut further.
- Each open after the first asks `about` before anything else. The same start: the page reads again what it reads at load, the settings, the saved projects, the sessions, the selection, the writer's notice, whether a harness is wired and the cards, with no notice. It does not open the selected session's panel or map again, or show What's new or the store notice again (#912), so the view stays where Daniel left it and a notice he dismissed stays dismissed. When the load's `about` failed, the page holds no start, so the first reopen whose `about` answers takes that start as the same one and reads again. A reopen whose `about` fails is not live yet: the top bar says "Lost connection to plotkeeper — retrying" again, until the next open.
- Another start, or a stream the browser closed for good, as it does when a refusal answers: the page closes its stream, so no event of the new build reaches the old page's code, and reads none of its data again; only a focus or a press still asks the server, as before. The top bar says "plotkeeper restarted — this tab is out of date", with **Reload**, which loads the page again. The notice stays until then. Nothing is redrawn: the page keeps what it showed, and its actions stay, so a press reaches the new server as before.
- The limit: events the new server sends between the reopen and `about`'s answer are applied, as at any open.
Expand Down
Loading
Loading