An expired session exits 3 with one line saying to run quak login (closes #164) #173

Merged
clawbot merged 1 commits from issue-164-expired-session-exit-3 into next 2026-10-06 14:01:50 +02:00
1 Commits
Author SHA1 Message Date
clawbot b8c5a26552 An expired session exits 3 with one line saying to run quak login (closes #164)
check / check (push) Waiting to run
A 401 from the server that ends a command reaches run in src/cli-run.ts as
an ApiError; run prints one line saying to run "quak login" and exits 3.
quak backup meets it on its first refresh, before it touches any file. For
the commands that load the saved session, a missing or corrupt session file
keeps its message and also exits 3.

Judgement call: quak logout is unchanged; it handles its own errors and
deletes the session file whatever the server answers.
Judgement call: quak backup still prints its two progress lines before the
error line.

Model: opus-5-5
2026-10-06 10:48:13 +00:00