Commit Graph
142 Commits
Author SHA1 Message Date
venomadeandmistral-vibe Bot c5311a763f Package t3tui itself as a flake output (packages.t3tui / apps.t3tui)
Builds one self-contained binary with `bun build --compile`. npm deps
come from a fixed-output derivation (this nixpkgs has no bun fetcher);
the vendored t3code submodule is grafted from a pinned flake input
(same commit as the submodule) because git flake sources don't include
submodule contents. The binary is a Bun SEA, so strip/patchelf are
disabled on the package. link-vendor now chmods copied vendor files
writable before patching (nix store sources are read-only).

Verified: nix build .#t3tui -> bin/t3tui version prints 0.2.0.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-24 01:42:25 +00:00
venomade 9d1f6d8bc9 Bump version to 0.2.0
Release / build (push) Failing after 2m56s
Release / smoke (macos-15, darwin-arm64) (push) Skipped
Release / smoke (macos-15-intel, darwin-x64) (push) Skipped
Release / smoke (ubuntu-24.04, linux-x64) (push) Skipped
Release / smoke (ubuntu-24.04-arm, linux-arm64) (push) Skipped
Release / smoke-windows (push) Skipped
Release / release (push) Skipped
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
v0.2.0
2026-11-24 01:34:47 +00:00
venomade 5ebff7b68d Start t3 serve from t3tui when no local server is up, stop it on quit
ensureLocalServer() probes the origin named by the runtime file; if
nothing answers (and T3TUI_SERVER/T3TUI_TOKEN are unset) it spawns
`t3 serve` detached in its own process group, waits for the runtime
file to come up, and returns a handle whose stop() SIGTERMs the whole
group (SIGKILL after a grace period). Wired into the UI's destroy
handler, `list` and `tmux`, with a process exit hook as backstop. The
server's output goes to ~/.config/t3tui/server.log so it can't corrupt
the TUI screen. An existing, answering server is always used as-is.

Tests cover spawn+stop, existing-server reuse, and the no-spawn env
overrides, using a fake t3 binary.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-24 01:29:13 +00:00
venomade 57578ca4f5 Ignore the nix build result symlink
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-24 01:14:36 +00:00
venomade 6a7b9d26a0 Package the headless T3 Code server CLI (t3) in the flake
nixpkgs has no t3code package and the npm `t3` package is only a
downloader, so fetch the official GitHub release tarball for
v0.1.12-nightly.20261123.5165 (4 commits ahead of the vendor pin) and
wrap it as packages.t3 / a devShell binary. The Node SEA binary is left
unstripped and unpatched (patchelf/strip corrupt its embedded resource);
only native .node modules get an rpath to nix libraries.

Verified: `t3 serve` runs headless and writes the server-runtime.json
that t3tui discovers. `t3 --version` and `t3 serve --help` work through
`nix develop`.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-24 01:14:30 +00:00
venomade b40f09e56f Bump vendored T3 Code to 42c9107983 (v0.1.12-nightly) and catch up
- vendor/t3code submodule pinned to 42c9107983; deps in package.json
  aligned with the upstream catalog, including upstream's effect@4.1.5
  patch via patchedDependencies (patches/effect@4.1.5.patch)
- nix flake.nix devShell provides bun locally (no guix home install)
- scripts/link-vendor.ts now copies the vendored packages into
  node_modules/@t3tools and applies tscPatches for the spots where
  classic tsc can't infer what upstream's Effect language service can,
  so `bun run typecheck` runs clean under full strict mode
- protocol drift fixes across model/ui/client: usage-limit copy, context
  window snapshot, checkpoint totals, turn diff summaries, alert
  observation, "once" schedules, composer trigger kinds, PR keying,
  thread menu state, secret request answers, terminal summaries,
  snapshot-required shell events, revert checkpoint lookup
- new parity features over the typed RPC: fork a turn into a new thread,
  rewind a message with its attachments restored to the composer, guest
  share links and turn-into-project in the thread menu
