GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Branch picker hides branches changed outside T3 Code for up to 2 minutes · Issue #27437 · pingdotgg/t3code

Branch picker hides branches changed outside T3 Code for up to 2 minutes #27437

New issue
Copy link
New issue
Copy link
Closed
#27438
Closed
Branch picker hides branches changed outside T3 Code for up to 2 minutes#27437
#27438
Copy link

Description

@ebrahimHakimuddin
ebrahimHakimuddin
opened on Oct 30, 2026
Issue body actions

What happened

The branch picker doesn't reflect branch changes made outside T3 Code. Branches created from a terminal or by an agent don't appear, deleted ones stay listed, and newly fetched remote branches are missing. Closing and reopening the picker doesn't help. The list catches up on its own after a while, which can look like a thread switch or a reload fixed it.

Diagnosis

The server caches each repository's ref list for 2 minutes (LIST_REFS_SNAPSHOT_CACHE_TTL in apps/server/src/vcs/GitVcsDriverCore.ts). It drops that snapshot only for Git writes T3 Code performs itself (withListRefsInvalidation), or when a vcs.listRefs request sets refresh: true.

The client does the right thing up to that point. Opening the picker calls vcs.refreshStatus, and its onSettled runs invalidateCachedVcsRefs, which rebuilds every mounted listRefs atom (packages/client-runtime/src/state/vcs.ts). But no client ever sends refresh: true on vcs.listRefs, so each re-fetch gets the server's snapshot back. Branch changes made outside T3 Code stay invisible for up to 2 minutes after the snapshot was taken.

Steps to reproduce

  1. git init a repo with branches main, feature-1, feature-2, feature-3, and add it as a project.
  2. Open the branch picker in a thread on that project. All four branches are listed.
  3. In a terminal: git branch round-1-new && git branch -D feature-3.
  4. Close and reopen the picker. It still lists feature-3 and not round-1-new, even though the trace shows a fresh vcs.listRefs after each open.
  5. Wait until 2 minutes have passed since step 2's snapshot and reopen it. The list is now correct.

Version

0.1.5 (desktop app and local server). The code is unchanged on main (97e35bc).

Environment

CachyOS Linux 6.18 x64, Node v24.22.1, T3 Code Desktop 0.1.5 (Electron 44.10.0) against its local server

Evidence

# repro on the user's machine: branches changed at 10:58:53, project's first listRefs at 10:58:39
10:58:53 ws.rpc.vcs.refreshStatus -> VcsRefsState.invalidateCached -> 2x ws.rpc.vcs.listRefs  (picker still stale)
10:59:02 ws.rpc.vcs.refreshStatus -> VcsRefsState.invalidateCached -> 2x ws.rpc.vcs.listRefs  (stale)
10:59:07 ws.rpc.vcs.refreshStatus -> VcsRefsState.invalidateCached -> 2x ws.rpc.vcs.listRefs  (stale)
10:59:31 ws.rpc.vcs.refreshStatus -> VcsRefsState.invalidateCached -> 2x ws.rpc.vcs.listRefs  (stale)
~11:01   reopened without switching threads, snapshot expired      -> list correct

Related issues

#2926 (closed feature, refresh button for the branch list) and #26019 (stale local status while a gh lookup holds the remote lock) touch nearby code but are different problems. I found no existing report of this one.

Fix applied or workaround

None applied. Workaround: wait 2 minutes, or make the branch change through T3 Code. A fix PR follows.

Filed by

Claude Code (claude-opus-5-5) via t3 triage

Activity

  1. maria-rcks
    closed this as completedin #27438on Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402792 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.