David Anderson
2a640abfbe
fix(pty): strip inherited Claude child-session stamps at spawn ( #9961 )
...
An Orca GUI or daemon launched from inside a Claude Code session inherits
CLAUDE_CODE_CHILD_SESSION / CLAUDE_CODE_SESSION_ID / CLAUDE_CODE_BRIDGE_SESSION_ID.
Every spawn path spreads the host's process.env, so each terminal Orca opens is
marked a nested Claude child and Claude silently disables transcript
persistence — real sessions stop writing on-disk history with no visible error.
Older-protocol daemons are deliberately preserved across upgrades and the
auto-updater relaunch inherits the previous app's env, so one contaminated
launch propagates through subsequent updates.
Orca never sets these variables, so an inherited value is always poison. Add a
deny constant plus an inherited-only filter merged into envToDelete at both pty
spawn call sites, keeping a stamp explicitly passed in args.env. Unlike the
agent-hook keys this is not gated on isDaemonHostSpawn, because the local
provider and the relay host spread their own process.env too.
Review fixes: mergePtyEnvDeletions is now variadic (the nested form passed a
`string[] | undefined` intermediate into a `readonly string[]` parameter and did
not typecheck); coverage extends to the runtime-controller spawn path, the local
provider, and the SSH route, whose exact spawn-options assertion had to be
updated because envToDelete is no longer ever undefined.
2026-07-27 15:55:31 -07:00
..
2026-07-27 15:41:23 -07:00
2026-07-26 22:39:32 -07:00
2026-07-23 18:35:31 -07:00
2026-07-27 15:41:23 -07:00
2026-07-23 18:35:31 -07:00
2026-07-23 18:35:31 -07:00
2026-07-23 18:35:31 -07:00
2026-07-23 18:35:31 -07:00
2026-07-27 12:21:14 -07:00
2026-07-22 11:42:34 -07:00
2026-07-24 00:25:35 -07:00
2026-07-27 12:06:23 -07:00
2026-07-23 18:35:31 -07:00
2026-07-27 15:41:23 -07:00
2026-07-27 01:14:33 -07:00
2026-07-23 18:35:31 -07:00
2026-07-27 12:06:23 -07:00
2026-07-13 00:26:22 -07:00
2026-07-23 18:35:31 -07:00
2026-07-13 00:26:22 -07:00
2026-07-26 14:18:21 -07:00
2026-07-27 15:41:23 -07:00
2026-07-26 15:05:39 -07:00
2026-07-23 18:35:31 -07:00
2026-07-23 18:35:31 -07:00
2026-05-16 14:36:46 -07:00
2026-07-13 00:26:22 -07:00
2026-07-23 18:35:31 -07:00
2026-07-20 03:18:28 -07:00
2026-07-23 18:35:31 -07:00
2026-07-26 20:31:52 -07:00
2026-07-23 18:35:31 -07:00
2026-07-25 23:34:17 -07:00
2026-07-24 12:53:18 -07:00
2026-07-27 15:41:23 -07:00
2026-07-10 00:11:27 -07:00
2026-07-23 18:35:31 -07:00
2026-07-27 01:14:33 -07:00
2026-07-27 15:55:31 -07:00
2026-07-27 15:34:20 -07:00
2026-07-27 01:14:33 -07:00
2026-07-23 18:35:31 -07:00
2026-07-23 18:35:31 -07:00
2026-07-26 20:31:58 -07:00
2026-07-26 19:46:29 -07:00
2026-07-19 21:31:36 -07:00
2026-07-23 18:35:31 -07:00
2026-07-23 18:35:31 -07:00
2026-07-27 12:31:37 -07:00
2026-07-23 18:35:31 -07:00
2026-07-23 18:35:31 -07:00
2026-05-30 02:46:28 -07:00
2026-07-23 18:35:31 -07:00
2026-07-27 12:21:14 -07:00
2026-07-23 18:35:31 -07:00
2026-07-23 19:05:22 -07:00
2026-07-27 01:14:33 -07:00
2026-07-23 18:35:31 -07:00
2026-07-23 18:35:31 -07:00
2026-07-27 15:55:31 -07:00
2026-07-25 02:30:59 -07:00
2026-07-26 15:52:03 -07:00
2026-07-27 15:34:20 -07:00
2026-07-21 18:23:20 -07:00
2026-07-24 15:53:22 -07:00
2026-07-23 18:35:31 -07:00
2026-07-26 13:14:57 -07:00
2026-05-30 13:26:48 -07:00
2026-07-27 12:31:37 -07:00
2026-06-29 22:38:29 -07:00
2026-07-26 15:24:26 -07:00
2026-07-23 18:35:31 -07:00
2026-07-20 03:18:24 -07:00
2026-07-25 19:31:44 -07:00
2026-07-24 19:54:25 -07:00
2026-07-23 18:35:31 -07:00
2026-07-27 01:14:33 -07:00
2026-07-20 01:14:17 -07:00
2026-07-23 18:35:31 -07:00
2026-07-23 18:35:31 -07:00
2026-06-17 16:20:37 -07:00
2026-06-17 16:20:37 -07:00
2026-05-18 14:09:21 -07:00
2026-05-18 14:09:21 -07:00
2026-05-18 14:09:21 -07:00
2026-07-23 06:22:56 -07:00
2026-07-23 06:22:56 -07:00
2026-07-23 18:35:31 -07:00
2026-07-23 18:35:31 -07:00
2026-06-22 18:01:37 -07:00
2026-06-22 18:01:37 -07:00
2026-07-17 15:27:39 -07:00
2026-07-17 15:27:39 -07:00
2026-07-24 19:54:25 -07:00
2026-07-24 19:54:25 -07:00
2026-07-26 00:13:48 -07:00
2026-07-26 00:13:48 -07:00
2026-07-26 00:13:48 -07:00
2026-04-19 12:09:32 -07:00
2026-05-15 23:52:37 -07:00
2026-06-30 11:31:55 -07:00
2026-06-30 11:31:55 -07:00
2026-07-27 01:14:33 -07:00
2026-07-27 01:14:33 -07:00
2026-06-30 11:31:55 -07:00
2026-07-22 17:17:59 -07:00
2026-07-22 17:17:59 -07:00
2026-05-30 15:26:11 -04:00
2026-06-29 22:38:29 -07:00
2026-07-16 23:10:40 -07:00
2026-06-19 17:14:55 -07:00
2026-06-29 22:38:29 -07:00
2026-07-23 18:35:31 -07:00
2026-07-23 18:35:31 -07:00
2026-07-27 12:31:37 -07:00
2026-07-23 18:35:31 -07:00
2026-05-30 09:04:52 -07:00
2026-05-30 09:04:52 -07:00
2026-07-18 23:01:29 -07:00
2026-07-23 18:35:31 -07:00
2026-07-23 18:35:31 -07:00
2026-07-13 01:10:38 -07:00
2026-07-23 18:35:31 -07:00
2026-07-23 18:35:31 -07:00
2026-07-10 17:52:50 -07:00
2026-07-15 15:23:35 -07:00
2026-07-15 15:23:35 -07:00
2026-07-06 16:43:05 -07:00
2026-07-06 16:43:05 -07:00
2026-05-30 09:04:52 -07:00
2026-05-30 09:04:52 -07:00
2026-07-27 01:14:33 -07:00
2026-07-20 19:47:58 -07:00
2026-07-26 01:39:49 -07:00
2026-07-27 01:14:33 -07:00
2026-06-24 00:17:49 -07:00
2026-06-24 00:17:49 -07:00
2026-06-17 16:08:14 -07:00
2026-07-13 01:10:38 -07:00
2026-07-25 22:28:07 -07:00
2026-07-25 22:28:07 -07:00
2026-06-24 21:07:15 -04:00
2026-06-29 22:38:29 -07:00
2026-07-23 18:03:43 -07:00
2026-07-23 18:03:43 -07:00
2026-07-23 18:35:31 -07:00
2026-07-23 18:35:31 -07:00
2026-07-25 04:04:19 -07:00
2026-07-25 04:04:19 -07:00
2026-07-25 04:04:19 -07:00
2026-07-25 04:04:19 -07:00
2026-07-23 18:35:31 -07:00
2026-07-23 18:35:31 -07:00
2026-07-26 02:32:05 -07:00
2026-07-26 02:32:05 -07:00
2026-07-26 02:32:05 -07:00
2026-07-26 02:32:05 -07:00
2026-06-29 22:38:29 -07:00
2026-07-09 16:24:20 -07:00
2026-07-09 16:24:20 -07:00
2026-07-20 14:34:53 -07:00
2026-07-23 18:35:31 -07:00
2026-07-23 18:35:31 -07:00
2026-06-21 18:51:44 -07:00
2026-07-14 01:55:04 -07:00
2026-07-10 17:27:47 -07:00
2026-07-10 17:27:47 -07:00
2026-05-21 21:52:26 -07:00
2026-05-21 21:52:26 -07:00
2026-05-21 21:52:26 -07:00
2026-05-21 21:52:26 -07:00
2026-07-06 20:21:58 -07:00
2026-07-06 20:21:58 -07:00
2026-07-25 03:11:59 -07:00
2026-07-25 03:11:59 -07:00
2026-07-23 18:35:31 -07:00
2026-07-23 18:35:31 -07:00
2026-07-09 02:13:13 -07:00
2026-07-11 21:03:04 -07:00
2026-07-11 21:03:04 -07:00
2026-07-23 18:35:31 -07:00
2026-07-23 18:35:31 -07:00
2026-07-21 17:44:40 -07:00
2026-07-22 18:52:37 -07:00
2026-07-17 15:27:39 -07:00
2026-07-17 15:27:39 -07:00
2026-07-09 23:00:01 -07:00
2026-05-30 13:09:17 -07:00
2026-07-23 18:35:31 -07:00
2026-05-27 00:47:01 -07:00
2026-07-05 02:53:17 -07:00
2026-07-23 18:35:31 -07:00
2026-07-06 15:12:56 -07:00
2026-05-26 20:56:11 -07:00
2026-07-22 18:52:37 -07:00
2026-07-09 23:00:01 -07:00
2026-07-21 17:44:40 -07:00
2026-07-22 18:52:37 -07:00
2026-05-31 10:11:51 -07:00
2026-05-31 10:11:51 -07:00
2026-05-06 23:30:03 -07:00
2026-06-29 22:38:29 -07:00
2026-07-11 02:03:14 -07:00
2026-07-09 22:37:40 -04:00
2026-07-11 02:03:14 -07:00
2026-07-24 00:27:40 -07:00
2026-07-24 00:27:40 -07:00
2026-07-25 22:28:07 -07:00
2026-07-25 22:28:07 -07:00
2026-05-30 11:01:09 -07:00
2026-07-23 19:00:00 -07:00
2026-07-23 19:00:00 -07:00
2026-07-11 02:05:58 -07:00
2026-07-04 21:31:51 -07:00
2026-07-04 21:31:51 -07:00
2026-06-29 18:02:10 -07:00
2026-06-03 12:25:54 -07:00
2026-06-03 12:25:54 -07:00
2026-07-23 18:35:31 -07:00
2026-07-02 11:24:07 -07:00
2026-07-23 18:35:31 -07:00
2026-07-26 00:41:03 -07:00
2026-07-23 18:35:31 -07:00
2026-07-23 18:35:31 -07:00
2026-05-29 16:06:33 -07:00
2026-07-19 17:31:34 -07:00
2026-07-14 15:23:06 -07:00
2026-06-29 00:32:36 -07:00
2026-06-29 22:38:29 -07:00
2026-07-12 23:19:15 -07:00
2026-07-19 16:04:05 -07:00