Review follow-ups: the investigate section now starts by identifying how
T3 Code runs (npx t3 serve, background service, desktop app) and which
surface the user connects from (website, desktop local/remote, mobile).
SQLite writes go from banned to allowed only when they fix the described
problem, with explicit user permission.
Co-Authored-By: Claude Fable 5 <[email protected]>
Users with a broken install run `npx t3 triage`. The command writes a
context.md with machine facts (version, OS, state/log paths, server
liveness), then launches claude or codex interactively, seeded with a
triage playbook. The agent asks what went wrong, investigates on the
machine, and helps file a labeled issue on pingdotgg/t3code.
The playbook is the product: agents fetch the latest copy from main
(.github/triage/PLAYBOOK.md) so old releases get current triage behavior
without an update. The bundled copy in triagePrompt.ts is the offline
fallback; a test keeps the two byte-identical. With no agent CLI
installed, the prompt and context are written to disk to paste into any
agent.
Co-Authored-By: Claude Fable 5 <[email protected]>
Bugbot flagged that clients collapse only adjacent lifecycle rows, so
dropping a superseded update separated by an interleaved parallel call
diverges from full-history rendering. Measured on a real database: 1.5%
of dropped rows (553/36,581), all pure in-flight state whose final result
the retained completion still shows, and zero dropped rows carry a
client-merged payload field their completion lacks (verified across all
49,515 update rows). Documents the tradeoff and adds a test pinning it.
Co-Authored-By: Claude Fable 5 <[email protected]>
A tool.updated row is the in-flight snapshot of a call; once the call
completes, the tool.completed row carries the final state and both
clients fold every matching update into it. Shipping the updates buys
nothing: 47k such rows exist in one real database, and a single thread
carries 3,291 of them.
Filter them out of thread snapshots, mirroring the existing
context-window dedup. Matching is per turn and only against a LATER
completion, so a revert that discards the completing turn cannot leave
a call unrepresented, and a later update under the same identity (the
next call, still in flight) survives. Live events are untouched.
Rows are matched on the same identity the clients collapse by: an
explicit data.toolCallId when the adapter emits one, otherwise the
itemType/title/detail triple. No tool lifecycle row in the real db
carries a toolCallId, so the fallback does the work.
Co-Authored-By: Claude Fable 5 <[email protected]>
A pending update in the launcher state is not proof a replacement
server is coming: `t3 service uninstall` or `systemctl stop` during
the pending window also tears the server down, permanently. The
launcher now writes a stop marker before signalling its child on an
explicit stop and clears it on the next start; the shutdown tunnel
release keeps the tunnel only for pending updates without the marker.
Co-Authored-By: Claude Fable 5 <[email protected]>