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.

test(hooks): read fixture content before inspecting links

review488466f3bd1f
diff --git a/src/core/agents/hooks/settings-file.test.ts b/src/core/agents/hooks/settings-file.test.ts
index f1c08e414..289db7df4 100644
--- a/src/core/agents/hooks/settings-file.test.ts
+++ b/src/core/agents/hooks/settings-file.test.ts
@@ -146,9 +146,9 @@ describe.skipIf(process.platform === 'win32')('remote link aliases', () => {
const run: SettingsRunner = (cmd, input) => shell(`readlink() { [ "$#" -eq 1 ] || return 1; command readlink "$1"; }
${cmd}`, input)
expect(await updateRemoteSettingsFile(file, run, merge)).toBe(true)
+ expect(JSON.parse(readFileSync(file, 'utf8')).model).toBe('keep')
expect(lstatSync(file).isSymbolicLink()).toBe(true)
expect(lstatSync(path.join(real, 'middle')).isSymbolicLink()).toBe(true)
- expect(JSON.parse(readFileSync(file, 'utf8')).model).toBe('keep')
})
it('refuses a failed readlink and a newline target without replacing the link', async () => {