feat(coding-agent): set PI_CODING_AGENT=true env var at startup

closes #2868
This commit is contained in:
Mario Zechner
2026-04-09 03:03:08 +02:00
parent 82ecc1300f
commit 61015830ed
2 changed files with 5 additions and 0 deletions

View File

@@ -2,6 +2,10 @@
## [Unreleased]
### Added
- Set `PI_CODING_AGENT=true` environment variable at startup so sub-processes can detect they are running inside the coding agent ([#2868](https://github.com/badlogic/pi-mono/issues/2868))
## [0.66.1] - 2026-04-08
### Changed

View File

@@ -6,6 +6,7 @@
* Test with: npx tsx src/cli-new.ts [args...]
*/
process.title = "pi";
process.env.PI_CODING_AGENT = "true";
process.emitWarning = (() => {}) as typeof process.emitWarning;
import { EnvHttpProxyAgent, setGlobalDispatcher } from "undici";