Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(client-runtime): typecheck device hub ticket request on main #11304

Mergedjuliusmarmingemerged 1 commit intomain fromrefs/pull/11304/headmerged by juliusmarminge View on GitHub

juliusmarmingecommented

Main's Check job fails typecheck in `packages/client-runtime` (run). #10677 and #11029 merged back-to-back with no textual conflict, but #11029 changed `executeAuthenticatedEnvironmentHttpRequest` to require a `group` and hand the callback a group-scoped client, while #10677's new `deviceHubAccess.ts` still called the full-API client (`client.auth.webSocketTicket`).

Pass `group: "auth"` and call `client.webSocketTicket` on the group client, matching the other callers. Typecheck for client-runtime, web, and mobile passes locally.

Claude Fable 5 via Claude Code in T3 Code.

🤖 Generated with Claude Code


Devin Review

Summary by CodeRabbit

  • Bug Fixes
    • WebSocket connections now request tickets with the correct authentication group, improving access reliability.
    1. Bugbot is paused — on-demand spend limit reached

      Bugbot uses usage-based billing for this team and has hit its on-demand spend limit.

      A team admin can raise the spend limit in the Cursor dashboard, or wait for the next billing cycle to continue.

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

    3. Approvability

      Verdict: Not approved

      Macroscope's review found this PR not approvable — This small fix selects the correct auth-group client for the existing device-hub websocket-ticket request, while leaving cookie-session behavior unchanged. Because the modified path handles authentication credentials and ticket issuance, it warrants focused human review despite its limited scope.

      You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    4. Review Change StackReview Change Stack

      No actionable comments were generated in the recent review. 🎉

      ℹ️ Recent review info
      ⚙️ Run configuration

      Configuration used: Path: .coderabbit.yaml

      Review profile: CHILL

      Plan: Team

      Run ID: 67897329-7b8e-4965-88c7-af79f75bea9d

      📥 Commits

      Reviewing files that changed from the base of the PR and between e1c94f703f05b43f2935d09ed1ef882d0ee13ff8 and 097537712681c0bf0c6cdc75887875afbf5aff83.

      📒 Files selected for processing (1)
      • packages/client-runtime/src/state/deviceHubAccess.ts

      Included review availability: Your plan provides up to 10 included reviews per hour; 4 remain after this review.


      📝 Walkthrough

      Walkthrough

      The authenticated WebSocket ticket request now uses client.webSocketTicket and includes the "auth" group. The method, endpoint, timeout, and headers remain unchanged.

      Changes

      WebSocket ticket request

      Layer / File(s)Summary
      Update authenticated ticket request
      packages/client-runtime/src/state/deviceHubAccess.ts
      The request adds the "auth" group and switches from client.auth.webSocketTicket to client.webSocketTicket. Other request parameters remain unchanged.

      Priority: ⬇️ Low

      Estimated code review effort: 1 (Trivial) | ~3 minutes

      Change: Bug fix

      Merge Risk: ⚪ Minimal · up to 09753

      The WebSocket ticket request uses the correct scoped API and auth group, with no remaining merge-blocking risk identified.

      🚥 Pre-merge checks | ✅ 5
      ✅ Passed checks (5 passed)
      Check nameStatusExplanation
      Description check✅ PassedThe description clearly explains the typecheck failure, the cause, the code change, and the local validation results. It does not use the template headings or include the checklist, but the required t…
      Title check✅ PassedThe title is concise and accurately identifies the client-runtime typecheck fix for the device hub ticket request.
      Docstring Coverage✅ PassedNo functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1…
      Linked Issues check✅ PassedCheck skipped because no linked issues were found for this pull request.
      Out of Scope Changes check✅ PassedCheck skipped because no linked issues were found for this pull request.
      ✨ Finishing Touches
      📝 Generate docstrings
      • Create stacked PR
      • Commit on current branch
      🧪 Generate unit tests (beta)
      • Create PR with unit tests
      • Commit unit tests in branch `fix/device-hub-ticket-group-client`

      Comment `@coderabbitai help` to get the list of available commands.
    5. Thread transfer impact

      ✅ Thread transfer remains within every enforced ceiling.

      ℹ️ The exact PR base did not have a successful artifact. Baseline uses the latest successful main measurement shown below.

      ProviderMetricMain baselineThis PRImpactPR ceiling
      CodexTotal thread wire13.6 KiB13.6 KiB+43 B (+0.3%)15.1 KiB✅
      CodexThread snapshot wire7.0 KiB7.0 KiB−2 B (−0.0%)7.3 KiB✅
      CodexLive turn WebSocket wire6.5 KiB6.6 KiB+45 B (+0.7%)7.8 KiB✅
      CodexLive turn WebSocket decoded57.0 KiB57.1 KiB+88 B (+0.2%)66.4 KiB✅
      CodexLive turn messages810+2 (+25.0%)21✅
      ClaudeTotal thread wire13.6 KiB13.5 KiB−12 B (−0.1%)15.1 KiB✅
      ClaudeThread snapshot wire7.1 KiB7.1 KiB+2 B (+0.0%)7.3 KiB✅
      ClaudeLive turn WebSocket wire6.5 KiB6.5 KiB−14 B (−0.2%)7.8 KiB✅
      ClaudeLive turn WebSocket decoded57.8 KiB57.8 KiB0 B (0.0%)66.4 KiB✅
      ClaudeLive turn messages880 (0.0%)21✅

      Baseline: 7bd7f99 · PR result: 0975377 · Source CI: success

      Scenario and decoded snapshot size

      10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.

      • Codex decoded thread snapshot: 113.9 KiB
      • Claude decoded thread snapshot: 114.6 KiB

      Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.

    6. juliusmarminge merged thisfb52d12

    7. juliusmarminge closed this

Sign in to join this conversation.