Commit Graph
60 Commits
Author SHA1 Message Date
Callum Alpass 9e4558d7d1 Make the panes one interaction model, with ctrl+\ as their prefix
Focus moves through what's open in one order: conversation, message editor,
drawer, column. ctrl+\ is a prefix wherever the keys are: ctrl+\ again
toggles, tab and shift+tab step, j/l/k focus the drawer, column or
conversation, 1-9 pick a tab in the focused strip, x closes (a terminal
after asking, Neovim by asking it to quit), z zooms the focused pane over
the conversation, n opens a terminal. alt+1-9 and { } are gone.

The focused pane's strip and edge light up and the rest go quiet; the hint
bar names where the keys are. In side placement the column has one strip of
tabs, Details, each editor and each terminal. Each file gets its own editor
tab, or goes to the running Neovim. Tabs close with their ✕ or a middle
click. A strip under the message box names terminals running out of sight,
and the editors in a hidden column. Terminal and pane commands in the
palette share a prefix, and the palette covers the conversation area.
2026-11-03 20:53:31 +11:00
Callum Alpass 39e96681f6 Cut a path from the middle, and keep a label's number when it's cut 2026-11-03 20:53:31 +11:00
Callum Alpass 9e532f5d6f Put the terminal drawer below the message box 2026-11-03 20:01:11 +11:00
Callum Alpass 2e531df11b Count the drawer's edge row, let the drawer shrink in the conversation's place, and name clicked files from the workspace 2026-11-03 08:41:59 +11:00
Callum Alpass 0d7a5cc051 Terminals in a drawer below the conversation with a tab each; a tabbed right column; the message editor in the composer's place 2026-11-03 08:37:25 +11:00
Callum Alpass b6470966cf Merge features-08: terminal and editor pane, images, split diffs, selection, links, terminal themes, composer chips 2026-11-03 03:39:51 +11:00
Callum Alpass 3bc5f61704 Theme the scrollbars
OpenTUI's default track is a fixed dark grey, which showed as a dark
strip in the light and terminal themes.
2026-11-03 03:33:24 +11:00
Callum Alpass ffade010a2 Show attachments and @ files as chips in the composer
Textarea extmarks make [image 1] and @src/ui/App.tsx atomic chips in the accent
colour; backspace deletes one whole, and deleting an attachment's chip removes it.
The sent text is unchanged: attachment chips are left out and @ files go as their
markdown links. The @ menu now edits in place so earlier chips survive.
2026-11-03 03:25:42 +11:00
Callum Alpass f18fc9c68d Match the terminal's colours: auto from its background, and a terminal theme
auto now reads the background through OpenTUI's palette detector (OSC 11) and
falls back to dark. The new terminal theme builds the palette from the detected
background, foreground and ANSI colours, and shows in settings.
2026-11-03 03:18:11 +11:00
Callum Alpass c1a7376aa8 Open links and workspace paths from replies with a click
Links come from OpenTUI's markdown link detection (renderer.getLinkAt) and open
with xdg-open or open; a path under the click that names a workspace file opens
it in the editor pane. A drag still selects.
2026-11-03 03:15:59 +11:00
Callum Alpass aa865e24eb Copy selections and links through OpenTUI's clipboard service
A drag over the conversation or the terminal pane copies on release, OSC 52 first
and then the desktop clipboard, with a short Copied toast. The menu and PR copies
go the same way, replacing copyText.
2026-11-03 03:10:27 +11:00
Callum Alpass a9a4b47566 Fit streamed markdown tables to their content, and test that replies don't jump
Replies already stream through <markdown streaming>; tables now size to their
cells with the theme's border colour. Tests cover tables mid-stream and settled,
the newest line staying in view, and a scrolled-up view staying still.
2026-11-03 03:08:26 +11:00
Callum Alpass d87026a66b Show diffs side by side in a wide conversation
Split view with synced scrolling from 140 columns, unified below that, with the
gutter and line colours from theme tokens. Toggle split diff in the palette
overrides the choice for the session.
2026-11-03 03:06:14 +11:00
Callum Alpass 4e3717d171 Paste and drop images into the composer, and show sent images inline
Clipboard images come through OpenTUI's clipboard service, with wl-paste, xclip,
pngpaste and osascript behind it for any image type. ctrl+v or an empty bracketed
paste attaches the image; a pasted image path attaches the file. Over SSH it points
at a instead. User messages draw their image attachments with <image>.
2026-11-03 03:04:00 +11:00
Callum Alpass 4ef243875f Run terminals and $EDITOR in a pane beside the conversation
ctrl+j opens the thread's T3 terminal in an embedded terminal that takes
the details column's place (or the conversation's on narrow terminals);
ctrl+g writes the message there and o on a changed file edits it. While
the pane has focus every key but ctrl+\ goes to its program. Full-screen
attach stays in the T picker and the palette.
2026-11-03 02:53:53 +11:00
callumalpass 9bf9abb540 Release standalone binaries with a one-line installer
Installing meant Bun, a clone with the T3 Code submodule and a build. Now
a tag builds a binary per platform with bun build --compile, carrying
Bun's runtime and OpenTUI's native library, and publishes them as a
GitHub Release after opening each one's dashboard on its own OS.

