Commit Graph
98 Commits
Author SHA1 Message Date
Callum Alpass fc42f2b170 Conversation: raised blocks and bars, no rules, no repeated title 2026-11-03 00:17:14 +11:00
Callum Alpass 1a868ec10b Markdown: quiet headings and links, plan-coloured code spans 2026-11-03 00:17:14 +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 2653209b14 Details, palette and settings in the same treatment
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.
2026-11-02 23:58:19 +11:00
Callum Alpass 0d59ec0fd3 Thread list on a panel with a status gutter
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.
2026-11-02 23:58:19 +11:00
Callum Alpass 9293be206c Shared bar edge, invisible resize handle, quieter hint 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.
2026-11-02 23:58:19 +11:00
Callum Alpass e22885d802 Neutral grey palette with one accent, after opencode's 2026-11-02 23:36:10 +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 320dbf492d Keep the open thread on screen while reconnecting
The session resubscribes threads itself after a reconnect; App no
longer drops the subscription, so the thread doesn't blank to loading.
2026-11-02 23:13:51 +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 275a2bcde1 PR view and find bar keys come from their hooks; drop their dead key handlers
w and u in the PR view now act on the PR it shows, not the first linked one.
2026-11-02 23:06:10 +11:00
Callum Alpass 346212ba5f Use the shared truncate and firstLine in App, Palette and useDetails 2026-11-02 23:04:44 +11:00
Callum Alpass f2ae9ae080 Lint App and the palette files too; rename useResetCredit, which isn't a hook 2026-11-02 23:03:59 +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 fc259926c9 Move the details panel out of App into useDetails
The hook owns the git, servers and automations feeds, the panel's
selection and what its rows do, and returns its keys and palette
commands.
2026-11-02 22:58:46 +11:00
Callum Alpass 2b06f3ed43 Move the question flow out of App into useQuestion 2026-11-02 22:55:45 +11:00
Callum Alpass 1ee6979e83 Move the draft, model picker and thread menu out of App into hooks
Each hook owns its state and returns the bindings for its keys, so App
only orders them.
2026-11-02 22:48:41 +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 d5b6406cae style: readability pass on delegate-written hooks and models 2026-11-02 22:37:00 +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
Callum Alpass ce0c0d48c8 Add terminal management and workspace controls 2026-11-02 20:35:54 +11:00
Callum Alpass 43347d1d58 Thread actions menu, as T3's sidebar context menu
- . or a right-click opens T3's thread menu, built by the web's buildThreadActionMenuItems
- Settle, pin, snooze (server presets or a typed time), rename, regenerate title, mark unread,
  auto-settle, copy path/branch/thread/ID, archive, delete (confirmed), new thread on branch
- Submenus open as pickers; their items are searchable from the top
- Copy via OSC 52 plus the local clipboard tool
- Palette group keys no longer collide for untitled groups
2026-11-02 19:49:23 +11:00
Callum Alpass 925fc15a3d Composer / $ @ suggestions, as in T3's message box
- / offers /model, provider commands (at the message start) and skills; $ offers skills
- @ offers threads and the server's file search; thread mentions ride on the message's context
- Ranking, insertion and trigger detection follow T3's web composer and shared helpers
- The box measures wrapped lines after a programmatic insert
2026-11-02 19:22:03 +11:00
Callum Alpass 626d37a4e9 New threads, model and mode picker, alerts, $EDITOR and terminal attach
- c starts a draft thread (project, model, mode, worktree) launched with orchestration.launchThread
- m picks model, provider options and access mode from the server's providers, following the web's provider lock; model changes ride on the next message
- Alerts port T3's notification gate: bell, OSC 9/99 desktop notifications when unfocused, in-app flash
- ctrl+g edits the message in $EDITOR; ctrl+j attaches to the thread's T3 terminal
- Credential gains terminal:read
2026-11-02 18:55:47 +11:00
Callum Alpass 121bbd9137 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.
2026-11-02 18:23:35 +11:00
Callum Alpass ed36949fa7 Add diffs, git actions, servers, automations and a command palette
- Details rows are actionable: view the working-tree diff (whole or per
  file), run the web app's git quick action or menu after a confirmation,
  stop a local server, run or toggle an automation, open lineage threads.
- Command palette (ctrl+k or :) searching commands and threads with T3's
  own scoring.
- Subagent work entries link to their child threads; u goes to the parent.
- Threads open scrolled to the bottom.
- Mouse: thread rows, collapsed sections, details rows, palette, composer.
- The / filter opens in the thread list.
- Multi-line composer: shift+enter, ctrl+j, or a trailing backslash; it
  grows to 8 lines.
- The credential asks for filesystem:read, source-control:write and
  terminal:operate, and is reissued when a stored one lacks them.
2026-11-02 18:11:48 +11:00
Callum Alpass 248603d9ae Add a thread details panel
A right-hand column like the web's thread details card: workspace,
model and mode, branch with ahead/behind and its PR, uncommitted
changes from the server's git status stream, lineage, background work
and the goal. Opens on wide terminals; d toggles it.
2026-11-02 17:46:36 +11:00
Callum Alpass 2dac4763d2 Match T3 Code's sidebar, timeline and composer
Reuse the web app's timeline derivation (turn folds, work groups, live
work), its sidebar sections and status words, steer-by-default sending,
the question panel, decline-with-feedback, and visit/read marking.
2026-11-02 17:35:56 +11:00
Callum Alpass 4f42407099 Load long threads as a bounded window, reconnect when the socket drops
Full snapshots of long threads exceeded the server's WebSocket message
limit (close 1009), which killed the shared socket and every thread on it.
Subscribe with acceptBoundedSnapshot like the web client, page older turns
over the history endpoint, and reconnect with backoff, resubscribing
watched threads, whenever the socket closes.
2026-11-02 17:19:22 +11:00
Callum Alpass cea1409f40 Stable thread updates, folded work view, always-on composer
- Track selection by thread id and sort active threads by run start, so
  reordering no longer resubscribes and reloads the open thread
- Cache blocks per turn item, reuse unchanged segments, memoize views,
  and batch streamed updates to one redraw per frame
- Keep left threads subscribed for a minute so switching back is instant
- Fold runs of tool calls and reasoning into one summary line; clip long
  user messages; e expands both
- Always-visible multi-line composer with per-thread drafts and
  typing/navigation modes
2026-11-02 17:06:06 +11:00
Callum Alpass 3b7ed56e16 Add dashboard, attach view, list and tmux commands 2026-11-02 16:51:37 +11:00
Callum Alpass c93244e7f4 Connect to T3 Code: auth, RPC client, shell and thread session 2026-11-02 16:45:27 +11:00