Skip to content

Node-based terminal manager for AI coding agents — tmux-backed terminals and parallel agent sessions as draggable nodes on an infinite pan/zoom canvas. macOS, Linux, and a browser Server Edition.

fix(test): type the codex hook fixtures as command handlers

enes78d4439cec61
diff --git a/src/core/agents/hooks/codex.test.ts b/src/core/agents/hooks/codex.test.ts
index aef1d791e..5fcb52ee8 100644
--- a/src/core/agents/hooks/codex.test.ts
+++ b/src/core/agents/hooks/codex.test.ts
@@ -193,7 +193,7 @@ describe('buildCodexHooksAndTrust', () => {
const stale = {
hooks: [
{
- type: 'command',
+ type: 'command' as const,
command:
"if [ -x 'C:\\Users\\u\\.nodeterm\\agent-hooks\\codex.sh' ]; then /bin/sh 'C:\\Users\\u\\.nodeterm\\agent-hooks\\codex.sh'; fi"
}
@@ -214,7 +214,7 @@ describe('buildCodexHooksAndTrust', () => {
// copied between machines) is repaired the same way rather than accumulating both.
it('replaces a stray Windows entry on a POSIX install', () => {
const stale = {
- hooks: [{ type: 'command', command: '"/home/u/.nodeterm/agent-hooks/codex-hook.cmd"' }]
+ hooks: [{ type: 'command' as const, command: '"/home/u/.nodeterm/agent-hooks/codex-hook.cmd"' }]
}
const command = buildManagedCommand('/home/u/.nodeterm/agent-hooks/codex.sh', 'linux')
const built = buildCodexHooksAndTrust({ hooks: { Stop: [stale] } }, command, '/h/hooks.json')!