Fix doctor trycmd test: move env vars to [env.add] section

trycmd's Env struct requires env vars under [env.add], not directly
under [env]. Vars placed directly under [env] are silently ignored by
serde, so the subprocess ran with a fully cleared env. On CI this caused
dirs::home_dir() to fall back to passwd, loading the real cli.toml
(with app_id) but without GITHUB_APP_PRIVATE_KEY → partial config error.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Bryan Helmkamp 2026-03-14 17:28:44 -04:00
parent 589a98ec6e
commit 9dedaa9e39

View file

@ -3,5 +3,7 @@ args = ["doctor", "--dry-run"]
[env]
inherit = false
[env.add]
HOME = "/tmp/fabro-trycmd-nonexistent"
ANTHROPIC_API_KEY = "sk-test-dummy"