Skip to content

🤖 fix: balance the SSH directory trust row and fit it to the environment chip - #8166

Open
ammar-agent wants to merge 5 commits into
mainfrom
ssh-trust-row-layout
Open

ammar-agent wants to merge 5 commits into
mainfrom
ssh-trust-row-layout

Conversation

@ammar-agent

@ammar-agent ammar-agent commented Nov 13, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Rebalances the SSH+None directory trust row on the new-workspace page (from #8123):

  • Width: the row now takes the environment chip's width, so the chip and the row read as one control at every viewport width. The chip keeps hugging its text.
  • Narrow rows: when the row is narrower than 448px (the usual case, since the chip is short), the title, the detail and the button stack in the text column.
  • Wider rows: when a long path widens the chip, the button sits beside the copy.
  • Button: one width and one outline in every state.
  • Errors: they sit in the text column.

Screenshots

Dark theme, real app with the mock AI, cropped to the environment group. Before is main at e4c1d0c.

Untrusted, before (1900px) and after (any width: the row follows the chip, not the viewport):

Trusted and error, before (1200px) and after:

Before After

375px, before and after:

Before 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:

  • Width: the row was a full-width bar, 4.4–5.5× as wide as the chip above it, so their edges never lined up. The button sat at the far right, about 1,000px from the shield.
  • 375px layout: the copy wrapped into a 180px column beside the button, and the shield and the button were centred 16px below the title.
  • Button: its width changed between states (101 → 99 → 63px), and "Untrust" was a borderless ghost button.

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.

  • Column width: when the trust row shows, RuntimeTypeGroup is w-fit max-w-full (runtimeGroupClass, kept out of CreationControlsContent for the CRAP gate).
    • The row's @container wrapper has inline-size containment, so it adds no intrinsic width, and the column is exactly the chip's width.
    • On a touch phone the chip already fills the width, and the column does too.
    • DefaultSaveError also gets [contain:inline-size], so a save error wraps instead of widening the column past the chip.
  • Row grid: SshDirectoryTrustRow is a grid that follows its own width.
    • Below @md (448px) it stacks.
    • From @md up, 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.
    • With one line of copy the row is 32px.
  • Button: outline and min-w-[6.75rem] in every state; "Untrust" uses muted text.
  • Error: col-start-2 @md:col-end-4. A col-span would override col-start and put the error under the icon.

Validation

  • Measured after the change: every state, at 375, 744, 1200 and 1900px, plus two long paths.
    • The chip's and the row's left and right edges differ by 0px.
    • The button is 108px in every state.
    • The shield is centred on the first text line in both layouts.
    • The error starts at the status text.
    • Nothing overflows.
  • Story: SshWithoutIsolation (phone-width frame) asserts the stacked layout and that the chip and the row share their edges. test-storybook on CreationControls.stories.tsx passes (12/12).
  • No wide-layout story: the tests skill accepts only full-app stories for new UI, and no App story reaches the SSH+None form.
  • Not verified:
    • WebKit: a fresh page load drops the SSH+None choice, so a URL-only WebKit capture can't reach the row.
    • The touch-phone layout: headless Chromium doesn't match 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/runtime passes.

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

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-13T19:07:30.667433Z 8a9a366 Manual request
🔒 Security Review ✅ Completed 2026-11-13T19:08:16.862943Z 8a9a366 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@ammar-agent

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 👍

Reviewed commit: 0af75829c5

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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".

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review · Automatically triggered

Security review completed. No security issues were found in this pull request.

Reviewed commit: 0af75829c5

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

🟢 e2e stories (Haiku): 14 passed

22 agent steps · 7 replayed from cache · 15 model calls · 47.1k tokens (23% cached)
Spend: $0.09 of the $1.00 cap (proxy ledger)

All 14 tests in 9 files
Test Agent Time
🟢 chatRestart.e2e.ts · 1 passed 1 step · 1 call 5.5s
🟢 a chat survives a restart of the server 1 step · 1 call 5.5s
🟢 compaction.e2e.ts · 1 passed 1 step · 1 call 4.5s
🟢 /compact replaces the old chat with a summary 1 step · 1 call 4.5s
🟢 pluginTrustRestart.e2e.ts · 1 passed 4 steps · 2 calls 9.9s
🟢 a trusted plugin hook stays trusted after the server restarts 4 steps · 2 calls 9.9s
🟢 settingsRoundTrip.e2e.ts · 1 passed 2 steps · 1 call 9.0s
🟢 a chat survives trips through Settings 2 steps · 1 call 9.0s
🟢 sidebarPerWorkspace.e2e.ts · 1 passed 4 steps · 1 call 4.6s
🟢 a new workspace starts with its right sidebar collapsed while another keeps it open 4 steps · 1 call 4.6s
🟢 smoke.e2e.ts · 1 passed 2 steps · 1 call 2.7s
🟢 the agent opens the playground workspace 2 steps · 1 call 2.7s
🟢 streamErrors.e2e.ts · 1 passed 1 step · 1 call 6.7s
🟢 stream errors show in the chat, and the chat recovers 1 step · 1 call 6.7s
🟢 todoNudge.e2e.ts · 1 passed 1 step · 1 call 6.5s
🟢 the agent finishes open TODO items after the turn-end nudge 1 step · 1 call 6.5s
🟢 touchAlignment.e2e.ts · 6 passed 6 steps · 6 calls 20.9s
🟢 the Settings close button is level with the title on a touch screen 390px wide 1 step · 1 call 3.2s
🟢 the Settings close button is level with the title on a touch screen 768px wide 1 step · 1 call 4.1s
🟢 Backup settings checkboxes are small and level with their labels on a touch phone 1 step · 1 call 4.4s
🟢 the heartbeat checkbox is small and level with its label on a touch phone 1 step · 1 call 3.7s
🟢 a reply's model and time stay on one line on a touch phone 1 step · 1 call 2.7s
🟢 the workspace actions menu stays on the title row on a touch phone 1 step · 1 call 2.8s

e2e 0.20.0 · 1m 14s · web · run artifacts

🟢 e2e Electron stories (Haiku): 3 passed

3 agent steps · 3 model calls · 7.9k tokens (22% cached)
Spend: $0.02 of the $1.00 cap (proxy ledger)

All 3 tests in 3 files
Test Agent Time
🟢 electron/deepLink.e2e.ts · 1 passed 1 step · 1 call 7.4s
🟢 a deep link of a second launch starts a chat in the running app 1 step · 1 call 7.4s
🟢 electron/menuBar.e2e.ts · 1 passed 1 step · 1 call 5.3s
🟢 the workspace menu bar is the desktop title bar 1 step · 1 call 5.3s
🟢 electron/smoke.e2e.ts · 1 passed 1 step · 1 call 5.4s
🟢 Xum Electron opens the playground workspace 1 step · 1 call 5.4s

e2e 0.20.0 · 20.6s · electron · run artifacts

🟢 e2e agent repros (Haiku): no tests selected

Spend: $0.00 of the $1.00 cap (proxy ledger)

e2e 0.20.0 · 6.3s · 2 targets (web, phone) · run artifacts

@ammar-agent ammar-agent changed the title 🤖 fix: balance the SSH directory trust row at every width 🤖 fix: balance the SSH directory trust row and share the environment chip's width Nov 13, 2026
@ammar-agent

Copy link
Copy Markdown
Collaborator Author

@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.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🚀

Reviewed commit: 336b0e47d6

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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".

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review · Automatically triggered

Security review completed. No security issues were found in this pull request.

Reviewed commit: 336b0e47d6

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@ammar-agent ammar-agent changed the title 🤖 fix: balance the SSH directory trust row and share the environment chip's width 🤖 fix: balance the SSH directory trust row and fit it to the environment chip Nov 13, 2026
@ammar-agent

Copy link
Copy Markdown
Collaborator Author

@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.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Already looking forward to the next diff.

Reviewed commit: 8a9a366068

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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".

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review · Automatically triggered

Security review completed. No security issues were found in this pull request.

Reviewed commit: 8a9a366068

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant