Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(vcs): passive sidebar rows stop retaining remote pollers #15666

Mergedmaria-rcksmerged 3 commits intomain fromrefs/pull/15666/headmerged by maria-rcks View on GitHub

maria-rckscommented

passive sidebar, search, and palette consumers keep local updates and cached remote status without retaining remote refresh loops. active vcs controls keep their refresh behavior. web and mobile demand follow the same subscription boundary; cache eviction remains in #15301.

verified at 0dd98312: 192 existing tests plus one linux skip, scoped typechecks/lint, and two independent code approvals. real root/linked-worktree subscriptions preserved cached upstream/ahead status. a 72-second passive-only interval had zero remote poller spans; active use retained the poller, refreshed after 30 seconds, and released it. after codex completion, a passive subscriber received the local update.

matching sidebar captures bracket active use at this head. the clip's projectless draft retains an unrelated scratch scope; the zero-poller proof comes from a separate passive-only page. github pr badges, native clients, and relay/tunnel runtime remain unverified.

passive sidebar before active use

passive sidebar after active use

actual active linked controls and passive sidebar

simplification and verification: gpt-6.1-sol in codex through t3 code.

    1. coderabbitai[bot](GitHub profile, opens in a new tab)commented

      Warning

      Review limit reached

      Only developers with an assigned seat can use this organization's usage-based review budget, and seats here are assigned manually. Ask an admin to assign a seat, or change the review continuation mode in Billing.

      Next included review available in 7 minutes.

      Check out review usage here.

      View limit details

      Limit details: You’ve used all 10 included reviews currently available.

      Learn how review limits work.

      Review configuration:

      ⚙️ Run configuration
      • Configuration used: Path: .coderabbit.config.ts
      • Review profile: CHILL
      • Plan: Advanced
      • Run ID: 74d396ed-c6e4-48d8-a462-49c4b60e6acf
      📥 Commits

      Reviewing files that changed from the base of the PR and between 17c0878941ab8ab19108fb639c5138d92a89e919 and 0dd983120aecb7a7c3fc7e4972d33fde6988c18e.

      📒 Files selected for processing (11)
      • apps/mobile/src/connection/background-activity-scopes.ts
      • apps/mobile/src/connection/background-activity.test.ts
      • apps/server/src/git/GitManager.test.ts
      • apps/server/src/vcs/VcsStatusBroadcaster.test.ts
      • apps/server/src/vcs/VcsStatusBroadcaster.ts
      • apps/web/src/components/Sidebar.tsx
      • apps/web/src/components/ThreadStatusIndicators.tsx
      • apps/web/src/lib/backgroundActivityReporter.test.ts
      • apps/web/src/lib/backgroundActivityReporter.ts
      • packages/contracts/src/git.ts
      • packages/contracts/src/rpc.ts
      • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

      Comment `@coderabbitai help` to get the list of available commands.
    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 PR changes existing sidebar subscriptions to suppress remote VCS polling and propagates that decision through the RPC contract, server poller lifecycle, and background-demand reporting. The behavior is well tested and backward-compatible for other callers, but it changes effective product behavior and gates non-trivial production work, warranting human review.

      You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    4. maria-rcks merged this5055de3

    5. maria-rcks closed this

Sign in to join this conversation.