Commit Graph
7 Commits
Author SHA1 Message Date
Theo BrowneandClaude Fable 5 3cc7cf3c83 perf(server): trace logs keep hours of history instead of minutes
The local trace file burned through its whole 100 MB rotation window in
10-36 minutes, which made incident audits impossible: by the time a
slow-PR-badge report came in, the relevant spans were already rotated
away. Two sources dominated: the terminal subprocess poller (~40% of
bytes: pgrep + up to three ps spawns per session per second, each a full
process-table enumeration) and sql.execute spans (~28%).

Write less:
- One shared ps/powershell process-table snapshot per poll tick serves
  every running terminal; per-session inspection is now pure lookup.
  This also removes 50-75 process spawns/sec on busy hosts.
- The poll tick runs untraced; an explicit
  terminal.subprocessActivityChanged span fires only on a real state
  flip.
- Tail policy in the local file tracer: failures, interruptions, spans
  with events, and slow spans always persist; fast successes are
  rate-limited per span name (50 per 30s). OTLP delegate still sees
  every span. T3CODE_TRACE_KEEP_ALL_SPANS=true restores full fidelity.
- Dropped constant db.name/service.name attributes from every
  sql.execute span.

Keep more:
- Rotated trace backups are gzipped (measured 10.6x on real span data)
  and T3CODE_TRACE_MAX_FILES now defaults to 30, so the same disk
  budget covers hours.
- TraceDiagnostics reads backups one file at a time (instead of
  slurping every rotation into memory) and transparently gunzips .gz
  backups; plain legacy backups still age along the chain.

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-08-08 21:12:57 -07:00
ae7b27de82 fix: prevent reconnect loops during server stalls (#5561)
Co-authored-by: t3-turbo-simulation <[email protected]>
Co-authored-by: Claude Fable 5 <[email protected]>
Co-authored-by: Theo Browne <[email protected]>
2026-08-06 21:14:50 -07:00
Julius Marmingeandcodex 49c0d96edf Reduce idle work and disk churn with native resource diagnostics (#2679)
Co-authored-by: codex <[email protected]>
2026-07-29 14:42:01 +02:00
Julius Marmingeandcodex d53237cbd1 [codex] sanitize ACP native event diagnostics (#3417)
Co-authored-by: codex <[email protected]>
2026-06-20 11:50:14 -07:00
Julius Marmingeandcodex a04c09a190 Use HttpApi for Environment APIs & standardize authn/authz (#2858)
Co-authored-by: codex <[email protected]>
2026-06-02 15:20:30 -07:00
Julius Marmingeandcodex 31268945f8 Extract collection performance refactors from mobile stack (#2854)
Co-authored-by: codex <[email protected]>
2026-05-28 16:18:58 -07:00
aa219be713 port desktop app to Effect (#2546)
Co-authored-by: Cursor Agent <[email protected]>
Co-authored-by: codex <[email protected]>
2026-05-07 21:17:08 -07:00