Repository navigation
Description
Before submitting
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area
Server / Settings → Trace Diagnostics
Steps to reproduce
- Use T3 Code normally for ~30 min with a few open threads (one or more delegated tasks / thread launches helps).
- Open Settings → Trace Diagnostics.
Expected behavior
- Slow Spans counts operations that were slow. A subscription that stays open for its whole lifetime is not a slow operation.
- Failures counts real failures. A lookup that misses while a thread is still being created, and the launch then succeeds, is not a user-visible failure.
Actual behavior
From server.trace.ndjson* (201,545 spans, 37.9 min window, Windows desktop 0.1.9.0):
Slow Spans (durationMs >= DEFAULT_SLOW_SPAN_THRESHOLD_MS, 1,000 ms): 1,114. Of these, 440 (39.5%) are subscription lifetimes:
| span | count |
|---|---|
EnvironmentRpc.subscribe |
134 |
ws.rpc.subscribeVcsStatus / subscribeVcsStatus |
82 + 82 |
ws.rpc.orchestration.subscribeThread / orchestration.subscribeThread |
71 + 71 |
Each one records the whole time the client was subscribed, so the count grows with how long panels stay open, not with how slow anything was. The panel can't reach 0 on a healthy install.
Failures: 28 ProjectionStoreThreadNotFoundError exits (ProjectionStore.getThread 20, ProjectionStore.readCanonicalProjection 4, sql.transaction 4). They show up around thread launch and delegated-task start (thread ids like ...native-thread:pending:run... and delegated-task:command:mcp:...:delegate-task:...), before the projection exists. The launches themselves complete.
Impact
The diagnostics panel is the obvious place to check whether an install is healthy. Today it always shows hundreds of slow spans and dozens of failures that are expected behavior, so real problems (for example captureCheckpoint git timeouts) are hard to see among them.
Version or commit
T3 Code (Beta) 0.1.9.0, Windows 11 desktop
Environment
Windows 11, local server, Claude provider
Logs or stack traces
ProjectionStoreThreadNotFoundError: No orchestration projection exists for thread thread:delegated-task:command%3Amcp%3A<uuid>%3Adelegate-task%3A<uuid>.
ProjectionStoreThreadNotFoundError: No orchestration projection exists for thread thread:provider:claudeAgent:native-thread:provider-thread%3A...%3Apending%253Arun...
Workaround
Filter the trace by hand: drop *subscribe* spans from the slow count, and drop not-found lookups that a successful create follows.
Suggestion: leave long-lived stream and subscription spans out of the slow count (or report them as a separate "open streams" figure). Record an expected not-found in an existence check as a non-failure exit (or a span attribute) rather than a Failure.
Activity