Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

diagnostics.md

36 lines2.0 KB

1# Maintenance, power, and diagnostics
2​
3Control how aggressively T3 Code runs background checks, keep your computer awake while agents work, inspect server health, and analyze local trace files.
4​
5## Background activity and power
6​
7Configure under **Settings → Maintenance** (per environment):
8​
9- **Background activity**: Choose **Balanced**, **Performance**, or **Battery saver**—or expand **Advanced** to customize pausing on host lock / low-power / battery, **Git fetch interval**, and provider health check intervals.
10- **Keep awake while agents work**: Prevents the host OS from sleeping while an agent turn is running.
11- **Continue threads after restarts**: Automatically resumes supported active threads after an update, crash, or reboot ([details](./updating.md#continue-threads-after-restarts)).
12- **Provider update checks**: Enables checking for newer provider CLIs and updated model catalogs.
13- **Artifacts and logs / Delete now**: Manage disk cleanup ([Storage cleanup](./project-settings.md#storage-cleanup)) and database compaction ([Reclaim database space](./background-service.md#reclaim-database-space)).
14​
15## Diagnostics view
16​
17Open **Settings → Maintenance → Diagnostics** (select an environment) to inspect:
18​
19- Live server logs and recent failures
20- Trace spans and CPU/memory resource history
21- Running child processes (with controls to signal or stop them)
22- **OpenTelemetry export** (OTLP HTTP endpoints; see [Export diagnostics](./telemetry.md#export-diagnostics-to-your-own-opentelemetry-receiver))
23​
24On mobile, startup crashes from the last 7 days are recorded under **Settings → Diagnostics** for bug reports.
25​
26## Inspect local trace files (`t3 trace`)
27​
28Summarize latency, rates, interrupts, and failures from the server's rotated trace files directly from the host terminal:
29​
30```sh
31t3 trace summary # Top 25 busiest spans
32t3 trace summary --since 30m # Spans ended in the last 30 minutes
33t3 trace summary --since 2h --limit 50
34```
35​
36Pass `--base-dir <path>` (or set `T3CODE_HOME`) for a non-default data directory.