Brennan Benson
0ac2e77db1
fix(agent-hooks): default-form managed hook vars so a static precheck cannot reject them ( #14994 )
...
The managed hook command embedded a bare $SYSTEMROOT. Grok loads Claude's
settings.json hooks and statically prechecks env vars across the whole command
string, so the reference inside the never-taken Windows branch made it refuse
the hook on macOS on every event:
hook not executed: required env var(s) not set: ${SYSTEMROOT}
Grok fails these open, and Orca installs Grok's native hook separately, so no
status was lost -- the symptom is a swallowed failure line per tool call.
$VAR and ${VAR-} expand identically in POSIX shells absent set -u, so this has
no execution-time effect; only the static precheck observes it. Verified in Git
Bash on Windows that both guard forms resolve identically ($SYSTEMROOT is set
there and uppercase is the correct spelling -- $SystemRoot is undefined).
Also converts the three bare $HOME references so the regression test can assert
zero bare variable references with no exemption. A $SYSTEMROOT-specific check
would not have caught this class of bug being introduced elsewhere.
2026-08-16 21:58:28 -07:00
..
2026-07-13 00:26:22 -07:00
2026-07-26 22:08:38 -07:00
2026-07-23 18:35:31 -07:00
2026-07-23 18:35:31 -07:00
2026-08-13 22:48:24 -07:00
2026-08-13 22:48:24 -07:00
2026-08-13 22:48:24 -07:00
2026-08-13 22:48:24 -07:00
2026-08-13 22:48:24 -07:00
2026-06-15 19:58:55 -07:00
2026-07-21 20:06:31 -07:00
2026-07-20 14:34:53 -07:00
2026-07-26 22:08:38 -07:00
2026-07-26 22:08:38 -07:00
2026-08-16 20:47:02 -07:00
2026-08-16 20:47:02 -07:00
2026-08-11 17:06:55 -07:00
2026-08-09 16:35:57 -07:00
2026-07-29 20:19:18 -07:00
2026-07-29 20:19:18 -07:00
2026-08-09 16:35:57 -07:00
2026-08-14 12:50:35 -07:00
2026-08-16 21:58:28 -07:00
2026-08-16 20:48:26 -07:00
2026-07-29 20:19:18 -07:00
2026-08-13 22:48:24 -07:00
2026-08-10 16:34:15 -07:00
2026-08-13 22:48:24 -07:00
2026-08-10 16:34:15 -07:00
2026-07-29 20:19:18 -07:00
2026-08-13 22:48:24 -07:00
2026-07-20 12:18:57 -07:00
2026-08-07 14:06:29 -07:00
2026-08-12 21:32:26 -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-08-07 14:06:29 -07:00
2026-08-11 18:19:43 -07:00
2026-08-12 21:32:26 -07:00
2026-08-12 21:32:26 -07:00
2026-08-10 16:34:15 -07:00
2026-08-10 16:34:15 -07:00
2026-08-10 16:34:15 -07:00
2026-08-16 20:48:26 -07:00
2026-07-21 00:36:42 -07:00
2026-08-04 15:03:57 -07:00
2026-08-04 15:03:57 -07:00
2026-07-23 18:35:31 -07:00
2026-07-23 18:35:31 -07:00
2026-06-10 16:41:22 -04:00
2026-08-14 12:50:35 -07:00
2026-08-12 21:32:26 -07:00
2026-08-03 17:22:43 -07:00
2026-08-13 22:48:24 -07:00
2026-08-16 21:58:28 -07:00
2026-08-07 20:36:23 -07:00
2026-08-15 00:54:20 -07:00
2026-07-29 11:31:35 -07:00
2026-08-15 00:54:20 -07:00
2026-08-15 00:54:20 -07:00
2026-07-21 00:36:42 -07:00
2026-08-15 00:54:20 -07:00
2026-08-15 00:54:20 -07:00
2026-07-27 23:50:25 -07:00
2026-08-15 00:54:20 -07:00
2026-08-15 00:54:20 -07:00
2026-08-15 00:54:20 -07:00
2026-08-15 00:54:20 -07:00
2026-08-15 00:54:20 -07:00
2026-07-10 13:16:55 -07:00
2026-08-15 00:54:20 -07:00
2026-08-15 00:54:20 -07:00
2026-08-16 20:47:02 -07:00
2026-08-15 00:54:20 -07:00
2026-08-15 00:54:20 -07:00
2026-08-15 00:54:20 -07:00
2026-08-15 00:54:20 -07:00
2026-08-15 00:54:20 -07:00
2026-08-15 00:54:20 -07:00
2026-08-15 00:54:20 -07:00
2026-08-15 00:54:20 -07:00
2026-07-14 00:15:34 -07:00
2026-08-15 00:54:20 -07:00
2026-08-15 00:54:20 -07:00
2026-08-15 00:54:20 -07:00
2026-08-15 00:54:20 -07:00
2026-08-01 23:43:20 -07:00
2026-08-15 00:54:20 -07:00
2026-08-16 20:47:02 -07:00
2026-08-16 20:48:26 -07:00
2026-07-25 02:30:59 -07:00
2026-07-25 02:30:59 -07:00
2026-07-29 20:19:18 -07:00
2026-08-09 12:53:13 -07:00
2026-08-09 12:53:13 -07:00
2026-08-09 12:53:13 -07:00
2026-07-10 00:19:45 -07:00
2026-07-29 20:19:18 -07:00
2026-08-12 21:32:26 -07:00
2026-08-11 22:34:54 -07:00
2026-08-08 02:03:52 -07:00
2026-08-08 02:03:52 -07:00
2026-07-10 00:19:45 -07:00
2026-07-10 00:19:45 -07:00
2026-08-03 16:17:00 -07:00
2026-08-03 16:17:00 -07:00
2026-07-29 20:19:18 -07:00