chore: add Cloud Agent development environment config - #72
Merged
Conversation
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
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 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds
.cursor/environment.jsonso Cursor Cloud Agents get a workingcodex-switchdevelopment environment out of the box.Base is
dev(the development baseline); the branch is merged up todev, so the diff is just.cursor/environment.json.Why
The base image ships Rust
1.83.0, but the crate declaresedition = "2024"andrust-version = "1.88", so it cannot build without a newer toolchain. Theinstallcommand upgrades the toolchain and warms the dependency cache and dev tools. It also installs the Codex CLI, which the custom-API-provider feature'slaunchpath shells out to (needed for provider end-to-end testing).Environment config
installruns, idempotently:rustup toolchain install stablewithclippy+rustfmt(installs Rust1.98.0, satisfying the MSRV)rustup default stablecargo fetch --locked+cargo build --all-targets --lockedto warm the cachecargo install cargo-audit --lockedfor the documentedCONTRIBUTING.mdquality gatenpm install -g @openai/codex@latest --prefix "$HOME/.local"— Codex CLI, tracking the latest release (auto-updates on each environment build), landed onPATHat~/.local/bin(used bycodex-switch launch/ provider e2e)No
start/terminalsphase is needed:codex-switchis 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 showrustc 1.98.0,cargo buildfinished,cargo-auditpresent, andnpm install ... @openai/codex@latest→added 2 packages, exit 0):cargo build --all-targetscargo fmt --checkcargo clippy --all-targets -- -D warningscargo test --allcargo auditdev(webbrowser bumped to 1.2.4; only a non-fatallruwarning remains)codex --versiononPATHcodex-cli 0.149.1(latest)