- Go 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
All checks were successful
Suite release / scope (push) Successful in 7s
Suite release / module (push) Has been skipped
Suite release / check-manifest (push) Has been skipped
Suite release / check-build (go, ubuntu-latest) (, go, false, ubuntu-latest, , go) (push) Has been skipped
Suite release / check-package (push) Has been skipped
Suite release / reused-checks (push) Has been skipped
Suite release / reserve (push) Successful in 9s
Suite release / build (go, ubuntu-latest) (, go, false, ubuntu-latest, , go) (push) Successful in 16s
Release assets/v0.1.239 Every release asset is complete
Suite release / finalize (push) Successful in 14s
Suite release / publish (push) Has been skipped
Suite release / deliver (push) Has been skipped
Suite release / deploy-image (push) Has been skipped
Suite release / deliver-prune (push) Has been skipped
merge-queue / delivery delivered with romaine-life/fzt-terminal#177's batch
Written by merge-queue for romaine-life/fzt-terminal#177, which was tested with this repository before it landed (RLMQ-6). Anvil-Prebuilt: romaine-life/fzt-terminal@86cd091d2c |
||
| testdata/attach-console | ||
| .gitignore | ||
| .goreleaser.yaml | ||
| args.go | ||
| at-app.json | ||
| builtin_apps.go | ||
| builtin_apps_test.go | ||
| builtin_claude_resume.go | ||
| builtin_claude_resume_test.go | ||
| builtin_claude_search.go | ||
| builtin_claude_search_local.go | ||
| builtin_claude_search_local_test.go | ||
| builtin_claude_search_test.go | ||
| builtin_codex.go | ||
| builtin_codex_test.go | ||
| builtin_desktop.go | ||
| builtin_desktop_test.go | ||
| builtin_fnlock.go | ||
| builtin_git.go | ||
| builtin_hubitat.go | ||
| builtin_lights.go | ||
| builtin_lights_test.go | ||
| builtin_opencode.go | ||
| builtin_opencode_test.go | ||
| builtin_reboot.go | ||
| builtin_reboot_test.go | ||
| builtin_workonapp.go | ||
| builtin_workonapp_test.go | ||
| builtin_workspace.go | ||
| builtins.go | ||
| builtins_test.go | ||
| claude_app.go | ||
| claude_app_test.go | ||
| commands_test.go | ||
| desktop_other.go | ||
| desktop_windows.go | ||
| desktop_windows_test.go | ||
| failure_log.go | ||
| failure_log_test.go | ||
| folders.go | ||
| folders_test.go | ||
| go.mod | ||
| go.sum | ||
| handoff.go | ||
| helper_test.go | ||
| main.go | ||
| menu.go | ||
| menusync.go | ||
| menusync_other.go | ||
| menusync_windows.go | ||
| open_other.go | ||
| open_windows.go | ||
| open_windows_test.go | ||
| pick_test.go | ||
| popup.go | ||
| popup_test.go | ||
| processes_other.go | ||
| processes_windows.go | ||
| README.md | ||
| repo_picker.go | ||
| repo_picker_test.go | ||
| run.go | ||
| run_tab_test.go | ||
| serve.go | ||
| serve_test.go | ||
| system_app_test.go | ||
| system_other.go | ||
| system_windows.go | ||
| tabdir.go | ||
| tmux.go | ||
| tmux_test.go | ||
| tmuxprogram_other.go | ||
| tmuxprogram_windows.go | ||
| tools.go | ||
| typed_folder.go | ||
| version.go | ||
fzt-automate
The at menu, its built-in commands, and program launches. The menu and command store are described in https://forgejo.romaine.life/romaine-life/at.
Every built-in is also a command typed in any shell under its own name
(resume-claude, windows): nothing is reachable only through the menu
(FZTA-24). at-app.json lists each built-in under commands, at-update installs
each name as a link to fzt-automate.exe in its current folder (on PATH), and
the program runs the built-in its name says. TestEveryBuiltinIsACommand fails
when a built-in is missing from that list. A built-in that fills a folder opens
the folder as a picker when typed at a prompt, and prints its rows to a pipe.
Typed in a shell, a built-in that starts a program (Claude, Codex) runs it as
the shell's, with the shell's environment. In a tab fzt-automate owns, tmux
restarts the tab as the program instead (handoff.go).
CI, signed builds, and releases run on
Forgejo, from
pipeline-templates' go and release suites (its fleet.json, PIPT-12): pull
requests run gofmt, vet and tests on Windows and Linux, and each merge that
changes the code cuts the next v0.1.N and builds the Windows, Linux and macOS
binaries (cross-compiled Go; no Mac runner). The suite stamps main.version
(version.go); a local go build . reports dev. fzt and fzt-terminal are
taken up through the Go suite's take-up, which strip-owner starts when it
delivers a change to them.
After the Forgejo release has all three assets, CI starts home-sync on every
PC. It verifies the signed Windows binary and switches the managed installation
at C:\Program Files\at-home\fzt-automate\current. Existing terminals use that
stable path immediately. The manual publish.ps1 was retired by HOMECFG-110.
On Windows a tool:<name> action runs a tool home-sync installs:
C:\Program Files\at-home\<name>\current\<entry>, where <entry> is the
program home-sync's own list (~/.home-sync/tools.json) names, copied from
the home profile's machine/state.json; tool:<name>/<file> is another file
in that folder. So a new app needs only its state.json entry to launch from
the menu, and this repo keeps no list of tools: a test launches one its code
has never heard of (HOMECFG-213). A tool missing from the list or from its
folder reports an error; it never launches an old NAS or Drive copy.
The menu has no edit or save commands. It changes only through
fzt-frontend's API, where a Claude session edits it. Each PC brings its copy
(~\.fzt-automate\menu-cache.yaml) up to fzt-frontend's tree itself: the
fzt-automate-menu-sync task (--sync, at logon and resume, from at-app.json)
and a background --sync each time the menu opens, so an edit shows by the next
open. A sync replaces the cache in one rename, never half written (AHT-231).
The popup menu runs in a fzt-automate that stays running (--serve, serve.go,
FZTA-25): tmux starts it once, with no console, sends it each menu over its
standard input and output, and draws what it sends in the popup, so a menu opens
without a program starting for it (60 to 200 ms each time before). Each menu
there runs as --popup would, on a screen of its own; serve.go describes the
frames. A script's picker goes the same way: tmux's display-picker asks for
pick with fzt's flags, which runs fzt-terminal's picker with the script's rows,
its folder for relative paths, and its pick and exit code back, as fzt.exe did. When a release replaces the installed program, the running one tells
tmux once no menu is open, and tmux starts the new one. Its output is tmux's
pipe, so anything else it would print is dropped; a menu that panics is
recorded in the failure log.
A desktop program, one with its own window, opens with launch <name> <program> [arguments...]: it switches to the program's window if one is open, else starts
it and returns at once, so it holds no tab and the menu isn't left waiting. The
program is a tool: word, a path or a link (steam://...); a window matches by
its program's path (through a tool's current folder link too), else by its
title or its program's own description being <name>. Power Lines is
launch 'Power Lines' tool:mgba --script tool:power-lines/strings.lua -C savegamePath=power-lines tool:power-lines/power-lines.gba. Windows' installed-apps
list plays no part, except in the programs folder, which lists that list; its
rows open through installed-app.
An entry whose action is folder:<command> is a folder its command fills each
time it is opened: a built-in's rows, or a line per row from a program, its
name, then a tab and a description, then a tab and the action a pick runs. A
row whose action is itself folder:<command> is a folder the same way, so a
program can list a tree a level at a time (the strip: strip, its follow-ups,
one follow-up, its commands). In the popup the program gets the tab the popup
is over as TMUX_PANE, its active pane, and the popup's client as
TMUX_CLIENT, and so does a quick pick's program (term-share reads it to
share that tab's window). A top-level menu entry named tmux is the folder Ctrl+B opens:
its entries come first, and tmux's own rows join them.
folder:reboot is restarting the PC behind a confirmation (FZTA-23). The menu's
search reaches every row of the static tree, so a restart entry there would be one
stray Enter away; the folder's one row, "restart now", exists only once the folder is
opened. It runs shutdown /r /t 0, the same restart as Start's: any delay would imply
/f, closing apps with unsaved work without asking. The tmux session set comes back
at the next sign-in.
Failed menu launches and commands are logged to ~/.fzt-automate/fzt-automate.log
on Windows, or fzt-automate.log in the platform's config directory elsewhere
(FZT_CONFIG_DIR overrides it), in the estate's standard line
(logline, OpenProject AHT-204): an
error line command failed with the entry's name, the directory it ran in
and the error text as fields, e.g.
2026-11-26T09:12:03.512-08:00 pid=4120 error command failed name=lights directory=D:\repos error="lights can't run: exit status 1".
Every menu appends to the one file, a line per write so simultaneous menus keep
their lines whole; past 1 MiB it moves to fzt-automate.log.old. Every field can
hold text from outside the program (an action line with arguments typed at run time,
a failed command's output), so each is masked with logline's Redact before it is
written: credentials (URL parameters, auth headers, PASSWORD=-style and JSON fields,
BW_SESSION, secret flags, passwords in URLs, JWTs, GitHub and OpenBao tokens) become
***. Records limit the name and directory to 16 KiB and the error text to 64 KiB;
the existing error displays and program exit codes are unchanged.
The output box stays open when a program cannot start. A program that starts in
a new tmux window and then fails keeps its pane through remain-on-exit=failed;
tmux also records its exit in its own error history. The latest quick pick's
full output remains in last-output.txt beside the menu cache.
An action starting system:<name> is a system app: one window in the system
session, not a new tab per pick (TMUX-167). The pick goes to the window marked
@<name>-window wherever it is, moving it into system and starting its program
again if it has stopped; with none, it makes the window (at-tmux new-window -M).
The window stays when the program ends, saying so, and Enter starts it again
(remain-on-exit relaunch). A missing system session is made first by the home
config's system-session. A system app runs a program, not a built-in or an at
command still on PowerShell.
launch-opencode picks a repo (below) and replaces its tmux pane with
OpenCode, using the Anthropic API login in ~/.local/share/opencode/auth.json
(XDG_DATA_HOME overrides the data directory). Home-sync provisions the current
@opencode/cli npm package, login and Claude model. On Windows the built-in starts
the package's executable directly, bypassing npm's command shim. Missing installs
or API logins report an error before the picker; a failed launch keeps its tab.
launch-claude and its subscription billing remain the default.
The Claude launchers start the app tmux's @claude-app names: at-claude, the
terminal harness, or claude-code, Claude Code itself (ATC-6, ATC-7); the home
profile's tmux/windows.conf sets it. It is read at each launch, so a change there
takes effect at the next one; an unset or unknown value stops the launch and says so. launch-claude
replaces its tmux pane with that app in a repo picked from the list below. at-claude
shows that list itself (ATC-194): launch-claude starts at-claude -pick-repo in
D:\repos at once, so the session's avatars are dealt while the list loads; for
Claude Code, and for launch-claude <folder>, the picker is this program's. resume-claude picks a past session
by its name and resumes it in its folder; resume-claude <session id> [--chrome]
resumes that one in this pane's folder, with Claude in Chrome connected when asked,
for tmux's session restore, reopen-window and claude-relaunch-with-chrome.
work-on-app claude|codex opens a new tab running that agent in the repo of the app
in the tab you came from, so you don't need to remember which repo holds it. It
reads what the pane runs (below its own process first, so an app the at menu
started isn't taken for fzt-automate), then machine/state.json: tools for what home-sync
installs, appRepos for the rest. A repo this PC hasn't cloned is cloned to
D:\repos; a tab with no recognized app gets a folder picker that says so.
launch-codex picks a repo (below) and starts the native Codex executable
in the window, using the user's existing Codex login. resume-codex opens Codex's
session picker across all folders. Both retain failed launches for inspection.
Both use --no-daemon so Codex's lifecycle hooks inherit the launching tmux
pane's environment and can register the session and generate its window name.
Already-running sessions retain their existing runtime; inspect and repair any
missing pane registration separately when changing the launcher.
The popup menu uses Codex's reported folder for actions launched over its window.
The launchers pick a repo from Forgejo, so every PC offers the same ones
(FZTA-17). The list is the repos starred on Forgejo (star one on its page to pin
it), then the eight this PC's Claude and interactive Codex sessions ran in last
(30 days, worktrees included), then the rest by latest change; mirrors and
archived repos are left out. A pick opens this PC's checkout, found by its origin
remote in D:\repos or the shell-config and profile checkouts home-sync keeps,
else clones into D:\repos. Two fixed rows start in D:\repos itself or open
the folder browser; a launcher given a folder (launch-claude <folder>) opens
the browser there, as before. Forgejo is read with the token git holds for it,
never prompting; when it can't be read, the title says why, the full error goes
to the failure log, and the list is this PC's checkouts.