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(chat): expect the typed flag on the /rewind send

Paul Robertsond73209125d80
diff --git a/src/renderer/nodes/ChatPanel.live.test.tsx b/src/renderer/nodes/ChatPanel.live.test.tsx
index 90067c222..049a88b19 100644
--- a/src/renderer/nodes/ChatPanel.live.test.tsx
+++ b/src/renderer/nodes/ChatPanel.live.test.tsx
@@ -482,7 +482,7 @@ describe('ChatPanel — a sent built-in that opens a dialog in the TUI', () => {
it('/rewind is sent, THEN the view flips to the terminal (the dialog is there, and the next Enter would answer it)', async () => {
const onShowTerminal = vi.fn(() => {
// The flip happens only after the pane accepted the text.
- expect(sendText).toHaveBeenCalledWith(NODE, '/rewind')
+ expect(sendText).toHaveBeenCalledWith(NODE, '/rewind', { typed: true })
})
await hook('done')
await renderWith(onShowTerminal)