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-06-23 11:31:41 -07:00
2026-07-14 00:15:34 -07:00
2026-07-17 12:47:04 -07:00
2026-07-14 00:15:34 -07:00
2026-07-14 00:15:34 -07:00
2026-07-14 00:15:34 -07:00
2026-07-14 00:15:34 -07:00
2026-05-30 21:20:37 -07:00
2026-07-20 17:10:07 -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-05-31 04:21:57 -07:00
2026-07-11 21:43:20 -07:00
2026-07-11 01:31:13 -07:00
2026-07-16 19:11:34 -07:00
2026-07-16 19:11:34 -07:00
2026-06-28 22:33:07 -07:00
2026-06-02 18:10:31 -07:00
2026-07-12 23:19:15 -07:00
2026-07-12 23:19:15 -07:00
2026-05-29 16:06:33 -07:00
2026-07-24 18:30:54 -07:00
2026-07-24 18:30:54 -07:00
2026-06-02 18:10:31 -07:00
2026-07-18 15:16:43 -07:00
2026-07-18 15:16:43 -07:00
2026-05-11 14:20:08 -07:00
2026-05-25 14:54:47 -07:00
2026-07-26 12:55:45 -07:00
2026-07-15 14:30:33 -07:00
2026-07-26 12:55:45 -07:00
2026-07-23 19:12:54 -07:00
2026-07-23 19:12:54 -07:00
2026-07-20 22:55:22 -07:00
2026-07-20 22:55:22 -07:00
2026-07-21 14:55:14 -07:00
2026-07-21 14:55:14 -07:00
2026-05-30 11:29:01 -07:00
2026-05-30 11:29:01 -07:00
2026-07-06 02:12:32 -07:00
2026-06-16 23:11:27 -07:00
2026-06-19 17:14:55 -07:00
2026-06-19 17:14:55 -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 01:14:33 -07:00
2026-07-27 01:14:33 -07:00
2026-07-27 01:14:33 -07:00
2026-07-27 01:14:33 -07:00
2026-07-23 18:35:31 -07:00
2026-07-23 00:13:43 -07:00
2026-07-23 00:13:43 -07:00
2026-07-06 16:43:43 -07:00
2026-07-20 03:18:24 -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-23 18:35:31 -07:00
2026-07-23 18:35:31 -07:00
2026-07-22 18:25:05 -07:00
2026-07-23 18:35:31 -07:00
2026-07-23 18:35:31 -07:00
2026-07-16 13:26:15 -07:00
2026-07-23 18:35:31 -07:00
2026-07-23 00:27:06 -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-06-29 22:38:29 -07:00
2026-07-23 18:35:31 -07:00
2026-06-29 22:38:29 -07:00
2026-07-24 18:18:40 -07:00
2026-05-20 01:35:56 -07:00
2026-05-20 01:35:56 -07:00
2026-07-10 13:48:35 -07:00
2026-07-10 13:48:35 -07:00
2026-07-24 17:37:01 -07:00
2026-07-24 17:37:01 -07:00
2026-07-24 17:37:01 -07:00
2026-06-10 21:14:53 -07:00
2026-07-24 17:37:01 -07:00
2026-07-24 17:37:01 -07:00
2026-07-24 17:37:01 -07:00
2026-07-26 22:39:32 -07:00
2026-07-26 22:39:32 -07:00
2026-07-26 22:39:32 -07:00
2026-07-26 22:39:32 -07:00
2026-07-25 19:31:44 -07:00
2026-07-25 19:31:44 -07:00
2026-05-21 02:49:16 -04:00
2026-05-21 02:49:16 -04:00
2026-07-25 22:48:53 -07:00
2026-07-25 22:48:53 -07:00
2026-07-25 22:48:53 -07:00
2026-07-23 18:35:31 -07:00
2026-06-28 18:05:29 -07:00
2026-06-29 22:38:29 -07:00
2026-07-10 00:11:27 -07:00
2026-06-29 22:38:29 -07:00
2026-06-29 22:38:29 -07:00
2026-07-16 00:26:51 -07:00
2026-07-27 01:14:33 -07:00
2026-07-27 01:14:33 -07:00
2026-07-09 22:23:56 -07:00
2026-07-09 22:23:56 -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-06-29 22:38:29 -07:00
2026-06-29 12:27:30 -07:00
2026-07-23 18:35:31 -07:00
2026-07-23 18:35:31 -07:00
2026-04-26 21:42:06 -07:00
2026-07-05 01:15:16 -07:00
2026-07-05 01:15:16 -07:00
2026-07-23 23:31:10 -07:00
2026-07-26 20:31:58 -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-23 18:35:31 -07:00
2026-07-09 19:30:23 -07:00
2026-05-30 02:46:28 -07:00
2026-07-23 18:35:31 -07:00
2026-07-23 18:35:31 -07:00
2026-05-08 14:17:50 -07:00
2026-06-02 18:10:31 -07:00
2026-07-09 02:13:13 -07:00
2026-07-09 02:13:13 -07:00
2026-07-09 02:13:13 -07:00
2026-07-17 15:27:39 -07:00
2026-07-17 15:27:39 -07:00
2026-07-12 18:15:15 -07:00
2026-07-15 15:23:35 -07:00
2026-07-15 15:23:35 -07:00
2026-07-15 15:23:35 -07:00
2026-07-15 15:23:35 -07:00
2026-07-15 15:23:35 -07:00
2026-07-15 15:23:35 -07:00
2026-07-15 15:23:35 -07:00
2026-07-15 15:23:35 -07:00
2026-07-15 15:23:35 -07:00
2026-07-12 18:15:15 -07:00
2026-07-15 15:23:35 -07:00
2026-07-15 15:23:35 -07:00
2026-07-15 15:23:35 -07:00
2026-07-12 18:15:15 -07:00
2026-07-12 18:15:15 -07:00
2026-07-15 15:23:35 -07:00
2026-07-12 18:15:15 -07:00
2026-07-15 15:23:35 -07:00
2026-07-15 15:23:35 -07:00
2026-07-15 15:23:35 -07:00
2026-07-15 15:23:35 -07:00
2026-07-15 15:23:35 -07:00
2026-07-15 15:23:35 -07:00
2026-07-15 15:23:35 -07:00
2026-07-12 18:15:15 -07:00
2026-07-12 21:34:59 -07:00
2026-07-15 15:23:35 -07:00
2026-07-15 15:23:35 -07:00
2026-07-15 15:23:35 -07:00
2026-07-15 15:23:35 -07:00
2026-07-15 15:23:35 -07:00
2026-07-15 15:23:35 -07:00
2026-07-15 15:23:35 -07:00
2026-07-15 15:23:35 -07:00
2026-07-15 15:23:35 -07:00
2026-07-15 15:23:35 -07:00
2026-07-15 15:23:35 -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 01:14:33 -07:00
2026-07-27 01:14:33 -07:00
2026-07-27 01:14:33 -07:00
2026-07-27 01:14:33 -07:00
2026-07-18 15:16:43 -07:00
2026-07-09 17:08:35 -07:00
2026-07-18 15:16:43 -07:00
2026-06-15 19:41:45 -07:00
2026-06-28 15:08:13 -07:00
2026-06-17 16:08:14 -07:00
2026-07-11 21:21:18 -07:00
2026-07-11 21:21:18 -07:00
2026-06-29 22:38:29 -07:00
2026-07-18 15:16:43 -07:00
2026-07-08 14:34:16 -07:00
2026-06-29 22:38:29 -07:00
2026-07-10 17:27:47 -07:00
2026-07-19 17:31:34 -07:00
2026-07-14 00:15:34 -07:00
2026-07-20 03:18:24 -07:00
2026-07-25 02:38:20 -07:00
2026-07-25 02:38:20 -07:00
2026-07-25 02:38:20 -07:00
2026-07-25 02:38:20 -07:00
2026-07-25 02:38:20 -07:00
2026-07-10 17:27:47 -07:00
2026-07-10 17:27:47 -07:00
2026-07-02 18:41:23 -04:00
2026-06-19 17:14:55 -07:00
2026-07-27 15:55:31 -07:00
2026-07-27 15:55:31 -07:00
2026-07-24 14:42:04 -07:00
2026-07-24 14:42:04 -07:00
2026-06-30 00:28:07 -07:00
2026-06-30 00:28:07 -07:00
2026-07-27 01:14:33 -07:00
2026-07-27 01:14:33 -07:00
2026-05-31 06:42:33 -07:00
2026-05-15 12:32:07 -07:00
2026-06-29 22:38:29 -07:00
2026-07-06 02:12:32 -07:00
2026-07-23 18:35:31 -07:00
2026-07-23 18:35:31 -07:00
2026-07-20 01:14:17 -07:00
2026-07-20 01:14:17 -07:00
2026-07-15 19:14:22 -07:00
2026-07-15 19:14:22 -07:00
2026-07-25 15:38:35 -07:00
2026-07-23 18:35:31 -07:00
2026-07-23 18:35:31 -07:00
2026-07-25 23:34:17 -07:00
2026-07-03 19:40:45 -04:00
2026-07-25 15:38:35 -07:00
2026-06-29 22:38:29 -07:00
2026-06-17 16:08:14 -07:00
2026-07-23 18:35:31 -07:00
2026-07-27 01:43:44 -07:00
2026-07-27 01:43:44 -07:00
2026-07-22 18:25:05 -07:00
2026-07-22 18:25:05 -07:00
2026-07-27 12:31:37 -07:00
2026-06-14 01:48:26 -07:00
2026-07-22 18:25:05 -07:00
2026-07-23 18:35:31 -07:00
2026-06-29 22:38:29 -07:00
2026-07-27 12:31:37 -07:00
2026-07-27 01:43:44 -07:00
2026-07-27 01:43:44 -07:00
2026-07-15 15:23:35 -07:00
2026-07-15 15:23:35 -07:00
2026-07-15 15:23:35 -07:00
2026-07-15 15:23:35 -07:00
2026-07-15 15:23:35 -07:00
2026-07-15 15:23:35 -07:00
2026-07-15 15:23:35 -07:00
2026-07-15 15:23:35 -07:00
2026-07-15 15:23:35 -07:00
2026-07-23 18:03:43 -07:00
2026-07-23 18:03:43 -07:00
2026-07-15 19:09:14 -07:00
2026-07-15 22:09:37 -07:00
2026-07-27 01:14:33 -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-19 17:31:34 -07:00
2026-07-19 17:31:34 -07:00
2026-07-25 19:31:44 -07:00
2026-07-25 19:31:44 -07:00
2026-05-01 13:25:22 -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-23 18:35:31 -07:00
2026-07-04 21:31:51 -07:00
2026-07-23 18:59:03 -07:00
2026-07-23 18:59:03 -07:00
2026-04-09 12:28:59 -07:00
2026-07-20 03:18:24 -07:00
2026-07-20 03:18:24 -07:00
2026-07-14 15:23:06 -07:00
2026-07-14 15:23:06 -07:00
2026-07-23 18:35:31 -07:00
2026-07-24 12:48:18 -07:00
2026-07-24 12:48:18 -07:00
2026-07-17 16:16:17 -07:00
2026-07-23 18:35:31 -07:00
2026-07-19 20:25:52 -07:00
2026-07-08 14:34:16 -07:00
2026-07-08 14:34:16 -07:00
2026-07-20 17:11:23 -07:00
2026-07-20 17:11:23 -07:00
2026-07-23 18:04:15 -07:00
2026-07-23 18:04:15 -07:00
2026-07-09 16:24:20 -07:00
2026-07-23 18:35:31 -07:00
2026-06-28 11:38:23 -07:00
2026-06-28 11:38:23 -07:00
2026-06-28 11:38:23 -07:00
2026-07-23 19:00:00 -07:00
2026-06-28 11:38:23 -07:00
2026-07-23 19:00:00 -07:00
2026-07-23 19:00:00 -07:00
2026-06-28 11:38:23 -07:00
2026-07-03 17:21:50 -07:00
2026-05-08 10:50:43 -07:00
2026-05-31 09:29:44 -07:00
2026-05-31 09:29:44 -07:00
2026-05-21 13:22:37 -07:00
2026-05-21 13:22:37 -07:00
2026-07-25 05:11:03 -07:00
2026-07-13 05:40:02 -07:00
2026-07-13 05:40:02 -07:00
2026-07-13 05:40:02 -07:00
2026-07-22 20:41:30 -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-24 00:39:32 -07:00
2026-06-23 11:07:49 -07:00
2026-07-23 18:35:31 -07:00
2026-06-15 19:58:55 -07:00
2026-07-13 15:47:17 -07:00
2026-07-23 18:35:31 -07:00
2026-07-25 03:33:10 -07:00
2026-07-25 03:33:10 -07:00
2026-07-23 18:35:31 -07:00
2026-07-23 18:35:31 -07:00
2026-07-12 23:43:33 -07:00
2026-07-25 05:11:03 -07:00
2026-07-25 05:11:03 -07:00
2026-06-14 23:23:31 -07:00
2026-05-14 00:42:07 -07:00
2026-06-29 22:38:29 -07:00
2026-07-24 00:39:32 -07:00
2026-07-24 00:39:32 -07:00
2026-07-26 00:41:03 -07:00
2026-07-13 01:10:38 -07:00
2026-07-10 20:52:24 -07:00
2026-06-19 17:14:55 -07:00
2026-06-19 17:14:55 -07:00
2026-06-07 19:51:36 -07:00
2026-06-07 19:51:36 -07:00
2026-07-26 00:41:03 -07:00
2026-07-23 19:12:54 -07:00
2026-07-24 15:31:23 -07:00
2026-07-25 05:11:03 -07:00
2026-07-15 15:23:35 -07:00
2026-07-25 23:34:17 -07:00
2026-07-27 01:14:33 -07:00
2026-07-15 15:23:35 -07:00