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 — test: remove unreachable thread pr cache tests by t3-code-bot[bot] · Pull Request #25896 · pingdotgg/t3code

Conversation

@t3-code-bot

@t3-code-bot t3-code-bot Bot commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

problem

five complete tests and additional snapshot-update assertions exercise an abandoned thread-pr cache, not a reachable product path. remove that coherent set and its dead implementations while preserving all coverage of the live display resolvers. no user-visible behavior changes.

removal evidence

base: freshly fetched origin/main, 7c3b3b3605ef. searched all tracked first-party files, including scripts and infra, for symbol references and imports. excluding tests, these four exports appear only at their declarations in apps/web/src/components/ThreadStatusIndicators.tsx:

  • resolveThreadPr (base lines 454-468): no caller. remove its complete branch-mismatch test and its describe block. the actual ThreadRowLeadingStatus calls resolveDisplayedThreadPr and resolveDisplayedThreadPrProvider, not this old resolver. retain the distinct live-resolver branch-mismatch, linked-pr, and terminal-state tests.
  • nextThreadChangeRequestSnapshot (529-588): no caller, including within its own module. remove both complete tests that only invoke this abandoned updater: “clears an old snapshot when a different pull request is linked” and “clears an open snapshot when a local thread moves to a branch with no PR”. remove updater assertions from otherwise meaningful display tests, retaining every live-resolver assertion. the merged-pr display test now constructs its input with the existing snapshotFor fixture instead of calling this unused updater.
  • threadChangeRequestSnapshotsEqual (510-527): no caller. remove its complete draft-to-ready cache-comparison test. its private sourceControlProvidersEqual dependency is used only here and is removed too. this is not removal of a live draft-state or provider regression test.
  • threadChangeRequestSnapshotsAtom (478-480): no production mounts, reads, or writes. remove its complete unmount/remount test and describe block. that test demonstrates keep-alive behavior of an atom the application never uses, so it cannot detect a regression in product cache lifetime.

side by side with the removed path: ThreadRowLeadingStatus obtains vcs data through useEnvironmentQuery, retains it with useRetainedValue, and calls the two live display resolvers. keep those resolvers, ThreadChangeRequestSnapshot, linkedPullRequestsEqual, and isTerminalChangeRequestState, all of which still have real callers. retain all 14 remaining tests in this file and the separate shared pull-request cache and link-selection suites. the entire file is not useless and must not be deleted.

broader audit also inspected server/provider, desktop, mobile, shared, and web tests and their callers. retained small but distinct tests, including timezone parsing, codex legacy service tiers, real loopback auth, and cross-client timeline implementations. excluded previously proposed orphan helper removals already covered by open audit prs #15978, #16773, #22811, #24074, and #24846 rather than submitting duplicate changes.

verification

  • clean dedicated checkout switched to the fetched main commit and a unique branch. destructive reset was blocked by the environment; switching a verified-clean checkout to origin/main produced the same clean base without discarding work.
  • vp install passed. an initial focused invocation before installation failed because pdfjs-dist was missing; installation fixed that. install reported an unrelated native ios math xcframework warning; no native builds or device verification claimed.
  • before: vp test run apps/web/src/components/ThreadStatusIndicators.test.ts passed, 1 file / 19 tests.
  • after: same command passed, 1 file / 14 tests. exactly five complete tests removed.
  • vp test run apps/web/src/components/ThreadStatusIndicators.test.ts apps/web/src/state/pullRequests.test.ts packages/client-runtime/src/state/pullRequests.test.ts packages/client-runtime/src/threadPullRequests.test.ts passed, 4 files / 116 tests.
  • vp run check:changed passed, including changed-file formatting, lint, both knip passes, affected web/scripts typechecks, and the focused 14-test suite. rerun after the final edit also passed.
  • git diff --check passed. reviewed the full two-file diff for accidental changes and secrets. only dead code/tests are removed, with a direct fixture replacing the abandoned updater in one retained test. no screenshots or browser sessions needed for unreachable-code removal. no repo-wide test/typecheck run.

created by the scheduled t3code useless test audit automation. bot-only commit, no human co-author. merge only after required ci, macroscope approvability, actual approved review, clean mergeability, and no unresolved blockers.

model: gpt-6.1-sol. harness: hermes agent.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@t3-code-bot
test: remove unreachable thread pr cache tests
119ea6a
@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:L 100-499 changed lines (additions + deletions). labels Oct 27, 2026
macroscopeapp[bot]
macroscopeapp Bot approved these changes Oct 27, 2026
View reviewed changes
@macroscopeapp

macroscopeapp Bot commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved at 119ea6a

Macroscope's review found this PR approvable — This PR removes unreachable thread pull-request cache helpers and their tests while preserving the live display resolver paths and coverage. The production change has no identified customer-path runtime impact, schema impact, or configuration risk.

You can add or adjust custom eligibility rules. Learn more.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@t3dotgg

t3dotgg commented Oct 31, 2026

Copy link
Copy Markdown
Member

Note

🤖 Claude Opus 5.5 responding on behalf of Theo

Closing: this is covered by #26238, which landed. Reopen if a needed part is still missing.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@t3dotgg t3dotgg closed this Oct 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@macroscopeapp macroscopeapp[bot] macroscopeapp[bot] approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

size:L 100-499 changed lines (additions + deletions). vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@t3dotgg
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — 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.