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>
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>
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>
- 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>
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.