saaiov0.3.1

Guides

Troubleshooting

#Introduction

When something does not work as you expect, this page helps you find out why. It starts with the two places that know the most about what saaio did, then lists the problems people run into, by where they show up, each with its cause and its fix. If none of them fits, the last section shows how to report a bug.

#Where to look first

Most answers are in one of two places:

SourceShows
saaio status <name> --fulleverything saaio knows about a flow, nothing truncated
server.log in the store (~/.local/state/saaio/projects/<repository>/server.log, ~/.local/state/saaio/server.log outside a repository, or under $SAAIO_HOME; saaio-<uid>/<hash>.log in $XDG_RUNTIME_DIR, $TMPDIR or /tmp when the store's path is long, The store)sessions opened, resumed or failed to start, files that could not be written, why the server stopped. Also errors of the hooks in each worker (hook ...) and of the UI (ui: ...).

Each server.log line starts with a time and a process id. The start line names the saaio version and commit, the OS and the versions of claude, codex, gh and glab:

2026-10-18 13:39:54 +07:00 [2739] started: saaio 0.1.0 (e035b96), protocol 7, Darwin 25.6.0 arm64, claude 2.1.302 (Claude Code), codex 0.163.0, gh 2.73.0 (2025-05-19), glab missing
2026-10-18 13:41:02 +07:00 [2811] hook claude-code flow 3f2a9c: no flow 3f2a9c

#The terminal UI

Many problems with the UI come from a server that still runs an earlier saaio, or from a folder saaio runs in that is not the one you expect. The fix for the first is nearly always the same:

saaio --stop
saaio

Unfinished flows resume after it.

ProblemCauseFix
saaio server runs protocol 8, this saaio speaks 9. The saaio server (pid ...) is another saaio than this one (...)after an update, the old server still runssaaio --stop, then saaio. Unfinished flows resume.
a mismatched saaio dialog, then server is saaio 0.1.1: saaio --stop in the title rowthe running server is another build than the saaio you ran, such as one started before an updatesaaio --stop, then saaio. Unfinished flows resume. Until then its sessions run the server's version.
a mismatched saaio dialog naming one on PATH, then another saaio first on PATH in the title rowanother saaio, such as an old cargo install in ~/.cargo/bin, comes before the one you ran on PATH, so typing saaio (and an agent's saaio send) runs itremove it (cargo uninstall saaio), or put the folder of the one you want first on PATH
a saaio server of an earlier version still runs on /tmp/saaio-<uid>/...after updating from 0.1.0, its server of a store with a long path still runssaaio --stop, then saaio
saaio connects to its server only in a private folder: ... is open to othersthe socket's folder is not yours alone (0700)chmod 700 it if it is yours, else remove it, then saaio
saaio send says this pane has no key: an earlier saaio server opened it, or server.log says no SAAIO_PROOF: an earlier saaio server opened this panea server of saaio 0.1.0 opened the pane, which hands out no keyssaaio --stop, then saaio: every session reopens with its key
a session's state no longer changes; server.log says SAAIO_PROOF does not prove ...the session was not opened by the running server, such as one still open from before an updatesaaio --stop, then saaio: every session reopens with its key
the prefix key does nothingthe terminal or a surrounding tmux keeps C-spaceset another prefix, such as prefix = "C-b" under [ui] in config.toml. It applies on save ([ui])
saaio prints the flows instead of opening the UIit runs inside an agent or a worker (CLAUDECODE, CODEX_THREAD_ID, SAAIO_FLOW_ID or SAAIO_MASTER set), or stdin or stdout is not a terminalrun it in a terminal of its own
the UI or saaio status shows none of a project's flowseach git repository has its own store, picked from the folder saaio runs inrun it in that repository, or saaio status --all for every project (Several projects)
another terminal took over the UIone UI is attached at a time, the newest winsrun saaio again in the terminal you want
colors wrong or unchangedtheme.toml is broken. The last working colors stay.read the error in the title row (Errors)

#Workers

A worker's row tells you what saaio knows about it. When the row looks wrong, the cause is usually in what the harness reports:

ProblemCauseFix
pane: when saaio opensthe flow is recorded, the UI is not runningrun saaio in a terminal. It opens the worker within half a second.
the row shows only whether it runsthe agent has no adapterset adapter = "claude-code" or "codex" on a custom agent that runs one of them (Agents)
saaio start says skill: ... not foundClaude Code has no skill of the kind's name, so the worker got saaio's built-in promptinstall the skill, or set the kind's prompt (Without matching skills)
a Codex flow is waiting with "no turn began after launch"its pane stopped at a Codex dialog before its first turn, often its sign-injump to the worker and answer the dialog or sign in
a Codex flow is waiting with "... holds the first turn"Codex reported a dialog before its first turn: a permission, a question or a sign-injump to the worker and answer it
a flow is blocked with "turn failed: ..."the harness ended the turn on an error: an unsupported model, a rate limit, a lost connection. The text after the colon is Codex's error. Claude Code's reads "see its pane".fix the cause, for a rate limit wait or switch the model, then send the worker a new prompt
steps stay ○───○───○───○, the sidebar shows the state instead of a phaseno skill the worker ran matches a phase. The flow still works.list your skills under the kind's phases (Use your own workflow)
a Claude Code worker keeps its spinner after EscClaude Code older than 2.1.295 sends no status reports, and runs no hook on Escupdate Claude Code. Until then the state corrects at the worker's next prompt.
a Codex flow shows no task counts and never endsCodex has no task count tool and no /exit eventend it from the UI (x on its exited pane, or on the board when done) or with saaio remove
a Codex flow does not change phase after reading a skillone command read the skills of several phases, which saaio treats as read-aheadthe next single read of the skill's SKILL.md starts it, or saaio report --flow <name> phase <phase>
a Codex flow shows waiting permission under automatic reviewsaaio could not read the session's rollout file, so it counts the request as yoursread server.log. The flow returns to working when the tool finishes.
a Codex worker asks permission for every git committhe sandbox only allows writes in the worktree. A worktree's git data is in the main repository's .git.approve in its pane, or allow it in Codex's sandbox settings
a flow stays at review after its merge request was opened or mergedthe UI is not running, gh or glab is missing or not logged in, or the remote's host is neither github.com nor a GitLabread server.log, run gh auth login or glab auth login, keep the UI running. It asks every 2 minutes (Merge requests opened or merged elsewhere).
a flow is not-respondingit reported heartbeats (saaio report heartbeat) and stopped for 90 secondscheck the worker. Claude Code and Codex send no heartbeats. Their stopped sessions show exited.
a session shows exitedits process endedjump to it: r resumes, x cleans up the flow
a session shows failedit could not start, for example its command is not installedread the reason in server.log, then r or x

#Starting flows

saaio start checks the repository, its trust, the slots and the config before it creates anything, and its error says what is missing. A failing setup comes later: the flow exists, blocked, with its worker open:

ProblemCauseFix
saaio start needs a git repositoryrun outside a repositoryrun it in the repository, or use saaio start --plain <folder>
... is not trusted: saaio would run .saaio/setupyou have not trusted the repository yetread its .saaio scripts, then run saaio trust in it in your terminal, or start the flow from the new-flow dialog in saaio, which asks (Trust)
... .saaio/worktrees is a symbolic link.saaio or .saaio/worktrees points elsewheremake it a plain folder
setup: failed: no answer within 10m (full output: ...).saaio/setup ran longer than 10 minutes. It was stopped with everything it started.read the file it names for what it waits for, such as a prompt or a service that never starts
setup: failed: ... (full output: ...).saaio/setup exited with an error. The text is the last line it printed; the file holds all of it. The flow is blocked unless its worker was working when it failed, and the worker is open.read the file for the cause, fix it, then saaio setup <flow> or s in the UI. The setup-saaio skill writes or repairs the script.
all 20 slots are in use20 unfinished flows across all projectssaaio status --all lists them. A done flow keeps its slot until its session ends: end it, or saaio remove flows you no longer need.
config.toml:<line>: ...a broken config. The message names the file, line and key.fix the key. A key from an earlier version names its new form (Errors).
the request is <n> chars, over 20000the request is too longput the details in a file in the repository and name the file in the request

#Removing flows

saaio remove and saaio clear never throw work away without asking. When they refuse, they say what they would lose:

ProblemCauseFix
saaio remove refuses: uncommitted workuncommitted changes in the worktreecommit or stash them, or --force to discard them
saaio remove refuses: git cannot check the worktree for uncommitted changesgit does not list the folder as a worktree of the repository, or git failedgit worktree list in the repository shows what git knows; --force removes it without the check
saaio remove refuses: commits on no other branchthe branch has commits that exist nowhere else, local or pushedmerge or push the branch, or --delete-unmerged to delete it with its commits
saaio clear kept a worktreeit had uncommitted workcommit or discard it, then git worktree remove <path>
teardown: not run, the repository is not trustedthe trust was revokedstop what the setup started yourself, or saaio trust before the next removal

#Reporting a bug

A good bug report says what saaio did, and the versions it ran with. saaio bug-report gathers both into one file for you:

$ saaio bug-report
report: /Users/jan/.local/state/saaio/reports/saaio-report-2026-10-18.txt
help[2]: "Check the file before uploading it: it can hold flow names, requests and paths",Attach it from there; it is never written into a repository

To report a bug:

  1. Run saaio bug-report in the repository where the problem happened.
  2. Check the file it names before uploading it. It can hold flow names, requests and paths.
  3. Open an issue with what happened, what was expected and the steps, and attach the file. It is in reports/ of saaio's state folder, never in the repository: paste its path into the file picker (Cmd+Shift+G on macOS).

The file holds:

  • the saaio version, commit and protocol, the OS and the versions of claude, codex, gh and glab
  • the store's path
  • where config.toml and theme.toml are and whether they load, with the error when one does not
  • the last 300 lines of server.log and server.log.1

The home folder is written ~, also as the real path a linked home leads to and in Claude Code's project names. A second report on the same day is written beside the first, as saaio-report-<date>-2.txt.