Registry Mirror
Skip to content

Conversation

@saphid

@saphid saphid commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

Problem

The PR list search parser cut label groups, exclusions, and comma-list values to the 10-value cap before removing duplicates, so repeated copies of one label pushed a distinct typed label out of the query. The later dedupe in combinePullRequestFilters could drop the repeats but could not bring back the value already cut, so the list ignored a label the user typed.

Deterministic repro on origin/main (84767997f07673f7572bf4c74b6a660ef8112100) — from the repo root:

import { combinePullRequestFilters, parsePullRequestQuery } from "./packages/client-runtime/src/pullRequestQuery.ts";
combinePullRequestFilters({}, parsePullRequestQuery("label:bug ".repeat(10) + "label:release").filters);
parsePullRequestQuery("label:" + "bug,".repeat(10) + "release").filters;
  • Observed: {"labels":[["bug"]]} and {"labels":[["bug" ×10]]} — release is gone, so a bug-only PR still matches.
  • Expected: {"labels":[["bug"],["release"]]} (bug AND release) and {"labels":[["bug","release"]]} (bug OR release).

Reachability: web (usePullRequestListView) and mobile (PullRequestsScreen / pullRequestList) parse the typed search with parsePullRequestQuery, combine it with combinePullRequestFilters, then use the result both for local filtering and (via boundPullRequestFilters) the list RPC, so both paths lose release.

Change

The parser now dedupes with the existing label and label-group keys before each cap (first occurrence wins, order kept), so only distinct values count toward the limit. The wire limits are unchanged, and web, desktop, and mobile all get the fix through the shared client-runtime parser.

Scope

Small fix for an obvious bug; no issue needed under CONTRIBUTING.md.

Verification

  • New case spends the cap on distinct labels, not on repeats of one in packages/client-runtime/src/pullRequestQuery.test.ts covers the AND, OR, and exclusion forms.
    • Base: with pullRequestQuery.ts restored to 84767997f076 and the new test kept, vp test run packages/client-runtime/src/pullRequestQuery.test.ts -t "spends the cap" fails with AssertionError: expected [ [ 'bug' ] ] to deeply equal [ [ 'bug' ], [ 'release' ] ].
    • Head 7b12180677b0: the full file passes 31/31 (vp test run packages/client-runtime/src/pullRequestQuery.test.ts).
  • vp run check:changed exits 0 on head 7b12180677b0 (format, lint, knip, typecheck, tests). The summary is in the transcript.
  • Before/after runtime transcript with both test runs and the check summary: https://gist.github.com/saphid/f6ab525f609227a7d63c361ad379bbf3

Not shown: no screenshots of the web or mobile PR list, and no scenarios:prove run. This is a parser-only change, so the PR list renders exactly as before for any query without repeated labels.

Authored by Claude Opus 5.5 (Model Hub); reviewed by GPT-6.2 Sol (Codex).

Not shown

  • before-after-transcript.md:82 — The linked gist contains the regression result but not the promised head-bound check:changed summary. Append the verified summary and head SHA, or remove the claim that the summary is in the gist.
  • .github/pull_request_template.md:10 — In the draft repro, distinguish the AND and OR row outcomes: a bug-only row incorrectly remains for AND; a release-only row incorrectly disappears for OR. Seed bug-only, release-only, and both-label rows for a future scenarios:prove run.
  • .github/pull_request_template.md:24 — No before/after client capture or scenarios:prove run; the draft correctly discloses both. The rendered-row outcome was traced in source, not observed in a running client.

@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:S 10-29 changed lines (additions + deletions). labels Dec 4, 2026
@macroscopeapp

macroscopeapp Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved at 0fdad03

Macroscope's review found this PR approvable — Repeated labels no longer consume the filter cap before distinct labels are considered. The change is limited to explicit PR searches on web and mobile, with existing defaults and request limits unchanged.

Notes:

  • All code in this push has already been reviewed. Approvability was decided on eligibility alone.

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

macroscopeapp[bot]
macroscopeapp Bot previously approved these changes Dec 4, 2026
@coderabbitai

coderabbitai Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Pull request query handling deduplicates normalized label names and groups before applying limits. Regression tests cover repeated included and excluded labels, including repeated names in comma-separated qualifiers.

Changes: Pull request label deduplication

