Add settings, server config and idle subagent details

- tui3's own settings in ~/.config/tui3/config.json, under the web app's
  names and defaults: followUpBehavior, sendShortcut, timestampFormat,
  diffIgnoreWhitespace. A settings view (from the palette) cycles them and
  shows the relevant server settings read-only.
- Subscribe to the server config; when it advertises shellThreadFamilies,
  fetch an idle subagent's family so it gets full details and lineage.
This commit is contained in:
Callum Alpass committed 2026-11-02 18:23:35 +11:00
1 parent ed36949fa7
commit 121bbd9137
11 files changed
+393 -35

No files matched your search

+3 -1
View File
@@ -130,9 +130,11 @@ async function runUi(attachNeedle?: string) {
const { createRoot } = await import("@opentui/react");
const { createElement } = await import("react");
const { App } = await import("./ui/App.tsx");
const { loadConfig } = await import("./config.ts");
const config = await loadConfig();
// 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, ...(attachThreadId ? { attachThreadId } : {}) }));
createRoot(renderer).render(createElement(App, { session, config, ...(attachThreadId ? { attachThreadId } : {}) }));
}
function fail(message: string): never {