Repository navigation
Conversation
[HACK-2596](https://linear.app/hackdance/issue/HACK-2596) · Shared command drawer ## What changed - Adds a typed Run/Copy control for Setup, Doctor and machine views. The pair has equal dimensions in both its standard and compact sizes. - Runs checked argv in the existing Ghostty panel with the pinned CLI, controlled PATH, backend and Docker selectors. The terminal owns password input. Copy and the Terminal app hand-off use the same checked command and directory. - Reports typed exit outcomes and asks the owning view to re-check. A zero exit and a passing check close the drawer after 1.5 seconds. Other outcomes keep the output available. - Adds Copy output, Terminal app fallback, Make taller and Stop. Closing the drawer retains the latest run. Passed Setup cards can reopen successful output, and the terminal shortcut reopens a command waiting for input. - Wires Setup's daemon start and admin fixes. The setup flow and Doctor/machines branches can use the shared control, including the blocked and version-mismatch props. ## Verification - Started from `codex/desktop-v5-parity` at `0dac496c13e574936241520c2fdaf75d3d4843a3`. - Claude Opus 5.5 reviewed the code in three rounds and reported clean at `301c24f73fa44d15bfbbbb36b4f2a5b56144574f`. - macOS formatting, workspace typecheck, Clippy with warnings denied, and all four drawer regressions passed. The full desktop run passed 528 tests, skipped one and reported three failures. The headless Env clipboard test also fails at the base commit. Both other tests passed in the isolated rerun, alongside the four drawer regressions and workspace doctests. - The macOS app rendered all seven requested drawer frames in both appearances. The fixtures ran real PTYs with harmless commands. The existing project Logs drawer passed its native window smoke test. ## Visual evidence The captures show the shared controls on the current Setup pane and use the current desktop palette. | State | Light | Dark | |---|---|---| | Before · Setup partial fixture | [Light](https://github.com/hack-dance/hack/blob/6111db778efad80a5cbe7900b0eba05c3ab786f1/apps/desktop/screenshots/command-drawer/before-setup-partial-light.png) | [Dark](https://github.com/hack-dance/hack/blob/6111db778efad80a5cbe7900b0eba05c3ab786f1/apps/desktop/screenshots/command-drawer/before-setup-partial-dark.png) | | h05 · Running | [Light](https://github.com/hack-dance/hack/blob/6111db778efad80a5cbe7900b0eba05c3ab786f1/apps/desktop/screenshots/command-drawer/h05-hackd-running-light.png) | [Dark](https://github.com/hack-dance/hack/blob/6111db778efad80a5cbe7900b0eba05c3ab786f1/apps/desktop/screenshots/command-drawer/h05-hackd-running-dark.png) | | h08 · Run and Copy | [Light](https://github.com/hack-dance/hack/blob/6111db778efad80a5cbe7900b0eba05c3ab786f1/apps/desktop/screenshots/command-drawer/h08-dns-needs-action-light.png) | [Dark](https://github.com/hack-dance/hack/blob/6111db778efad80a5cbe7900b0eba05c3ab786f1/apps/desktop/screenshots/command-drawer/h08-dns-needs-action-dark.png) | | h10 · Password prompt | [Light](https://github.com/hack-dance/hack/blob/6111db778efad80a5cbe7900b0eba05c3ab786f1/apps/desktop/screenshots/command-drawer/h10-dns-password-light.png) | [Dark](https://github.com/hack-dance/hack/blob/6111db778efad80a5cbe7900b0eba05c3ab786f1/apps/desktop/screenshots/command-drawer/h10-dns-password-dark.png) | | h11 · Failed | [Light](https://github.com/hack-dance/hack/blob/6111db778efad80a5cbe7900b0eba05c3ab786f1/apps/desktop/screenshots/command-drawer/h11-dns-failed-light.png) | [Dark](https://github.com/hack-dance/hack/blob/6111db778efad80a5cbe7900b0eba05c3ab786f1/apps/desktop/screenshots/command-drawer/h11-dns-failed-dark.png) | | h12 · Done and closing | [Light](https://github.com/hack-dance/hack/blob/6111db778efad80a5cbe7900b0eba05c3ab786f1/apps/desktop/screenshots/command-drawer/h12-dns-succeeded-light.png) | [Dark](https://github.com/hack-dance/hack/blob/6111db778efad80a5cbe7900b0eba05c3ab786f1/apps/desktop/screenshots/command-drawer/h12-dns-succeeded-dark.png) | | h13 · Last run | [Light](https://github.com/hack-dance/hack/blob/6111db778efad80a5cbe7900b0eba05c3ab786f1/apps/desktop/screenshots/command-drawer/h13-drawer-closed-last-run-light.png) | [Dark](https://github.com/hack-dance/hack/blob/6111db778efad80a5cbe7900b0eba05c3ab786f1/apps/desktop/screenshots/command-drawer/h13-drawer-closed-last-run-dark.png) | | h13 · Passed and closed | [Light](https://github.com/hack-dance/hack/blob/301c24f73fa44d15bfbbbb36b4f2a5b56144574f/apps/desktop/screenshots/command-drawer/h13-successful-run-history-light.png) | [Dark](https://github.com/hack-dance/hack/blob/301c24f73fa44d15bfbbbb36b4f2a5b56144574f/apps/desktop/screenshots/command-drawer/h13-successful-run-history-dark.png) | | h26 · Drawer menu | [Light](https://github.com/hack-dance/hack/blob/6111db778efad80a5cbe7900b0eba05c3ab786f1/apps/desktop/screenshots/command-drawer/h26-drawer-menu-light.png) | [Dark](https://github.com/hack-dance/hack/blob/6111db778efad80a5cbe7900b0eba05c3ab786f1/apps/desktop/screenshots/command-drawer/h26-drawer-menu-dark.png) |  ## Drawer lifecycle  [SVG](https://github.com/hack-dance/hack/blob/6111db778efad80a5cbe7900b0eba05c3ab786f1/apps/desktop/diagrams/command-drawer.svg) · [Mermaid source](https://github.com/hack-dance/hack/blob/6111db778efad80a5cbe7900b0eba05c3ab786f1/apps/desktop/diagrams/command-drawer.mmd) An unavailable exit status keeps the drawer open and still triggers a fresh check. --------- Co-authored-by: Dimitri Kennedy <344842+roodboi@users.noreply.github.com>
## What changed - `hack files ls|cat --json` reads a running Compose service and reports `hack.files.v1`. The CLI verifies checkout ownership before opening a replica. The deepest mount determines the entry's source. - Files browses one service, previews text, copies the container path, and opens local worktree files in the host text editor after rechecking the mount. - The current project pane exposes Files with a service picker. The service-pane change can mount `FilesPane::open` for its selected service and remove the temporary entry point. ## Native desktop previews These captures show synthetic data. The enclosing desktop still uses the stack base's project pane. | Theme | Before | After | | --- | --- | --- | | Light |  |  | | Dark |  |  | ## Verification - Pinned Bun typecheck, check, docs preparation and docs checks passed. The focused CLI and machine-envelope tests passed all 117 cases. - The compiled CLI passed an isolated two-replica Compose fixture with a worktree bind, nested and inherited volumes, a same-name foreign checkout, a Compose .env project override, a symlink, and bounded text and binary reads. - The full local Bun run reported existing fixture timeouts and exited 137. A targeted retry of those files with a longer deadline passed 40 tests, with one opt-in integration skipped. - The macOS desktop suite passed 483 tests on the prior revision at one test thread, with one skip. The latest build passed the four machine-contract tests and doctests. The native harness reproduced both screenshot PNGs byte for byte. A foreground editor launch was outside the automated verification. <!-- codesmith:footer --> --- <a href="https://dashboardbackend.blacksmith.sh/track/run-proof?expires=1798049929&installation_model_id=17053&pr_number=1167&ref=codesmith_pr_footer&repository=hack-dance%2Fhack&return_to=https%3A%2F%2Fgithub.com%2Fhack-dance%2Fhack%2Fpull%2F1167&variant=see_it_in_action&signature=5da252b9c5d05a3f814e3fc6e0ece3eefc60c30676c949b4ca225ff9d5ff6e73"><picture><source media="(prefers-color-scheme: dark)" srcset="https://pr-comments-assets.blacksmith.sh/codesmith/proof-see-it-in-action-v2-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://pr-comments-assets.blacksmith.sh/codesmith/proof-see-it-in-action-v2-light.svg"><img alt="See it in action" src="https://pr-comments-assets.blacksmith.sh/codesmith/proof-see-it-in-action-v2-dark-3x.png" width="132" height="28"></picture></a> <sup><a href="https://app.blacksmith.sh/hack-dance/codesmith/hack/pr/1167?autoLogin=true&ref=codesmith_pr_footer">Open in [code]smith</a> · Need help on this PR? Tag <code>@codesmith-bot</code> with what you need.</sup> <!-- codesmith:autofix:disabled --> <!-- /codesmith:footer --> --------- Co-authored-by: Dimitri Kennedy <344842+roodboi@users.noreply.github.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
Security findingsAdvisory findings (5)
ℹ️ 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: Didn't find any major issues. Hooray! 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 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 |
|
Codex Review: Didn't find any major issues. Swish! 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". |
There was a problem hiding this comment.
🛡️ Codex Security Review · Automatically triggered
Here are some automated security review suggestions for this pull request.
Reviewed commit: ca649dc78b
ℹ️ 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.
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6b121bd464
ℹ️ 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 review |
|
Codex Review: Didn't find any major issues. Nice work! 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". |
There was a problem hiding this comment.
🛡️ Codex Security Review · Automatically triggered
Here are some automated security review suggestions for this pull request.
Reviewed commit: e417518818
ℹ️ 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.
|
@codex review |
|
Codex Review: Didn't find any major issues. Bravo. 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 review |
|
Codex Review: Didn't find any major issues. Another round soon, please! 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". |
There was a problem hiding this comment.
🛡️ Codex Security Review · Automatically triggered
Here are some automated security review suggestions for this pull request.
Reviewed commit: 4b8a9bca74
ℹ️ 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.
|
@codex review |
|
Codex Review: Didn't find any major issues. Swish! 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 review |
|
Codex Review: Didn't find any major issues. What shall we delve into next? 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. |
|
Lead: 🤖 Generated with Claude Code |
|
Lead triage: PARTLY COVERED. It overlaps #1159, and the lead needs to decide which design wins before a refresh. This can wait for 5.1 unless the JSON config commands are in the stable scope. Checked against
Next step: the lead decides whether the layered Config tab replaces #1159's pane or extends it. Then Kit splits the PR in two: (1) the CLI 🤖 Generated with Claude Code |
|
Lead decision on the Config design: #1159's Config pane, already merged, is the one that ships. Please split this PR:
🤖 Generated with Claude Code |
Summary
hack config show,validate, andapplyJSON commands. Saves check layer revisions and reuse the existing env writer. Source previews redact credentials and keep Compose comments and order on structured edits.Native macOS before and after
Light · m08–m12
Merino Dark · m08–m12
The native macOS harness captured the baseline Services view and refreshed all 14 Config views at 2560×1600. The after captures use synthetic data and include the Files tab from the target branch.
Verification
Refs HACK-2595