perf(chat): unblock response delivery and measure send phases - #1344
Conversation
|
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
tanstack-com | fc63def | Oct 05 2026, 06:58 AM |
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configuration
📒 Files selected for processing (4)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Transcript updates can wait behind a slow sidebar activity projection, even after model output is available. Give each durable outbox its own coalesced publisher, so sidebar PostgreSQL work does not hold up the response stream. Overlap the independent HTTP workflow, lifecycle, and run-context reads after conversation authorization.
Add content-free phase timings for HTTP admission, durable preparation, usage reservation, enrichment, model context, and first text. A live trace measured 1,398 ms inside admission, but the remaining time has not yet been attributed precisely. These logs allow that attribution without treating browser observation time as database latency.
Validation: full pnpm test passed, including all type checks, lint, 537 site tests, 2,274 chat tests, and 20 desktop tests. The real PostgreSQL runtime suite completed successfully. The focused publication and run tests passed 17 cases, including a new regression that blocks sidebar publication while later transcript updates continue. Durable receipts, publisher coalescing, retries, and copy activation checks remain intact.
Summary by CodeRabbit