Skip to content

Every agent's model. One place. Codex on DeepSeek, Claude Code on Kimi, from the menu bar.

agentenv: every sandbox clears CARGO_HOME, where the Library finds rtk (#3884)

JoeyWu-tech3116b8f58a9d
diff --git a/internal/agentenv/agentenv.go b/internal/agentenv/agentenv.go
index 99e50bb7d..8d796cd66 100644
--- a/internal/agentenv/agentenv.go
+++ b/internal/agentenv/agentenv.go
@@ -111,6 +111,9 @@ var Vars = []string{
// mise's and asdf's folders, whose shims stand for an agent's CLI and
// whose installs hold the Node versions it is under
"MISE_DATA_DIR", "ASDF_DIR",
+ // cargo's folder, whose bin holds an rtk cargo installed: the Library
+ // finds rtk there and upgrades it with cargo (cargoBins)
+ "CARGO_HOME",
// Google Cloud's credentials file and gcloud's folder, which Vertex AI's
// tokens are minted from (and Gemini CLI's own, on Vertex AI)
"GOOGLE_APPLICATION_CREDENTIALS", "CLOUDSDK_CONFIG",