Remember the thread list's dragged width across runs

Kept in layout.json next to the config, as the web keeps its sidebar
width in browser storage. Tests now write to a scratch config folder.
This commit is contained in:
Callum Alpass committed 2026-11-02 23:15:33 +11:00
1 parent 320dbf492d
commit 81a1ee942c
5 files changed
+81 -8

No files matched your search

+3 -1
View File
@@ -141,9 +141,11 @@ async function runUi(attachNeedle?: string) {
const { App } = await import("./ui/App.tsx");
const { loadConfig } = await import("./config.ts");
const config = await loadConfig();
const { loadLayout } = await import("./layout.ts");
const layout = await loadLayout();
// The kitty keyboard protocol lets terminals that support it send shift+enter, for newlines.
const renderer = await createCliRenderer({ exitOnCtrlC: false, useMouse: true, useKittyKeyboard: {} });
createRoot(renderer).render(createElement(App, { session, config, ...(attachThreadId ? { attachThreadId } : {}) }));
createRoot(renderer).render(createElement(App, { session, config, layout, ...(attachThreadId ? { attachThreadId } : {}) }));
}
function fail(message: string): never {