Skip to content

chore: add Cloud Agent development environment config - #72

Merged
xjoker merged 4 commits into
devfrom
cursor/setup-cloud-agent-env-66eb
Aug 26, 2026
Merged

chore: add Cloud Agent development environment config#72
xjoker merged 4 commits into
devfrom
cursor/setup-cloud-agent-env-66eb

Conversation

@xjoker

@xjoker xjoker commented Aug 26, 2026

Copy link
Copy Markdown
Owner

What

Adds .cursor/environment.json so Cursor Cloud Agents get a working codex-switch development environment out of the box.

Base is dev (the development baseline); the branch is merged up to dev, so the diff is just .cursor/environment.json.

Why

The base image ships Rust 1.83.0, but the crate declares edition = "2024" and rust-version = "1.88", so it cannot build without a newer toolchain. The install command upgrades the toolchain and warms the dependency cache and dev tools. It also installs the Codex CLI, which the custom-API-provider feature's launch path shells out to (needed for provider end-to-end testing).

Environment config

install runs, idempotently:

  • rustup toolchain install stable with clippy + rustfmt (installs Rust 1.98.0, satisfying the MSRV)
  • rustup default stable
  • cargo fetch --locked + cargo build --all-targets --locked to warm the cache
  • cargo install cargo-audit --locked for the documented CONTRIBUTING.md quality gate
  • npm install -g @openai/codex@latest --prefix "$HOME/.local" — Codex CLI, tracking the latest release (auto-updates on each environment build), landed on PATH at ~/.local/bin (used by codex-switch launch / provider e2e)

No start/terminals phase is needed: codex-switch is a CLI/TUI tool with no long-running server.

Validation

Validated on the VM and re-validated by a fresh Cloud Agent build bld-20260826-9a0b4ac6-c398-4e46-b5b0-f4033775138a (logs show rustc 1.98.0, cargo build finished, cargo-audit present, and npm install ... @openai/codex@latestadded 2 packages, exit 0):

Check Result
cargo build --all-targets Passed
cargo fmt --check Passed
cargo clippy --all-targets -- -D warnings Passed
cargo test --all Passed
cargo audit Exit 0 on dev (webbrowser bumped to 1.2.4; only a non-fatal lru warning remains)
codex --version on PATH codex-cli 0.149.1 (latest)
Install idempotence Passed twice
Open in Web Open in Cursor 

chou xiao and others added 3 commits August 26, 2026 03:44
Co-authored-by: xJoker <xjoker@users.noreply.github.com>
Co-authored-by: xJoker <xjoker@users.noreply.github.com>
Co-authored-by: xJoker <xjoker@users.noreply.github.com>
@xjoker
xjoker marked this pull request as ready for review August 26, 2026 05:02
…nt-env-66eb

Co-authored-by: xJoker <xjoker@users.noreply.github.com>
@cursor
cursor Bot changed the base branch from master to dev August 26, 2026 05:28
@xjoker
xjoker merged commit ad7326c into dev Aug 26, 2026
5 checks passed
cursor Bot pushed a commit that referenced this pull request Aug 26, 2026
Real dev already carries #67 (provider store) and #72 (env config). Re-merged
the true dev HEAD and resolved the add/add conflicts in provider.rs / cli.rs /
commands/provider.rs by keeping the provider-docs full-feature versions
(verified supersets of dev's #67). environment.json (#72) merged in cleanly.
This PR now cleanly adds #68-#73 (launch / TUI / docs / codex overrides) that
are not yet in dev. Full suite: 1019 passed.

Co-authored-by: xJoker <xjoker@users.noreply.github.com>
xjoker added a commit that referenced this pull request Aug 26, 2026
Completes the custom API provider feature. #67 (profiles store + CLI) and #72
(Cloud Agent environment) are already on dev; this adds the remaining pieces as
a single clean commit on top of dev so the repo's rebase-and-merge can apply it
without conflicts:

- launch <provider>: codex -c overrides + env-injected API key (never argv,
  never ~/.codex/auth.json)
- TUI Accounts/Providers tabs + add/remove provider wizard
- per-provider Codex overrides: --set KEY=VALUE, --reasoning, --no-web-search,
  and matching TUI wizard steps (values passed to Codex verbatim)
- provider documentation (docs/wiki/Providers.md, etc.)

The original per-PR history is preserved in the already-merged #68-#73.
Full suite: 1019 passed.

Co-authored-by: xJoker <xjoker@users.noreply.github.com>
@cursor
cursor Bot deleted the cursor/setup-cloud-agent-env-66eb branch August 26, 2026 07:04
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