- tests updated and added (301 pass); typecheck, lint and build clean

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-24 00:52:30 +00:00
callumalpass 3a93c35c41 Merge branch 'release/v0.1.0' 2026-11-05 00:12:42 +11:00
Callum Alpass 4b843a1963 Version 0.1.0 2026-11-05 00:12:42 +11:00
callumalpass 3b1a35bb43 Merge branch 'fix/release-submodule': the release build checks out 2026-11-05 00:08:51 +11:00
Callum Alpass e4aae41473 Init vendor/t3code by hand in the release build
Checkout runs submodule foreach --recursive whatever its credentials
setting, and that always fails on the gitlinks under t3code's .repos,
which have no .gitmodules. Checking out the one submodule avoids it.
2026-11-05 00:08:51 +11:00
callumalpass ef362fb787 Merge branch 'fix/release-checkout': the release build checks out 2026-11-05 00:07:17 +11:00
Callum Alpass d56417cec0 Don't persist checkout credentials in the release build
Checkout walks the submodules recursively to save them, and fails on a
gitlink in vendor/t3code that has no .gitmodules entry. The build doesn't
fetch anything afterwards.
2026-11-05 00:07:13 +11:00
callumalpass eccedd9b3b Merge branch 'fix/windows-local-server': a local Windows server, and ConPTY panes 2026-11-04 16:45:03 +11:00
Callum Alpass 4adaab66e9 Draw full-screen programs in ConPTY panes properly
ConPTY writes on from a full row with an erase in between, counting on
the wrap staying pending; the emulator drops it, as xterm does, so the
next row's first character landed on the last column. It showed in Git's
vim, both in a local editor pane and a Windows server's terminal, so the
erase is dropped for either. Also note that search on a Windows server
needs the Visual C++ runtime.
2026-11-04 16:45:03 +11:00
Callum Alpass 53ceb6a8c5 Find the t3 CLI where the Windows installer puts it
t3tui looked only for ~/.t3/bin/t3, which Windows doesn't have, so it
couldn't get a credential from a local server there. A .cmd also has to
go through cmd.
2026-11-04 16:45:03 +11:00
Callum Alpass 159c5e8fbc Merge branch 'feature/windows': Windows support 2026-11-04 08:15:59 +11:00
Callum Alpass 95e26f58eb Merge branch 'main' into feature/windows 2026-11-04 08:14:58 +11:00
Callum Alpass e00d593731 Allow the escape character in the in-band resize regex 2026-11-04 08:14:58 +11:00
callumalpass 274151a5e6 Merge branch 'full-width': the conversation uses the whole width of the window 2026-11-04 08:14:03 +11:00
callumalpass e519b65d04 Let the conversation use the whole width of the window
Prose stopped at 100 columns however wide the terminal was. Remove that
cap. Work labels and changed files were cut to fit it too, so they now
use the text's own truncation, which follows the real width. Images keep
their limit of 100 columns by 12 rows.
2026-11-04 08:14:03 +11:00
Callum Alpass c4f8bc1e90 Merge branch 'main' into feature/windows 2026-11-04 08:10:32 +11:00
Callum Alpass eb5cccece1 Windows: fix cmd quoting, CRLF saves and Neovim's remote output
cmd strips outer quotes when a line starts with one, which broke .cmd editors with spaces in both paths. Neovim on Windows prints remote results to the console, so they ran over the screen and never reached us; give it a hidden console and read results from a file.
2026-11-04 08:10:32 +11:00
callumalpass 1856b80f39 Merge branch 'pane-size': terminal panes that match their box, and Neovim that resizes with them 2026-11-04 08:04:28 +11:00
callumalpass 0e575c5fa4 Keep Neovim's size in step with its pane
The emulator says it supports in-band resize (mode 2048) but never sends
the reports. Neovim takes it at its word and stops listening for SIGWINCH,
so it stayed at its starting size however the pane changed. Answer that
the mode isn't recognised, leaving programs on SIGWINCH, which works.
2026-11-04 08:04:28 +11:00
callumalpass 44bfa6e740 Give terminal panes the height of their box
With no height of its own the embedded terminal starts at 24 rows and
can't shrink. In a shorter box the program was told 24 rows and drew the
bottom ones out of sight, losing vim's status and command lines. Let it
shrink, so its size is always the box's.
2026-11-04 08:03:16 +11:00
Callum Alpass df2c8e0907 Support Windows
Build a windows-x64 binary and add install.ps1. The editor, browser links, paths, clipboard images and t3tui upgrade all learn Windows' way of doing things; t3tui tmux says it needs WSL.
2026-11-04 07:56:22 +11:00
callumalpass 2845b6fe2b Merge branch 'files': the Files tab, and the redraw leak fix 2026-11-04 00:11:22 +11:00
Callum Alpass ef79c2f915 Stop redrawing every conversation row each second
The conversation's mouse handlers were a new object on every render, so
the memoized rows re-rendered on each 1s clock tick, rebuilding every
reply's markdown. In a long session that grew native memory by about
1 GB an hour. Keep the object stable so rows render only when they change.
2026-11-04 00:11:21 +11:00
Callum Alpass 00df9c396a Docs: the Files tab and previews 2026-11-03 22:29:10 +11:00
Callum Alpass fb82b4a5ef Demo capture: the Files tab's tree, search and previews 2026-11-03 22:28:42 +11:00
Callum Alpass d29cf70799 Test the Files tab: tree, marks, search, mentions, opening and previews 2026-11-03 22:25:10 +11:00
Callum Alpass 89383c70ac Add a Files tab to the right column, with search, mentions and read-only previews 2026-11-03 22:22:23 +11:00
Callum Alpass 93afafe7c6 Model the Files tab's tree: rows with git marks and ignored entries 2026-11-03 22:22:23 +11:00
Callum Alpass 604d71ca79 Wrap the server's folder listing, ignored files, file reads and workspace file assets 2026-11-03 22:22:23 +11:00
Callum Alpass cea121d7fd Capture the panes in the demo script 2026-11-03 21:53:39 +11:00
Callum Alpass 1294a912e3 Document the pane prefix, editor tabs and running strip 2026-11-03 21:53:39 +11:00
Callum Alpass 2a191b1089 Hide the drawer while the message editor is zoomed 2026-11-03 21:53:39 +11:00
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 56ee5364fa Start Neovim on a socket, and open, quit and check files through it
--remote-expr and --remote-send fail when the socket is gone; --remote would fall back to editing in a Neovim of its own.
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 07f0d9b408 ctrl+g with the message editor open goes back to it rather than starting another 2026-11-03 08:45:43 +11:00
Callum Alpass 22d66201dd Capture the terminal drawer in the demo too 2026-11-03 08:43:03 +11:00
Callum Alpass 3aca8e9cae Document the terminal drawer, its tabs and the tabbed right column 2026-11-03 08:42:25 +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 c2696328fe Add a tab strip and a horizontal drag edge; keep the drawer's height and terminal placement in the layout 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