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: close the two CodeQL findings in the new test files

review054969dfd241
diff --git a/src/main/lazy-deps.source.test.ts b/src/main/lazy-deps.source.test.ts
index 9ecfa8c89..fbdcda429 100644
--- a/src/main/lazy-deps.source.test.ts
+++ b/src/main/lazy-deps.source.test.ts
@@ -34,7 +34,7 @@ describe('lazily loaded main-process dependencies', () => {
for (const dep of LAZY) {
it(`no shipped module value-imports '${dep}'`, () => {
- const esc = dep.replace(/[-/]/g, '\\$&')
+ const esc = dep.replace(/[.*+?^${}()|[\]\\/-]/g, '\\$&')
// `import x from`, `import { a } from`, `import 'dep'`, `export … from` — but not `import type`.
// `[^'"]` (not `[^;]`: this codebase has no semicolons) keeps a match inside one statement —
// it cannot run past an earlier import's own specifier — while still spanning a multi-line `{ … }`.
diff --git a/src/main/remote/relay-advertise.test.ts b/src/main/remote/relay-advertise.test.ts
index ac673c8fd..549cd9120 100644
--- a/src/main/remote/relay-advertise.test.ts
+++ b/src/main/remote/relay-advertise.test.ts
@@ -73,7 +73,7 @@ describe('relay advertisement — skip unchanged rewrites', () => {
const ad = createRelayAdvertiser(file)
await ad.write(AD)
await ad.remove()
- await expect(fs.access(file)).rejects.toThrow()
+ await expect(fs.readFile(file, 'utf8')).rejects.toMatchObject({ code: 'ENOENT' })
await ad.write(AD)
expect(atomic.writes).toBe(2)
expect(JSON.parse(await fs.readFile(file, 'utf8'))).toEqual(AD)