Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(web): remove the "some requests are slow" warning #11771

Openmaria-rckswants to merge 10 commits intomain fromrefs/pull/11771/headopened View on GitHub

maria-rckscommented

The web client no longer displays “Some requests are slow.” Its dedicated latency tracker, timers and observer registration are removed. Unary RPC requests continue through the shared observer’s existing no-op default. Other toast coordinators and hosts remain mounted.

Maintainer rebuild of @maria-rcks’s #11771, with the contributor commits preserved and main merged. The final change removes only the warning, its state/tests and its wiring.

Verification:

  • Removed 39 obsolete tracker tests; the 14 existing shared RPC tests remain unchanged and pass (focused total 53 → 14). Those tests cover observer-backed unary success and subscription failures/cancellation; the live pass below exercises the default no-op unary path.
  • Before: real vcs.listRefs call through the app atom/runtime and actual server, with exactly one outgoing frame held in the browser for 22 seconds. The real warning appears after 15 seconds and clears when the real server response arrives at 22.092 seconds. Payload and application timers are unchanged.
  • After at 53ee92a: the same delayed request completed successfully at 22.011 seconds. A DOM observer saw no warning throughout the pending request and completion. Targeted lint/format, web typecheck and two React Compiler checks passed. Both independent full-diff reviewers found no blockers in round 1.
  • The real Snooze and Wake now actions also completed in the isolated client. Current main uses the snoozed-thread banner; no snooze/Undo toast claim is carried over from the original description. Clone notifications and custom snooze were checked in source only.
  • Native desktop, mobile and remote/relay/tunnel were not exercised. No provider or wire contract changes.

Before — actual main renderer, delayed read-only RPC:

Before: real slow RPC displays the warning

Before: warning appears after the threshold

After — rebuilt renderer, matching delayed read-only RPC:

After: same request without the warning

After: delayed RPC completes without a warning

Landing is handled centrally; no merge or recurring watcher.

Tests: GPT-6-Astra; implementation: GPT-6.1-Sol; independent reviews: Claude Opus 5.5 and GPT-6-Sol, through T3 Code (Codex/Claude harnesses).

    1. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted

    2. macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      Approvability

      Verdict: Needs Human Approval

      Macroscope's review found this PR requires human approval — This removes the automatic slow-request warning and its latency tracking, so users will no longer receive that feedback during delayed requests. Human review is required to confirm this change to default product behavior.

      You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    3. coderabbitai[bot](GitHub profile, opens in a new tab)commented
      Review in Change Stack →

      Note

      Reviews paused

      It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

      • Last reviewed commit: 53ee92aa03bddbc4cd4f1f7dad9071384017f5dc
      • Latest commit, not reviewed: 747eef397727776fd1e1569611694c73b2d12627

      Use the following commands to manage reviews:

      • @coderabbitai resume to resume automatic reviews.
      • @coderabbitai review to trigger a single review.

      Use the checkboxes below for quick actions:

      • ▶️ Resume reviews
      • 🔍 Trigger review

      No actionable comments were generated in the recent review.

      Walkthrough

      The web app no longer tracks slow RPC acknowledgments or displays slow-request toast notifications. The latency tracking module, platform observer wiring, toast coordinator, and related tests were removed.

      Changes: Slow RPC tracking removal

      Layer / File(s)Summary
      Remove latency tracking state
      apps/web/src/rpc/requestLatencyState.ts, apps/web/src/rpc/requestLatencyState.test.ts
      The slow RPC tracking module and its tests were deleted.
      Remove platform observer wiring
      apps/web/src/connection/platform.ts
      The connection platform no longer imports or registers the RPC request observer and tracking services. It also no longer generates request IDs for this observer.
      Remove slow-request toast UI
      apps/web/src/components/SlowRpcRequestToastCoordinator.tsx, apps/web/src/routes/__root.tsx
      The toast coordinator was deleted, and the root route no longer imports or renders it.

      Estimated code review effort: 2 (Simple) | ~10 minutes

      Change: Bug fix

      Suggested reviewers: juliusmarminge

      Merge Risk: Minimal · previous review 53ee9

      The web app no longer displays slow-request warnings as intended. Unary RPC calls and connection composition remain intact, leaving no identified issue that needs resolution before merge.

      Security architecture risk: Minimal · up to 53ee9

      The change removes a slow-request warning without changing request permissions or response delivery. No material security risk introduced or worsened by this change was identified.

      Retained concerns No architecture-level concerns identified.

      Security review details

      Security Blast Radius

      • inferred — The demonstrated effect is limited to browser-side request diagnostics. The comparison does not add an attacker-controlled entrypoint, increase request authority, or change the authorization path.

      Resilience and Maintainability Implications

      • inferred — The removed lifecycle owns only transient timers, diagnostic entries, and a warning toast. With both its producer and consumer removed, request success, failure, interruption, repetition, and concurrency no longer create that diagnostic state. The inspected change introduces no persistent reservation or ownership transfer requiring migration or recovery.
      Pre-merge checks: Passed 4

      Check nameStatusExplanation
      Title checkPassedThe title clearly and concisely identifies the primary change: removing the web client's “Some requests are slow” warning.
      Description checkPassedThe description explains the change, verification steps, screenshots, test results, and untested environments. It does not use the template's explicit Problem, Change, and Scope and approval headings,…
      Linked Issues checkPassedCheck skipped because no linked issues were found for this pull request.
      Out of Scope Changes checkPassedCheck skipped because no linked issues were found for this pull request.
      Full details: Description check

      Explanation

      The description explains the change, verification steps, screenshots, test results, and untested environments. It does not use the template's explicit Problem, Change, and Scope and approval headings, but it provides most of the required information in equivalent content.

      Finishing Touches

      🧪 Generate unit tests (beta)

      • Create a new PR
      • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
      ℹ️ Recent review info

      ⚙️ Run configuration

      • Configuration used: Path: .coderabbit.config.ts
      • Review profile: CHILL
      • Plan: Advanced
      • Run ID: 101c60ab-813c-4b3b-812b-d996c29f1e27
      📥 Commits

      Reviewing files that changed from the base of the PR and between cc0cea3019f9cf0e3eda54bffbc71697da8d530e and 53ee92aa03bddbc4cd4f1f7dad9071384017f5dc.

      📒 Files selected for processing: 4

      • apps/web/src/components/SlowRpcRequestToastCoordinator.tsx
      • apps/web/src/connection/platform.ts
      • apps/web/src/routes/__root.tsx
      • apps/web/src/rpc/requestLatencyState.ts
      💤 Files with no reviewable changes: 3

      • apps/web/src/routes/__root.tsx
      • apps/web/src/components/SlowRpcRequestToastCoordinator.tsx
      • apps/web/src/rpc/requestLatencyState.ts

      Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.

    4. juliusmarminge added labelsmacroscope-review

    5. juliusmarminge assignedjuliusmarminge

    6. Taking over this one for batch web-misc-07: I’ll merge current main, independently rebuild the focused warning removal, verify RPC behavior and the web UI, then push back here. Landing remains with the coordinator.

    7. tanstack-source added labelsbug

Sign in to join this conversation.