Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): settle inactive threads without a PR lookup #10103

Mergedt3dotgg(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/10103/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHub

A failed or stalled pull request lookup kept inactive threads unsettled, even when they already met the inactivity limit.

Check inactivity before host lookups. Only threads that still need PR state enter the lookup groups. Keep the existing activity timestamp, current settings check, and stale-snapshot guard.

Verified with 25 settlement policy and reactor tests, the server typecheck, and scoped lint and formatting. The new unavailable-host test fails against the original source. A shared-lookup test confirms that the inactive thread settles while the recent thread waits for its host result.

Startup readiness and PR terminal timestamp rules are unchanged.

Created with GPT-6 Astra in Codex.

Note

Settle inactive threads without pull request lookup in ThreadSettlementReactor

  • Inactive threads are now settled without reading Git or pull-request host state, so settlement does not wait on host availability or PR lookups.
  • Updates ThreadSettlementReactor tests to give recent user-message timestamps to threads that must stay active for PR-related paths, while inactive threads exercise the no-lookup settlement path.
  • Added tests verify that inactive linked and branch threads settle without invoking Git or PR operations, and that an inactive thread settles while a shared PR lookup is still pending.
  • Behavioral Change: inactive threads are settled before the PR/branch lookup pass runs; callers relying on PR lookup happening for already-inactive threads will see those lookups skipped.
Macroscope summarized c152498.
    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: Approved at 6590227

      Macroscope's review found this PR approvable — This is a focused server bug fix that reuses the existing inactivity policy to settle eligible threads before network or host-dependent pull-request lookups. Existing lookup behavior remains for threads that still require pull-request state, and targeted tests cover unavailable and delayed lookup scenarios.

      No code changes detected at c152498. Prior analysis still applies.

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

      Thread transfer impact

      ✅ Thread transfer remains within every enforced ceiling.

      ProviderMetricMain baselineThis PRImpactPR ceiling
      CodexTotal thread wire13.5 KiB13.6 KiB+71 B (+0.5%)15.1 KiB✅
      CodexThread snapshot wire7.0 KiB7.0 KiB0 B (0.0%)7.3 KiB✅
      CodexLive turn WebSocket wire6.5 KiB6.6 KiB+71 B (+1.1%)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.6 KiB+12 B (+0.1%)15.1 KiB✅
      ClaudeThread snapshot wire7.0 KiB7.0 KiB0 B (0.0%)7.3 KiB✅
      ClaudeLive turn WebSocket wire6.6 KiB6.6 KiB+12 B (+0.2%)7.8 KiB✅
      ClaudeLive turn WebSocket decoded57.9 KiB57.9 KiB0 B (0.0%)66.4 KiB✅
      ClaudeLive turn messages10100 (0.0%)21✅

      Baseline: 7544d3d · PR result: c152498 · 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.8 KiB
      • Claude decoded thread snapshot: 114.5 KiB

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

    4. 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.

Sign in to join this conversation.