@@ -90,7 +90,7 @@ function findConversationLogNodeOrNull(node: Node): ContainerNode | null {
9090 if (
9191 node.type === "vstack" &&
9292 node.props.overflow === "scroll" &&
93- node.props.scrollbar === true
93+ typeof node.props.onScroll === "function"
9494 ) {
9595 return node;
9696 }
@@ -1872,6 +1872,24 @@ describe("ui rendering", () => {
18721872 }
18731873 });
18741874
1875+ test("renderBaseLayout hides the conversation log scrollbar without disabling scrolling", () => {
1876+ const state = createTestState();
1877+ const controller = createInputController(state);
1878+
1879+ try {
1880+ const conversationLog = findConversationLogNode(
1881+ renderBaseLayout(state, 80, controller),
1882+ );
1883+
1884+ expect(conversationLog.props.overflow).toBe("scroll");
1885+ expect(conversationLog.props.scrollbar).toBeUndefined();
1886+ expect(conversationLog.props.scrollOffset).toBe(Infinity);
1887+ expect(typeof conversationLog.props.onScroll).toBe("function");
1888+ } finally {
1889+ state.db.close();
1890+ }
1891+ });
1892+
18751893 test("buildConversationLog initially renders only the latest chunk of a long session and reloads older chunks at the top", () => {
18761894 const state = createTestState();
18771895 const controller = createInputController(state);