install.sh picks the right binary and checks it against SHA256SUMS;
`t3tui upgrade` replaces an installed binary with the latest release and
`t3tui version` prints the version. `t3tui tmux` started its windows as
`bun <file>`, which a compiled binary can't do, so it now runs itself.
2026-11-03 02:48:57 +11:00
Callum Alpass e2d2892c52 Hide the thread list with B; both side panels' visibility kept across runs 2026-11-03 01:58:09 +11:00
Callum Alpass 46e0588359 Test the details panel's status block, tasks and changes in the app 2026-11-03 01:50:12 +11:00
Callum Alpass bbf8ff49e1 Resize the details column by dragging its edge
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.
2026-11-03 01:49:12 +11:00
Callum Alpass 9702c31e62 Redesign the details panel around what changes
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.
2026-11-03 01:46:23 +11:00
Callum Alpass 1cccff8031 Rename to t3tui
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.
2026-11-03 01:12:17 +11:00
Callum Alpass ac903fdcba Keep the composer under a pending approval, and no working line meanwhile
The approval sits above the message box rather than replacing it, so a
message can still go with a decline, as in the web.
2026-11-03 01:09:59 +11:00
Callum Alpass bb6d67ec1b Live status pinned above the composer 2026-11-03 00:52:35 +11:00
Callum Alpass 3a7c183e1c Pending approvals in the composer's place 2026-11-03 00:49:52 +11:00
Callum Alpass 49b04f9012 Changed files under each reply, with a turn footer 2026-11-03 00:46:30 +11:00
Callum Alpass b70099f23f Make the thread right-click test independent of the date 2026-11-03 00:41:48 +11:00
Callum Alpass 13675858e8 Header names the open thread; commands is a bare label
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.
2026-11-02 23:58:19 +11:00
Callum Alpass e857146c9a Text fields keep ctrl+u and ctrl+d for editing 2026-11-02 23:26:01 +11:00
Callum Alpass 49fc25f7a2 Light palette, chosen from the terminal's background or the Colours setting 2026-11-02 23:21:55 +11:00
Callum Alpass 3ef67c5b50 Fetch command output the server left out, for the open row and Copy output 2026-11-02 23:19:54 +11:00
Callum Alpass 81a1ee942c 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.
2026-11-02 23:15:33 +11:00
Callum Alpass 2c5eedc869 Keep retrying the connection and say why; never lose a message that didn't send
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.
2026-11-02 23:13:06 +11:00
Callum Alpass 273feb4294 Merge tidy: shared text helpers, hook readability pass, Biome lint 2026-11-02 23:03:07 +11:00
Callum Alpass aac8ee398a Move the composer's / $ @ # menu and its mentions into useComposerMenu 2026-11-02 23:01:21 +11:00
Callum Alpass c7364a1e39 Wait for a stable frame in app tests instead of a fixed sleep
Under the full suite the fixed 20ms wasn't enough for React to re-render.
2026-11-02 22:54:21 +11:00
Callum Alpass 8a0475ed63 One keymap for keys, hints, clickable hints and palette shortcuts
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.
2026-11-02 22:40:50 +11:00
Callum Alpass 441d9d6ed3 lint: add Biome (lint only) and fix its findings 2026-11-02 22:40:44 +11:00
Callum Alpass 87a3a79288 Test the app end to end on OpenTUI's test renderer
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.
2026-11-02 22:32:12 +11:00
Callum Alpass a6cfb9a2cd ui: share truncate and firstLine from text.ts 2026-11-02 22:29:31 +11:00
Callum Alpass 12e1e0ba7a Add mouse support across the TUI
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.
2026-11-02 22:13:40 +11:00
Callum Alpass fbdfb5c3e0 Merge pull requests: PR view, comments and reviews, merge, links, watch, prepare
# Conflicts:
#	README.md
#	src/ui/App.tsx
2026-11-02 20:52:08 +11:00
Callum Alpass fe9cbb6a9f Merge attachments, usage limits and automation editing
# Conflicts:
#	README.md
#	src/ui/App.tsx
#	test/commands.test.ts
2026-11-02 20:49:42 +11:00
Callum Alpass bc55da3ff0 Add pull requests: # mentions, P view, link/watch, comment, review and checkout
The composer's # suggests pull requests in the thread's repository
(recent list plus the exact number typed, linked ones first) and sends
the web's pull request reference record with the message.