Layer / File(s) Summary
Normalize and limit labels
packages/client-runtime/src/pullRequestQuery.ts, packages/client-runtime/src/pullRequestQuery.test.ts
boundedNames removes empty and duplicate names before applying the 10-name limit. Parsed label groups and excluded labels are also deduplicated before their limits. labelGroupKey provides normalized group identity for parsing and filter combination. Tests cover repeated included and excluded labels.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Suggested reviewers: only21mil, stienswout

Merge Risk: Minimal · up to 0fdad

This change fixes label searches where repeated copies of one label could crowd a distinct label out of the 10-value cap. It is a narrow parser fix with regression tests, and no merge-blocking risk was identified.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the fix (keeping distinct PR label filters when repeated labels hit the cap) in the client-runtime package, matching the parser change that dedupes before applying the 10-value cap. It…
Description check Passed The description covers Problem, Change, Scope, and Verification. The Problem section gives the cause and a reproduction. The Change section explains the dedupe-before-cap fix and that wire limits are …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the fix (keeping distinct PR label filters when repeated labels hit the cap) in the client-runtime package, matching the parser change that dedupes before applying the 10-value cap. It follows the conventional commit format and the description's example style.

Full details: Description check

Explanation

The description covers Problem, Change, Scope, and Verification. The Problem section gives the cause and a reproduction. The Change section explains the dedupe-before-cap fix and that wire limits are unchanged. Scope explains why no issue is linked. Verification lists a focused regression test, the base and head test results, and a check:changed run. It also discloses what was not shown. Two gaps remain: the linked gist does not contain the check:changed summary the text promises, and the closing line requires the agent model and harness, which the text gives as Claude Opus 5.5 (Model Hub) and reviewer GPT-6.2 Sol (Codex) but not the harness.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between d4b0393 and 0fdad03.

Files selected for processing: 1

  • packages/client-runtime/src/pullRequestQuery.test.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review.

@juliusmarminge juliusmarminge added the takeover:in-progress A takeover lead is working on this PR label Dec 4, 2026
juliusmarminge and others added 2 commits December 4, 2026 09:44
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@macroscopeapp
macroscopeapp Bot dismissed their stale review December 4, 2026 09:46

Dismissing prior approval to re-evaluate 0fdad03

@juliusmarminge

Copy link
Copy Markdown
Member

Evidence

Real web app, Chromium, light theme, 1920×1080 CSS viewport; fresh isolated databases on both commits. Live GitHub PR data from pingdotgg/t3code, added through the app's project CLI. The triage label names were replaced with existing size:S/size:M labels; #29528 has size:S.

Starting from control 29528 label:size:S, replace the search and press Enter:

  1. AND: 29528 + ten copies of label:size:S + label:size:M.
  2. OR: 29528 label: + ten comma-separated copies of size:M + ,size:S.
  3. Exclusion: 29528 + ten copies of -label:size:M + -label:size:S.

Wait for settled results before each capture. Each still was checked against an identical screenshot taken at least 500 ms apart. All captures and both recordings were visually inspected.

Case Before — 1023b480ae After — 0fdad03283
AND Later required label dropped; size:S PR remains (1 result). Before: repeated AND label drops size:M Both labels required; no results. After: repeated AND labels preserve size:M
OR Later size:S alternative dropped; target PR missing (1 result). Before: repeated OR label drops size:S Target PR included alongside the size:M match (2 results). After: repeated OR labels preserve size:S
Exclusion Later size:S exclusion dropped; target PR remains (2 results). Before: repeated exclusions drop size:S Target PR excluded; size:L match remains (1 result). After: repeated exclusions preserve size:S
Interaction Before recording After recording

Project seed script · Exact queries

The number search also matches descriptions: #25999 is the size:M OR match and #28565 is the surviving size:L exclusion match. Their behavior is identical between commits.

Not shown:

  • The exact synthetic five-PR bug/release/wip/draft dataset from triage was not recreated; the same ten-repeat AND, OR, and exclusion defect was demonstrated with existing public size:S/size:M labels.
  • Native mobile and desktop shell surfaces, case-folded labels, reordered equivalent OR groups, and the cap with more than ten genuinely distinct labels were not exercised.

@juliusmarminge juliusmarminge added takeover:ready Takeover done; auto-lands when gates pass and removed takeover:in-progress A takeover lead is working on this PR labels Dec 4, 2026
@juliusmarminge
juliusmarminge merged commit 0077a0d into pingdotgg:main Dec 4, 2026
60 checks passed
@juliusmarminge juliusmarminge removed the takeover:ready Takeover done; auto-lands when gates pass label Dec 4, 2026
github-actions Bot added a commit to omarcresp/t3code-flake that referenced this pull request Dec 4, 2026
**v0.1.14-nightly.20261204.5719** · 96 changes from 16 contributors

