Commit 0c935a5
A.R.
fix(#5.1): strip HEADLESS_ONLY/NO_DAEMON from daemon spawn env
Issue #5 root cause: `PERPLEXITY_HEADLESS_ONLY=1` leaked from the IDE
config env block into the daemon process. When the daemon spawned, it
inherited `...process.env`, so `PerplexityClient.init()` saw the flag
and skipped the headed bootstrap entirely — authenticated Pro features
remained unavailable.
Changes:
- stdio-daemon-proxy.ts: remove `PERPLEXITY_HEADLESS_ONLY` from the
auto-generated env block (new configs won't carry it).
- launcher.ts spawnDetachedDaemon: delete both `PERPLEXITY_HEADLESS_ONLY`
and `PERPLEXITY_NO_DAEMON` from the env before spawning.
- runtime.ts spawnBundledDaemon: same stripping.
This also fixes pre-existing IDE configs that still have the flag:
the spawn-time strip removes it regardless of config age.
Refs issue #51 parent d53b008 commit 0c935a5
3 files changed
Lines changed: 16 additions & 3 deletions
File tree
- packages
- extension/src
- auto-config/transports
- daemon
- mcp-server/src/daemon
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | 20 | | |
| 21 | + | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
460 | 460 | | |
461 | 461 | | |
462 | 462 | | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
463 | 469 | | |
464 | 470 | | |
465 | 471 | | |
466 | 472 | | |
467 | | - | |
| 473 | + | |
468 | 474 | | |
469 | 475 | | |
470 | 476 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
931 | 931 | | |
932 | 932 | | |
933 | 933 | | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
934 | 940 | | |
935 | 941 | | |
936 | 942 | | |
937 | 943 | | |
938 | | - | |
| 944 | + | |
939 | 945 | | |
940 | 946 | | |
941 | 947 | | |
| |||
0 commit comments