Repository navigation
fix(studio): keep the running chat's Stop inside the phone header - #2233
Merged
Merged
Conversation
peppescg
force-pushed
the
fix/studio-chat-stop-mobile-2231
branch
from
October 10, 2026 09:24
8fa29da to
b7ca46b
Compare
peppescg
changed the base branch from
main
to
fix/studio-approval-destructive-2224
October 10, 2026 09:24
This was referenced Oct 10, 2026
peppescg
force-pushed
the
fix/studio-chat-stop-mobile-2231
branch
from
October 11, 2026 14:57
b7ca46b to
011db9f
Compare
peppescg
force-pushed
the
fix/studio-chat-stop-mobile-2231
branch
from
October 11, 2026 15:48
011db9f to
2dbc86c
Compare
peppescg
force-pushed
the
fix/studio-chat-stop-mobile-2231
branch
from
October 13, 2026 13:29
2dbc86c to
4b29623
Compare
peppescg
force-pushed
the
fix/studio-chat-stop-mobile-2231
branch
from
October 14, 2026 08:45
4b29623 to
5673363
Compare
kantord
force-pushed
the
fix/studio-chat-stop-mobile-2231
branch
from
October 14, 2026 08:59
5673363 to
f556578
Compare
kantord
force-pushed
the
fix/studio-chat-stop-mobile-2231
branch
from
October 14, 2026 08:59
f556578 to
6b21342
Compare
kantord
force-pushed
the
fix/studio-chat-stop-mobile-2231
branch
from
October 14, 2026 09:00
6b21342 to
6ca181e
Compare
Below 500px the running chat header no longer overflows and clips Stop. Following the prototype's mobile chat header, the row tightens its gap and padding, the run status pill collapses to a spinner (its text stays for screen readers), the "Esc to Stop" keyboard hint is hidden, Canvas moves into the chat options menu as "Open local canvas", and Stop becomes a 44x44 icon control that keeps its "Stop" accessible name. Desktop is unchanged. A browser journey pins Stop inside the viewport and at least 44x44 at 320, 360, 390 and 430px with the status pill present, keeps Canvas reachable from the menu with focus returning to its trigger, and pins the unchanged desktop header. Closes #2231 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
On a phone, an open chat moves Canvas from the header into Chat options as "Open local canvas". Refs #2231 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Below 500px the run status pill keeps its text for screen readers only
and a spinner stands in for it. "Waiting for authorization" got the same
spinner as a working run, so a phone user lost the cue that the run is
parked until they act.
While authorization is pending, the phone header now shows a still,
amber key in place of the spinner; the pill's text stays available to
screen readers and desktop is unchanged. Both icons carry
data-slot="run-status-cue" with data-cue naming the state.
A browser journey parks a run on authorization and checks, at 320, 390,
and 430px, that no spinner shows, that the key is visible inside the
viewport without horizontal scroll, and that desktop keeps the labelled
pill. It fails on the previous header ("no spinner at 320px").
The Studio operating page describes the cue.
Refs #2231
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
kantord
force-pushed
the
fix/studio-chat-stop-mobile-2231
branch
from
October 14, 2026 09:41
6ca181e to
05a4331
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. |
Merged
2 tasks
This branch was successfully 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
On a phone, the running chat's header row overflowed and clipped Stop at the right edge. At 320px, Stop ended 150px past the viewport, and the chat title had collapsed to nothing. This change follows the prototype's mobile chat header (
stack-08,features/chat/chat-view.tsx) below 500px, so Stop is always fully visible and at least 44×44 from 320px up. Desktop is unchanged.Stop's behaviour and accessible name ("Stop") stay the same, and so do the integration tests that click it.
What changed
All changes are in the chat header in
apps/web/src/features/chat/chat-workspace.tsx. They apply below 500px only (max-[499px]/min-[500px], plus the existinguseIsMobilehook, which uses the same pivot):size-11, which renders at 49.5px at the 18px mobile root size). Its "Stop" label stays as screen-reader-only text, so its accessible name doesn't change. The click handler, disabled state and Escape behaviour are untouched.The chat title now gets room on a phone too: "A running cha…" at 390px, where it used to collapse to zero width.
user-docs/operating/studio.mdsays where Canvas is on a phone.Visible change
Differences from the prototype
size-8(36px at the 18px phone root). Studio keeps its 44px touch-target minimum.text-brandspinner, which is low-contrast on the dark theme. It's decorative (aria-hidden), and the status text stays available to screen readers.max-[499px]towidth < 499pxandmin-[500px]towidth >= 500px. At exactly 499px neither applies, so the desktop pill, a labelled Stop and a spinner all show. Stop still fits there (it ends at 442px), and this matches the existing convention elsewhere in Studio.No regression
New browser journey
apps/web/e2e/chat-header-stop.spec.tsruns in desktop and mobile Chromium. It uses offline BFF fixtures and a loopback activity stream that leaves the run live, which gives a "Reconnected to run" status pill.On the base (
e9c216aa1), journeys 1 and 2 fail ("Stop ends inside the viewport at 320px: received 470", and the header Canvas button is present). Journey 3 passes. On the head, all three pass in both projects.Existing tests
No test was modified or deleted. The integration tests that find or click Stop pass unchanged:
chat-workspace.integration.test.tsx,session-inspection.test.tsxanddelegation-workspace.test.tsx, 83 tests in all. So doese2e/side-panel-shell.spec.ts, which opens Canvas from a new chat's header at 320px.e2e/session-inspection.spec.tsasserts that inspect-only sessions have no Stop, and it also passes.Gates
e9c216aa13b36fb577task studio:check, webtask studio:check, servertask studio:browserLint, typecheck and the generated-artifact check pass on both.
task docspasses on the head. The base counts come from the same commit's gate run for #2224.Screenshots
Captured with a throwaway Playwright journey (Chromium, not committed). It uses offline BFF fixtures, a live run that shows "Reconnected to run", a fixed clock (2026-09-25 12:30 UTC),
Europe/Romeand en-US. The header was shot at 320, 360, 390 and 430px (mobile emulation) and at 1280×800, in light and dark. The full page and the open Chat options menu were shot at 390×844 and 1280×800. Before ismain(e9c216aa1), and after is this PR's code commit (3b36fb577). Each tree was captured twice. The runs matched pixel for pixel, apart from 220 anti-aliasing pixels (maximum channel delta 2) in the composer area of one dark mobile page. Every pair was pixel-compared, and red boxes mark the regions that differ. Phone header strips are upscaled, and desktop composites are downscaled to 1600px wide.Running chat header, desktop 1280px
Unchanged: pixel-identical before and after.
Dark
Running chat header on phones
Intended change. Before, Stop is clipped, or entirely off-screen at 320px and 360px, and the title is gone. After, the spinner and a 44px Stop fit at every width, and the title truncates instead.
320px
Dark
360px
Dark
390px
Dark
430px
Dark
Full page
Mobile 390px: only the header differs. The small boxes in the dark composer area are anti-aliasing noise that also differs between two captures of the same tree. Desktop: pixel-identical.
Dark and desktop
Mobile, dark:
Desktop, light:
Desktop, dark:
Chat options menu
Mobile: the menu gains "Open local canvas" after "Clear conversation", and it anchors further right because the ··· trigger moved. Desktop: pixel-identical.
Dark and desktop
Mobile, dark:
Desktop, light:
Desktop, dark:
Part of #2210.
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.
56733636d)data-slot="run-status-cue", withdata-cuenaming the state.task studio:checktask studio:browsertask docs:checkScreenshots: Before is
b7ca46bbeand After is19c4a039b. Each tree was captured twice. The only change is the phone header icon during authorization, about 218 changed pixels. The working-run header and every desktop header are pixel-identical before and after. The working-run phone page differs by about 150 pixels between repeat captures of the same tree, which is spinner-frame noise.Phone header while waiting for authorization (spinner before, amber key after):
Dark, full page with prototype, and unchanged headers
Re-verification (2026-10-11)
Re-verified at this head: no change needed. The authorization cue survives #2254's fleet chip and #2256's header container query at 320–430px.
Gates on the restacked head
56733636d:studio:checkpasses (web 1,042, 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.
Closes #2231
🤖 Generated with Claude Code