- **Custom pull request formats.** Custom pull request instructions can now replace the default description format.
- **OpenCode reasoning default.** Return to the model’s default reasoning level after choosing another level.
- **Faster terminal closing.** Closing a terminal no longer waits for history writes from other busy terminals.
- **Terminal startup pastes.** Long commands pasted during shell startup are no longer truncated or left waiting after Enter.
- **Missing worktree recovery.** Recover a thread when its removed worktree cannot be recreated, instead of getting stuck on every message.

### Plus 87 more bug fixes and performance improvements.

<details>
<summary>Full changelog</summary>

## What's Changed
* fix(client-runtime): match canonically equivalent machine names in composer mentions by @saphid in pingdotgg/t3code#48718
* fix(client-runtime): keep distinct PR label filters when repeated labels hit the cap by @saphid in pingdotgg/t3code#48713
* fix(client-runtime): find chat file links after a shell here-string by @saphid in pingdotgg/t3code#48725
* fix(server): link_pull_request no longer promises settle-on-merge when auto-settle is off by @juliusmarminge in pingdotgg/t3code#48739
* fix(web): scrolling a selected cell behind a frozen spreadsheet pane no longer leaves a green selection bar on the divider by @only21mil in pingdotgg/t3code#48724
* fix(web): terminal honors OS key remaps like Caps Lock as Escape by @haraldvinje in pingdotgg/t3code#48715
* fix(shared): match escaped whitespace in Markdown footnote back-links by @saphid in pingdotgg/t3code#48726
* perf(web): streaming, thread switches and typing re-render fewer components by @maria-rcks in pingdotgg/t3code#48244
* fix(web): Files breadcrumb keeps the filename visible as toolbar actions appear by @StiensWout in pingdotgg/t3code#48742
* fix(desktop): an older cache saved from a fallback shell no longer pins its PATH by @StiensWout in pingdotgg/t3code#48736
* fix(web): binary CSV previews show one Show source button that switches the view by @StiensWout in pingdotgg/t3code#48749
* fix(client-runtime): keep media URLs inside multiline PR code spans literal by @juliusmarminge in pingdotgg/t3code#48761
* fix(provider-core): custom PR instructions can replace the default body format by @juliusmarminge in pingdotgg/t3code#48762
* fix(web): give workflow questions distinct keyboard focus targets by @saphid in pingdotgg/t3code#48755
* fix(web): open HFS+ disk images with a bare DDM partition label by @saphid in pingdotgg/t3code#48729
* fix(server): installed voice models work while another model downloads by @Jozeph-Zemambo in pingdotgg/t3code#48728
* fix(client-runtime): failed cloud transcriptions offer Retry instead of Record again by @juliusmarminge in pingdotgg/t3code#48767
* fix(server): long pastes after answering a terminal startup prompt are no longer cut off by @StiensWout in pingdotgg/t3code#48752
* fix(server): a stalled terminal viewer no longer blocks query replies from another viewer by @StiensWout in pingdotgg/t3code#48748
* fix(web): follow EPUB links to chapters rendered through a fallback by @saphid in pingdotgg/t3code#48740
* fix(client-runtime): keep literal URLs inside PR pre blocks out of the media gallery by @saphid in pingdotgg/t3code#48766
* fix(server): a broken workspace file no longer hides imports from a valid one by @StiensWout in pingdotgg/t3code#48774
* fix(server): read delegated threads with unencoded ids by @zhangkom in pingdotgg/t3code#48768
* fix(source-control-core): a PR merged into a branch before that branch's PR was linked is not stacked on it by @YOG3SHWAR in pingdotgg/t3code#48758
* fix(server): Copy ignored files finds matches past a large ignored-file list by @StiensWout in pingdotgg/t3code#48776
* fix(cursor): narrowed usage retries send whole-millisecond dates by @juliusmarminge in pingdotgg/t3code#48788
* fix(server): stop re-casing Codex model display names by @t3dotgg in pingdotgg/t3code#48794
* fix(server): Files tree marks ignored files under bracketed folders by @StiensWout in pingdotgg/t3code#48781
* fix(client-runtime): stop loading earlier history at a lone human steer by @saphid in pingdotgg/t3code#48720
* fix(server): extract text from Mac Cyrillic RTF attachments by @Lucenx9 in pingdotgg/t3code#48783
* fix(web): snooze menu stays open on Woke rows that outgrow the sidebar by @mateozariquiey in pingdotgg/t3code#48716
* fix(server): explain redirected Git work trees by @zhangkom in pingdotgg/t3code#48784
* fix(shared): Windows PATH lookup finds mixed-case launchers like code.Cmd by @StiensWout in pingdotgg/t3code#48779
* fix(web): terminal shortcuts that need the drawer open no longer swallow keys in a panel terminal by @StiensWout in pingdotgg/t3code#48791
* fix(server): Enter after a paste during shell startup submits the pasted command by @StiensWout in pingdotgg/t3code#48799
* fix(web): preserve bold at the start of italic text in composer by @only21mil in pingdotgg/t3code#48805
* fix(shared): retain Markdown link definitions after list and HTML boundaries by @shivamhwp in pingdotgg/t3code#48795
* fix(shared): recognize pasted thread links after HTML attribute backticks by @shivamhwp in pingdotgg/t3code#48789
* fix(mobile): thread lists scroll clear of the machine load pill by @saphid in pingdotgg/t3code#48747
* fix(server): adding a Windows folder in another letter case finds its existing project by @StiensWout in pingdotgg/t3code#48780
* fix(server): cancelling worktree setup while its terminal starts closes the shell by @StiensWout in pingdotgg/t3code#48793
* fix(web): scrolled spreadsheet header dividers no longer bleed into the select-all corner by @only21mil in pingdotgg/t3code#48806
* fix(web): PR diff line links scroll to files further down a long diff by @only21mil in pingdotgg/t3code#48807
* fix(shared): preserve footnote references across Markdown chunk boundaries by @shivamhwp in pingdotgg/t3code#48790
* fix(server): a connection after editor discovery expires gets the refreshed editors by @StiensWout in pingdotgg/t3code#48804
* fix(web): keep file paths clickable after nested HTML anchors by @shivamhwp in pingdotgg/t3code#48796
* fix(server): a thread whose worktree can't be recreated offers the missing-workspace recovery by @juliusmarminge in pingdotgg/t3code#48810
* fix(web): terminals closed elsewhere leave the right panel even behind another tab by @StiensWout in pingdotgg/t3code#48802
* fix(web): sidebar footer buttons stay inside the sidebar at larger interface fonts by @mateozariquiey in pingdotgg/t3code#48808
* fix(server): a stray core.worktree is reported, not read as no repository by @juliusmarminge in pingdotgg/t3code#48809
* fix(web): close the PR base-branch update popover when scrolling swaps the header by @only21mil in pingdotgg/t3code#48815
* fix(web): a terminal closed while it loads no longer leaves a dead tab by @StiensWout in pingdotgg/t3code#48798
* fix(server): reject invalid script IDs when creating a project by @only21mil in pingdotgg/t3code#48816
* fix(web): arrowing into a merged cell with a hidden first row or column selects its visible cell by @only21mil in pingdotgg/t3code#48817
* fix(shared): sandbox:C:/ Windows links open as file links by @juliusmarminge in pingdotgg/t3code#48827
* test(server): wait for the delegated row to settle after Stop by @juliusmarminge in pingdotgg/t3code#48835
* fix(server): closing a terminal no longer waits behind other terminals' history writes by @AksharP5 in pingdotgg/t3code#48829
* fix(web): render ODT and ODP JPEGs with large metadata headers by @only21mil in pingdotgg/t3code#48832
* fix(web): pull requests host filter keeps other workspace hosts on reopen by @only21mil in pingdotgg/t3code#48833
* perf(server): a burst of agents reading thread history no longer stalls the server by @t3dotgg in pingdotgg/t3code#48831
* fix(server): Reveal opens replacement file managers registered under Folder or Drive by @StiensWout in pingdotgg/t3code#48801
* fix(pi): reject a positional prompt after --no-mcp by @Pruthvirajcodes in pingdotgg/t3code#48836
* fix(source-control): remove Copilot's noreply co-author trailer when merging by @Pruthvirajcodes in pingdotgg/t3code#48837
* fix(web): keep preview annotations of elements with very long selectors or names by @only21mil in pingdotgg/t3code#48838
* docs(skills): clarify when to use workflow hooks by @shivamhwp in pingdotgg/t3code#48777
* fix(forgejo): a repository with an external issue tracker no longer reports a missing repository by @juliusmarminge in pingdotgg/t3code#48871
* fix(client-runtime): show a repository's issue list error once across environments by @juliusmarminge in pingdotgg/t3code#48873
* fix(server): Codex launch arguments keep a trailing escaped space by @StiensWout in pingdotgg/t3code#48856
* fix(web): scrolling cancels a delayed Word contents link even after returning by @StiensWout in pingdotgg/t3code#48858
* fix(web): composer caret on a blank line or beside a chip stays visible on panel resize by @only21mil in pingdotgg/t3code#48869
* fix(server): Codex status updates after a CLI login creates its home by @StiensWout in pingdotgg/t3code#48867
* fix(web): file paths after nested HTML links no longer join the outer link by @StiensWout in pingdotgg/t3code#48861
* fix(shared): long Markdown previews link footnotes defined in numbered list items by @StiensWout in pingdotgg/t3code#48864
* fix(web): an empty RTF page-break group no longer starts a new page by @StiensWout in pingdotgg/t3code#48872
* fix(shared): long Markdown previews keep link definitions from quotes and lists by @StiensWout in pingdotgg/t3code#48876
* fix(client-runtime): video URLs in code spans after raw HTML stay in the code by @StiensWout in pingdotgg/t3code#48860
* fix(web): a finished pull request checkout no longer closes a newer checkout dialog by @StiensWout in pingdotgg/t3code#48875
* fix(web): disconnecting a server no longer pulls you out of a chat on another server by @StiensWout in pingdotgg/t3code#48879
* fix(web): scroll to end no longer jumps another conversation to its end by @StiensWout in pingdotgg/t3code#48877
* fix(opencode): Reasoning always offers a Default choice that sends no variant by @juliusmarminge in pingdotgg/t3code#48883
* test(desktop): keep the tunnel endpoint off the ::1 decoy's port by @juliusmarminge in pingdotgg/t3code#48888
* fix(shared): explicit Windows binary paths find mixed-case launchers by @StiensWout in pingdotgg/t3code#48870
* fix(web): spreadsheet edge jumps land on the nearest visible cell by @only21mil in pingdotgg/t3code#48884
* fix(web): disk image previews list files after an empty HFS+ volume by @StiensWout in pingdotgg/t3code#48890
* fix(scenarios): two-environment scenarios switch Settings > Environments to the list view by @juliusmarminge in pingdotgg/t3code#48891
* fix(web): a side chat question the server accepted opens after a reconnect by @StiensWout in pingdotgg/t3code#48880
* fix(web): overlapping folder additions open the latest folder by @StiensWout in pingdotgg/t3code#48893
* fix(web): a failed goal action no longer clears another chat's sending indicator by @StiensWout in pingdotgg/t3code#48878
* fix(web): clicking a merged cell that starts in a hidden column keeps arrow keys on visible cells by @StiensWout in pingdotgg/t3code#48896
* fix(web): Show HTML source opens the source of a page that is not UTF-8 by @StiensWout in pingdotgg/t3code#48902
* fix(web): a sidebar file drop cancelled at an unsaved-changes prompt stays cancelled by @StiensWout in pingdotgg/t3code#48898
* fix(web): truncated multi-file tool diffs no longer render as raw text by @only21mil in pingdotgg/t3code#48866
* fix(server): first message in an empty worktree thread waits for blocking setup by @StiensWout in pingdotgg/t3code#48906
* fix(web): drafts offer New worktree once a tracked folder becomes a Git repository by @StiensWout in pingdotgg/t3code#48899
* fix(server): retrying a Claude thread whose CLI exited before init starts a fresh session by @smirea in pingdotgg/t3code#48908
* fix(server): a queued follow-up starts after its turn's checkpoint save gives up by @StiensWout in pingdotgg/t3code#48912

## New Contributors
* @haraldvinje made their first contribution in pingdotgg/t3code#48715
* @Jozeph-Zemambo made their first contribution in pingdotgg/t3code#48728
* @zhangkom made their first contribution in pingdotgg/t3code#48768
* @mateozariquiey made their first contribution in pingdotgg/t3code#48716

**Full Changelog**: pingdotgg/t3code@v0.1.14-nightly.20261204.5706...v0.1.14-nightly.20261204.5719

</details>


Upstream release: https://github.com/pingdotgg/t3code/releases/tag/v0.1.14-nightly.20261204.5719
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S 10-29 changed lines (additions + deletions). vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants