fix(agent): address inspection and staging review feedback

This commit is contained in:
Aamer Akhter committed 2026-10-24 22:37:18 -04:00
1 parent a24b0ec7bb
commit 4c2f050a96
24 files changed
+517 -116

No files matched your search

+10
View File
@@ -326,3 +326,13 @@ describe('sendInput line breaks', () => {
expect(answer.ran[1]).toMatch(/ send-keys -t "codeman-abc12345" Enter$/);
});
});
it('terminates literal operands in both sendInputToPane branches', async () => {
const { readFile } = await import('node:fs/promises');
const src = await readFile(new URL('../src/tmux-manager.ts', import.meta.url), 'utf8');
const start = src.indexOf(' sendInputToPane(');
const body = src.slice(start, src.indexOf('\n }\n', start));
const literal = body.match(/send-keys[^`\n]*-l[^`\n]*/g) ?? [];
expect(literal).toHaveLength(2);
for (const command of literal) expect(command).toContain(' -l -- ');
});