Repository navigation
🤖 feat: clearer SSH+None trust feedback and one-click project default - #8123
Conversation
|
@codex review Please review the trust row redesign, the remembered-directory fallback for interrupted trust requests, and Set as default. |
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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9f9ea99a25
ℹ️ 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".
🛡️ 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.3k tokens (27% cached) All 14 tests in 9 files
e2e 0.20.0 · 1m 22s · web · run artifacts 🟢 e2e Electron stories (Haiku): 3 passed3 agent steps · 3 model calls · 8.0k tokens (32% cached) All 3 tests in 3 files
e2e 0.20.0 · 24.1s · electron · run artifacts 🟢 e2e agent repros (Haiku): no tests selectedSpend: $0.00 of the $1.00 cap (proxy ledger) e2e 0.20.0 · 7.4s · 2 targets (web, phone) · run artifacts |
|
@codex review The remembered-directory fallback now also checks the host, and Set as default has a keyboard shortcut. |
|
Codex Review: Didn't find any major issues. Keep them coming! 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 Since the last review: the trust button no longer changes width (the host moved into the status text), the error is aligned under the status, Set as default matches the branch select, and AGENTS.md plus the pull-requests skill now ask UI PRs for screenshots in the body. |
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
|
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. |
Summary
Follow-up to #8110. This PR improves the SSH+None trust experience on the new-workspace page:
Screenshots
Dark theme, new-workspace page, Project isolation = SSH and Workspace isolation = None.
Untrusted: the trust row sits under the sentence; Set as default is at the end of it.
Trusting a
~path: the host resolves it over SSH; the status says so while the button shows a spinner.Error (unreachable host), shown under the status text:
Trusted, then Set as default clicked (it now reads ✓ Default):
375px, trusted and untrusted:
Background
A user reported that pressing Trust directory on the new-workspace page gave no feedback, even though the backend saved the trust. A sub-agent reproduced this against the real backend with throwaway sshd hosts. It found two problems:
~/app) with the stored entries. The backend stores the path as resolved on the host (/home/me/app). The two matched only because the UI copied the resolved path back into the field after the request. That copy is skipped if the user switches isolation or project, leaves the page, or edits the field before the reply arrives. After that, the field and the remembered directory stay~/app, and the row says "untrusted" for good.~path, the request resolves it over SSH with a login shell, which takes seconds on a real host (about 9s on the slow test host). The only sign of progress was the button going grey, which invites the user to do exactly the things that skip the copy-back.Implementation
Trust row (
SshDirectoryTrustNotice.tsx,sshDirectoryTrustState.ts)ShieldCheckin the success color,ShieldAlertin the warning color. The title is "Trusted directory" or "Untrusted directory", followed by a one-line explanation.role="status", so screen readers announce the change.saveSshDirectoryTrustreplaces the typed spelling in the project's remembered SSH directory with the resolved one (withResolvedRememberedProjectDir). It does this only if the remembered host and directory still match the request, so a path resolved on one host is never stored next to another. The field the user comes back to fills from that remembered value, so it now matches the stored entry.Set as default (
SetDefaultIsolationButton.tsx,creationDraftProject.ts)projectDefaultIsolationUpdate). Without the copy, turning the override on would re-enable isolations that Settings had turned off.KEYBINDS.SET_DEFAULT_ISOLATION(Ctrl/Cmd+Alt+Shift+D). It works only while the button is enabled and no dialog is open, shows in the button's hover tooltip, and is listed in Settings → Keybinds.Docs: AGENTS.md (PR Workflow) and the pull-requests skill now ask PRs that change UI for cropped, dark-theme screenshots in the body, hosted on an orphan
pr-assets/<pr number>branch. This PR follows that rule (pr-assets/8123).Test support: the Storybook/test oRPC mock gains a stateful
projects.setSshDirectoryTrustthat resolves~to/home/mock.Validation
tests/ui/runtime/sshDirectoryTrust.test.tscover:~path.~trust is in flight, then back. This test fails without the remembered-directory fix (checked by temporarily removing it).Risks
Low. The changes are limited to the creation page's SSH+None trust row and a new button. "Set as default" writes through the same
config.updateRuntimeEnablementroute that Settings → Runtimes uses.Follow-ups (not in this PR)
SSHRuntime.resolvePathOncereturns everythingbash -lcprints, so a profile that prints a MOTD gets that text stored in the trust entry and the field. The same code resolves paths at workspace creation and predates this change, so it gets its own PR: print a marker before the path and keep only what follows it.Generated with
xum• Model:anthropic:claude-opus-5-5• Thinking:high• Cost:$167.99