P shows a linked pull request (picker first when several): state,
author, branches, description, checks, reviews, comments, commits and
the review guide. o opens it, r refreshes from the host, c comments
and R reviews in $EDITOR, a runs the host's actions behind a confirm,
w watches, u unlinks. The palette links a pull request by URL or
number and checks one out into a new draft thread.
2026-11-02 20:48:35 +11:00
Callum Alpass 2b31804f8e Add attachments, usage limits and automation editing
Attachments upload like the web composer's (signed URL, then bytes) and ride on the next message or a draft's first message; pending names show above the composer and removal deletes the unsent upload. Settings shows provider limit windows, banked reset credits and the last 30 days' usage summary, with a status-line note near a limit and a confirmed reset-credit command. Automations can be created and edited in $EDITOR from a template parsed back against the web form's rules, and deleted behind a confirm. Asks for the diagnostics:read and providers:manage scopes the new RPCs need.
2026-11-02 20:47:54 +11:00
Callum Alpass 4fe103b657 Merge turns: turn cursor, turn diffs, whole-file context, rewind, live command output
# Conflicts:
#	README.md
#	src/ui/App.tsx
#	src/ui/ThreadView.tsx
2026-11-02 20:45:09 +11:00
Callum Alpass 5efadc0707 Merge search: full-text palette search, find in thread, archive, older settled threads, pinned reorder
# Conflicts:
#	README.md
#	src/ui/App.tsx
2026-11-02 20:43:43 +11:00
Callum Alpass 7eb976f7ac Add turn navigation, checkpoint diffs and confirmed rewind 2026-11-02 20:42:55 +11:00
Callum Alpass 89625dddc5 Add thread search, find navigation, archived and older shelves, and pin reordering 2026-11-02 20:42:33 +11:00
Callum Alpass a932f33857 Merge workspace: terminals, branches and worktrees, editor, setup
# Conflicts:
#	src/ui/App.tsx
2026-11-02 20:38:37 +11:00
Callum Alpass a8e35ee83a Queue controls, resume, secret requests and subagent stop, as in T3 Code
Queued messages show above the composer (Q to go through them: send now,
edit in the composer, remove; alt+up edits the last). An empty enter after
an interrupt continues where the run left off and releases held messages.
Secret requests get a masked field that never touches the message box.
Running subagents the web can stop get a palette command. Adds the
diagnostics:read and providers:manage scopes for usage limits.
2026-11-02 20:36:39 +11:00