Repository navigation
🤖 fix: balance the SSH directory trust row and fit it to the environment chip - #8166
ammar-agent wants to merge 5 commits into
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
@codex review |
|
Codex Review: Didn't find any major issues. 👍 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
🛡️ Codex Security Review · Automatically triggeredSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
🟢 e2e stories (Haiku): 14 passed22 agent steps · 7 replayed from cache · 15 model calls · 47.1k tokens (23% cached) All 14 tests in 9 files
e2e 0.20.0 · 1m 14s · web · run artifacts 🟢 e2e Electron stories (Haiku): 3 passed3 agent steps · 3 model calls · 7.9k tokens (22% cached) All 3 tests in 3 files
e2e 0.20.0 · 20.6s · electron · run artifacts 🟢 e2e agent repros (Haiku): no tests selectedSpend: $0.00 of the $1.00 cap (proxy ledger) e2e 0.20.0 · 6.3s · 2 targets (web, phone) · run artifacts |
|
@codex review The environment chip now stretches to the trust row's width (shared max-w-2xl column) when the SSH+None trust row shows. |
|
Codex Review: Didn't find any major issues. 🚀 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
🛡️ Codex Security Review · Automatically triggeredSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
|
@codex review Changed direction per the reviewer: the trust row now takes the environment chip's width (w-fit column), and the chip hugs its text again. |
|
Codex Review: Didn't find any major issues. Already looking forward to the next diff. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
🛡️ Codex Security Review · Automatically triggeredSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
Summary
Rebalances the SSH+None directory trust row on the new-workspace page (from #8123):
Screenshots
Dark theme, real app with the mock AI, cropped to the environment group. Before is
mainat e4c1d0c.Untrusted, before (1900px) and after (any width: the row follows the chip, not the viewport):
Trusted and error, before (1200px) and after:
375px, before and after:
Long paths widen the chip, and the row follows it, with the button beside the copy (1200px). With a 2-line status the shield stays on the title line. When the copy fits on one line, the row is 32px, as tall as the chip.
Background
These measurements are from before this change, at 375, 744, 1200 and 1900px:
The reviewer chose having the row narrow to the chip over widening the chip to the row.
Implementation
The change is styling and markup only. Trust behaviour and wording are unchanged.
RuntimeTypeGroupisw-fit max-w-full(runtimeGroupClass, kept out ofCreationControlsContentfor the CRAP gate).@containerwrapper has inline-size containment, so it adds no intrinsic width, and the column is exactly the chip's width.DefaultSaveErroralso gets[contain:inline-size], so a save error wraps instead of widening the column past the chip.SshDirectoryTrustRowis a grid that follows its own width.@md(448px) it stacks.@mdup, the button sits beside the status. The status gets the button's 24px height (py-1), and the shield is pinned to its first line (self-start mt-1), so a status that wraps keeps the shield on the title.outlineandmin-w-[6.75rem]in every state; "Untrust" uses muted text.col-start-2 @md:col-end-4. Acol-spanwould overridecol-startand put the error under the icon.Validation
SshWithoutIsolation(phone-width frame) asserts the stacked layout and that the chip and the row share their edges.test-storybookonCreationControls.stories.tsxpasses (12/12).pointer: coarse.Risks
Low. This changes CSS and markup only on the environment group, and only while the SSH+None trust row shows. The trust request, its state and its wording are unchanged, and
tests/ui/runtimepasses.A known trade-off of the chosen width: with a short path the row is ~200px wide, so the detail wraps to 3–4 lines and an SSH error to about 6.
Generated with
xum• Model:anthropic:claude-opus-5-5• Thinking:high• Cost:$197.63