Like the thread list: drag to resize, right-click to reset, kept as
detailsWidth in layout.json. The conversation keeps its minimum width; a
dragged width gives way to it before the panel goes in place.
Run state, context window and provider limits on top; the agent's latest
to-do list; changes in git-status style with the diff and git quick action
on one line; a one-line branch summary; subagents with their status, the
finished ones folded; automations' next run as a short time; workspace,
model and mode as a quiet footer.
The command, package, env vars (T3TUI_*), config folder, tmux session and
the session label it issues itself. An existing ~/.config/tui3 moves to
~/.config/t3tui on the first run.
Running the TypeScript sources makes Bun compile and keep hundreds of
vendored modules, which cost 110-130 MB at startup. scripts/build.ts
bundles bin.ts and OpenTUI's syntax-highlighting worker into dist/;
bun install builds it, bun run build rebuilds it, and the tui3 bin runs
it. bun run dev still runs the sources.
OpenTUI answers SIGHUP and SIGTERM by tearing the screen down without
exiting, so the session's socket kept a closed terminal's tui3 running
indefinitely. Exit once the renderer is destroyed.
Bun collects so lazily that a streaming thread took tui3 past 500 MB of
garbage while the live heap stayed near 70 MB. Run a full collection
every 30 seconds, but only after 5 seconds without input, since one
pauses for up to ~150 ms.
Breadcrumb with the list's status word, the connection note only when not live, and ctrl+k commands with no button background. Tests find the new button wording and the resize bar.
Panels without dividers or rounded borders: bold titles, muted bodies, the selected row's accent bar over the full width. The in-place details panel now takes its column's height instead of spilling over the composer.
Title over project, the status or time on the right, a 2-column gutter (spinner, ◆, ✕, ●), the accent bar on the selected row, faint bold section headings with a blank row above, and the filter as an element row with a bar.
edges.ts carries opencode's border chars (BAR/NO_BORDER). The resize handle is a bar in the background colour at rest and accent under the pointer. Hint keys sit in text over faint labels, and hints that don't fit drop whole from the end.
As the web's connection supervisor and composer:
- The first connection retries too, so tui3 opens without a server and
connects when it's up. One-off commands still fail fast.
- The header says why it couldn't connect and when it retries; r, a
click on it, or the palette retries now.
- Enter while disconnected keeps the message and says so.
- A failed send, or a new thread that doesn't start, puts the message,
its attachments and its mentions back in the composer.
- Opening a PR in the browser says why it failed and copies the link.
- Error notices stay 8s instead of 4s.
Each binding names its keys, its hint and its palette command once. The app
builds the bindings for the current state in hint order; the first that
takes a key runs it, the hint bar lists them and a click runs the same
action, and the palette reads its shortcuts from them. This replaces the
hand-ordered key handler, the hint strings and the parsing of hint text
back into key events.
The secret, queue and turn hooks return bindings in place of their key()
handlers and command lists.
A fake session serves fixed state and records calls; tests drive the whole
App by key and mouse and check the screen: modes and hints, the palette and
pickers, approvals, questions, the composer and drafts, and mouse clicks,
menus and resizing.
Drag to select copies on release. Request cards, the queue, attachments,
the PR view and the key hints get clickable buttons. Prompts, folds,
commands and diff files respond to clicks; prompts, replies, commands and
the PR view get right-click menus. Clicking a pane focuses it, the wheel
scrolls the thread list and palette, rows highlight under the pointer, and
the thread list's border drags to resize.