@@ -52,6 +52,7 @@ const consumerDir = path.join(workDir, 'consumer');
5252function run ( command : string , args : string [ ] , cwd : string ) : string {
5353 return execFileSync ( command , args , {
5454 cwd,
55+ env : { ...process . env , AGENT_DEVICE_NO_UPDATE_NOTIFIER : '1' } ,
5556 encoding : 'utf8' ,
5657 maxBuffer : 64 * 1024 * 1024 ,
5758 stdio : [ 'ignore' , 'pipe' , 'inherit' ] ,
@@ -148,8 +149,10 @@ if (failures.length > 0) {
148149 * `devices` and `doctor --remote` are the cheapest commands that load the daemon bundle and the
149150 * remote-config graph — the lazily imported halves of the CLI that no `--version` or `help` run
150151 * reaches, and where the 0.20.4 unresolved import actually surfaced. Every command is device-free and
151- * offline. `--state-dir` keeps the daemon they start out of the developer's `~/.agent-device`, and
152- * `daemon stop` leaves nothing running behind the check.
152+ * offline. The subprocess environment disables the detached update notifier so the non-JSON
153+ * `daemon stop` probe cannot recreate files while the temporary consumer is being removed.
154+ * `--state-dir` keeps the daemon they start out of the developer's `~/.agent-device`, and `daemon
155+ * stop` leaves nothing running behind the check.
153156 */
154157function smokeTestBin ( installedRoot : string , manifest : PackedManifest ) : void {
155158 const binPath = path . join ( installedRoot , manifest . bin [ 'agent-device' ] ! ) ;
0 commit comments