Skip to content

Rename the GPUI workspace folder desktop/ to app/ - #362

Open
n0rpan wants to merge 10 commits into
mainfrom
refactor/rename-desktop-to-app
Open

n0rpan wants to merge 10 commits into
mainfrom
refactor/rename-desktop-to-app

Conversation

@n0rpan

@n0rpan n0rpan commented Dec 3, 2026 •

Copy link
Copy Markdown
Collaborator

Why

desktop/ holds the whole GPUI workspace: the host, host-web, the PTY layer, memory and OX Mobile, not only OX Desktop. This moves the folder to app/. It is a pure move: no product, crate or install-path names change.

What

  1. 6a57b0a: git mv desktop app, with no content changes, so git tracks every file as a rename.
  2. f9afe65: every repository path now points at app/: root Cargo.toml, all workflows (paths, working-directory, rust-cache workspaces: and keys, artifact paths, paths: filters), app/ci/pr_scope.py and its tests (every glob, including the docs-only publish rule), scripts under ci/, tests/ and ox-mobile/, Gradle files, README, AGENTS.md and docs, and path comments in Rust and tests.
  3. Reconciled through 373f8c9a (Launch the opt-in Live Activity app in the iOS simulator #403). The move includes Use workflow run numbers to identify the latest PR CI #363's workflow run ordering, Let a requested pull request reach the queue without help #417's security-review trigger and removal handling, candidate build observation, Ubuntu archive checks, stock-client download caching (Install stock clients from the day's saved downloads before the registry #394), separate browser and native host checks (Run signed native host checks independently of Chromium #382), nightly release recovery (Recover outstanding dev and TestFlight releases overnight #385), the opt-in Live Activity simulator check (Launch the opt-in Live Activity app in the iOS simulator #403), and the native and mobile files added on main.

Unchanged on purpose: the crate ox-desktop, the product name OX Desktop, ~/.ox-desktop in install.sh (a user install path), the state directory ~/.local/state/ox/desktop/, docs/design/desktop/ and docs/desktop/.

Remaining desktop/ hits

rg -n "desktop/" --hidden -g '!.git' -g '!target' now finds only:

  • ox-desktop/ (crate and package paths) and .ox-desktop/
  • state paths ox/desktop/…json in tests and src/weather.rs
  • docs/design/desktop/, docs/desktop/keys.md and /org/freedesktop/
  • prose: "desktop/CLI" and "desktop/phone" in docs/mobile-parity.md, docs/design/codex-review-final.md and docs/design/threads-plan.md
  • fixture data, including deliberate stale-path inputs in the workflow path test
  • the Claude Desktop docs URL

Checks

Main-only release paths

PR CI cannot run signing, notarization, publishing or the TestFlight upload. This is how they were exercised:

  • Unchanged scripts: compared with main, the scripts those jobs run are identical blobs at their new paths. macos-sign-cli.sh, macos-sign.sh and macos-notarize.sh differ only in their # Usage: comment.
  • A path check on every pull request: app/ci/test_workflow_paths.py, new in the fast lane, fails when any workflow, including the main-only jobs, names a repository path that does not exist; any desktop/ path counts as stale. Changing one ci.yml signing path back to desktop/ makes it fail.
  • Automatic merging: this branch's app/ci/auto-queue.sh, run with AUTO_QUEUE_DRY_RUN=1 against Keep OX Mobile alive when a host connection closes mid-write (SIGPIPE) #341, made the right decision.
  • Not exercised: a real Developer ID sign and the uploads. Watch the first main build: ci.yml (sign-cli, publish-dev), desktop.yml (sign-macos), mobile.yml (upload and What to Test), delivery-watch.yml, testflight-status.yml and verify-ios-live-activity-device.yml.

Merge order

This is queued only when no pull request that touches desktop/ is ahead of it in the merge queue. An open pull request that lands later has to merge main and git mv any new files it added under desktop/ to app/; edits to existing files follow the rename on their own.

Checked against main at 373f8c9a22ace0643f2ed449b70039b0b3029466.

🤖 Generated with Claude Code

n0rpan and others added 5 commits December 2, 2026 16:59
Pure rename with no content changes, so git follows every file.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Workflows, CI scripts and scope rules, fixtures, include paths, docs and
comments now name app/. Product names (OX Desktop, ox-desktop, .ox-desktop),
per-user state paths (ox/desktop/...) and the desktop product docs under
docs/desktop and docs/design/desktop keep their names.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Take main's side of every conflict, then rename the paths it added: the
delivery workflow, delivery.py and its tests, the queue scripts and docs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…op-to-app

# Conflicts:
#	README.md
#	app/ox-mobile/src/mobile/stack_stress.rs
#	docs/README.md
…op-to-app

# Conflicts:
#	.github/workflows/mobile.yml
#	app/ox-mobile/set-testflight-notes.py
#	app/ox-mobile/testflight-notes.txt
#	app/ox-mobile/tests/test_testflight_notes.py
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 3, 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-12-03T21:31:57.676594Z 296e217 New commits
🔒 Security Review ✅ Completed 2026-12-03T11:46:01.453313Z be4ff6a Draft marked ready
ℹ️ 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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5269b923c4

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

Comment thread .github/workflows/ci.yml Resolved
Signing, notarization, publishing and the TestFlight upload run only on
main, so a pull request never executes the paths they call. A new test in
the fast lane reads every workflow, including those jobs, and fails when one
names a repository path that is not in the tree. Any path under the old
desktop/ folder counts as stale.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@n0rpan
n0rpan marked this pull request as draft December 3, 2026 11:42
@n0rpan
n0rpan marked this pull request as ready for review December 3, 2026 11:42
@n0rpan n0rpan added the full-ci label Dec 3, 2026

n0rpan commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator Author

Coordination with #363: it changes how required_checks_passed picks the latest workflow run, in the same queue script and test suite this PR moves to app/ci/. Once both changes are together, please run the relocated queue tests, including the same-second canceled/green regression. The dry run against #341 checks the new path, but it doesn’t cover the run-order case that held #349.

n0rpan commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator Author

One more rename overlap: #417 landed new exact-head security-review and queue-request retention logic in desktop/ci/auto-queue.sh and its tests. Those changes belong in the relocated app/ci/ files too. The relocated suite can verify both the readiness transition and the distinction between bot-owned and manual removals.

Carry the queue run-order and readiness/removal fixes, package and candidate-build checks, mobile changes, fixtures and documentation to their new paths. Apply rustfmt to the relocated gate lookup in tests/setup.rs.
@n0rpan

n0rpan commented Dec 3, 2026 •

Copy link
Copy Markdown
Collaborator Author

Following up on the #363 coordination comment and the #417 follow-up. Commit 7aebc33 reconciles the rename with main at 20f8288. The relocated queue script differs from main only in its usage comment, and its 28-test suite is byte-identical.

All 76 tests in python3 -m unittest discover -s app/ci -p 'test_*.py' passed. That includes the same-second cancelled/green run, the draft-to-ready transition for exact-head security review, bot-owned versus manual or GitHub removal, and all three workflow path checks. The relocated script's read-only dry run against #362 reported the expected hold for a missing queue request. All 21 TestFlight Python tests and the docs link check also passed.

The failed fast job stopped at rustfmt on the shortened app/gate.toml lookup in tests/setup.rs. Both workspace formatting checks now pass, as does root Clippy. Local launcher fixtures picked up this machine’s installed Antigravity executable. A parallel local run also failed in the unchanged staged-updater test at src/update/standalone.rs:166. The new head has full CI requested.

Holding admission per the merge order. All 12 candidates in the queue at the last check touch desktop/.

The full root Rust suite subsequently passed with one test thread and an isolated PATH containing a single stock client installation and no system Antigravity executable. No assertions or test code were changed. The parallel staged-updater failure remains unexplained locally. Hosted CI is the independent check of the usual runner configuration.

Update after full CI. CI for 7aebc33 passed, including the four desktop package builds, release asset list, and OX merge check. The code review completed with no open findings. After #382 and #385 landed, I reconciled their workflow changes locally. Both relocated app/ox-host-web/tests/check.sh native and app/ox-host-web/tests/check.sh browser passed, along with all 77 CI Python tests. I then reconciled #394’s stock-client cache scripts and #403’s Live Activity simulator job. These changes are now on the PR at 296e2178ace4d98b5de54ff7b52ad2da5afb78ee, checked against main 373f8c9a. The final local run on this head passed all 85 CI Python tests, all 21 TestFlight Python tests, root Clippy, both formatting checks and the full root Rust suite in the isolated test environment described above. Full CI for the new head is running. The merge-order hold still applies.

n0rpan commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator Author

Heads-up from the now-merged #394: it added desktop/ci/stock_client_downloads.py and desktop/ci/npm.sh, with new CI callers and tests. On the combined tree, those should move to app/ci/ along with stock-clients.sh. The rename’s path check plus the relocated test_npm.py and test_stock_client_downloads.py would cover this overlap.

@n0rpan

n0rpan commented Dec 3, 2026 •

Copy link
Copy Markdown
Collaborator Author

The Stock clients (latest) job failed on 296e217 in tests/fixtures/stock_opencode.py:193. The fixture runs opencode models ox. The latest client exits 1 with Unexpected positional argument: "ox". I reproduced this locally with the installed OpenCode v2.4.4. Both the fixture and src/opencode.rs match main at 373f8c9. The #398 merge-group job recorded the same error before this push.

The existing CI policy makes the latest-client result advisory on pull requests and merge groups and blocking on the nightly run. The baseline lane and required OX merge check still apply. The full run finished successfully, including the baseline stock clients, release asset list and required OX merge check. Both Live Activity jobs passed.

n0rpan commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator Author

Two new source paths from the latest merges: #419 adds desktop/ox-mobile/src/conversation_options.rs (declared by lib.rs), and #388 adds desktop/ci/test_queue_timing.py. Both belong under app/ on the combined tree. The mobile library tests and the relocated queue-timing suite would catch either file being left behind.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant