Skip to content

Commit 949238c

Browse files
committed
Apply prettier to files the main merge left unformatted
1 parent e0561c8 commit 949238c

2 files changed

Lines changed: 18 additions & 21 deletions

File tree

docs/TUI.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,7 @@ assistant/tool rows are unchanged.
6767
Parent live reasoning paints through the existing thinking row — never a
6868
third mid-turn stream lane. While `inference.thinking.delta` arrives,
6969
`thinkingLivePreviewLines` (`src/tui/thinking.ts`) wraps the newest revealed
70-
prose into a hard-capped inset paragraph (`LIVE_THINKING_MAX_LINES`, currently
71-
10) at a bounded reveal rate (`REVEAL_CHARS_PER_SEC`). When the turn moves on
70+
prose into a hard-capped inset paragraph (`LIVE_THINKING_MAX_LINES`, currently 10) at a bounded reveal rate (`REVEAL_CHARS_PER_SEC`). When the turn moves on
7271
(assistant text, a tool call, or settle), the row collapses to its opening
7372
clause with the rest behind expand. Mid-turn thinking bursts fold onto that
7473
same one row per turn (`reasoning-fold`); `inference.text.delta` grows the

src/tui/runtime-bridge.test.ts

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -592,47 +592,45 @@ describe("attachSessionBridge", () => {
592592
terminal: { columns: 80, rows: 24 },
593593
wireKeys: false,
594594
run: "idle",
595-
})
596-
const bridge = attachSessionBridge(shell, createRecordingPort())
595+
});
596+
const bridge = attachSessionBridge(shell, createRecordingPort());
597597
try {
598-
bridge.handle({ type: "inference.start", data: {} })
598+
bridge.handle({ type: "inference.start", data: {} });
599599
bridge.handle({
600600
type: "inference.thinking.delta",
601601
data: { token: "planning the reply" },
602-
})
602+
});
603603
bridge.handle({
604604
type: "inference.tool_call.end",
605605
data: { name: "run_shell", callId: "c1", arguments: "{}" },
606-
})
606+
});
607607
bridge.handle({
608608
type: "tool.done",
609609
data: { result: { callId: "c1", content: "ok", isError: false } },
610-
})
610+
});
611611
bridge.handle({
612612
type: "inference.text.delta",
613613
data: { token: "Here is " },
614-
})
614+
});
615615
bridge.handle({
616616
type: "inference.text.delta",
617617
data: { token: "the answer." },
618-
})
618+
});
619619

620-
const assistant = shell.streamLog.filter((r) => r.role === "assistant")
621-
expect(assistant).toHaveLength(1)
622-
expect(assistant[0]?.streaming).toBe(true)
623-
expect(assistant[0]?.text).toBe("Here is the answer.")
620+
const assistant = shell.streamLog.filter((r) => r.role === "assistant");
621+
expect(assistant).toHaveLength(1);
622+
expect(assistant[0]?.streaming).toBe(true);
623+
expect(assistant[0]?.text).toBe("Here is the answer.");
624624
// Still one thinking row for the turn — no third mid-turn stream lane.
625-
expect(
626-
shell.streamLog.filter((r) => r.meta === "thinking"),
627-
).toHaveLength(1)
625+
expect(shell.streamLog.filter((r) => r.meta === "thinking")).toHaveLength(1);
628626
} finally {
629-
bridge.dispose()
630-
shell.dispose()
627+
bridge.dispose();
628+
shell.dispose();
631629
}
632630
},
633631
{ width: 80, height: 24 },
634-
)
635-
})
632+
);
633+
});
636634

637635
test("thinking deltas coalesce and never become plain system rows", async () => {
638636
await withTestRenderer(

0 commit comments

Comments
 (0)