You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test: remove 262 low-value cases and 31 suites - #34161
Removes 262 low-value test registrations, including 31 entire suites, after reviewing 58 renderer sources (337 authored registrations). Production code is unchanged.
Deletes display strings, constant tables, primitive gates, fabricated terminal state and tests for unused filter implementations. Retains 75 registrations covering owner ambiguity, destructive confirmation staleness, CSV budgets and terminal replay parsing. Removes 31 obsolete timing entries.
Validation: isolated AST preservation, formatting, lint, metadata preservation, patch and dangling-import checks passed. Retained callbacks remain byte-identical. Fresh CI validates the final commit.
The diff removes or narrows test coverage across renderer components, settings, terminal and SSH behavior, and shared utilities. Some test files are deleted, while others retain selected cases or add a case for partially staged commits. The CI timing inventory removes entries for tests no longer listed and adds timing entries for other tests. The summaries describe test and timing-inventory changes, not production implementation changes.
Priority: Low
Merge Risk: Low · up to a99c9
The change is mergeable with owner awareness, but it removes a regression check for copying trimmed terminal text, and the earlier sidebar coverage gap remains open.
Pre-merge checks: 4 · 1
Failed checks: 1 warning
Check name
Status
Explanation
Resolution
Description check
The description covers most template sections. It has a clear summary of what was removed, what was retained, the production-code status, and validation steps. It also has a LoC table. It omits severa…
Add these template sections or fill them in: an ELI5 summary in plain language; a Why section explaining why deleting these tests is preferable to keeping or rewriting them; a Linked Issue entry using 'Fixes #' (or confirm the autho…
Passed checks: 4 passed
Check name
Status
Explanation
Title check
The title "test: remove 262 low-value cases and 31 suites" matches the main change: the PR removes 262 test registrations, including 31 whole suites, and changes no production code. It uses the conven…
Docstring Coverage
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Documentation-only edits and deletions within survi…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title "test: remove 262 low-value cases and 31 suites" matches the main change: the PR removes 262 test registrations, including 31 whole suites, and changes no production code. It uses the conventional commit prefix and a specific count. The title does not say that production timing data was also changed, but the summary does not need every detail.
Full details: Docstring Coverage
Explanation
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 5 files.
Full details: Description check
Explanation
The description covers most template sections. It has a clear summary of what was removed, what was retained, the production-code status, and validation steps. It also has a LoC table. It omits several required sections: ELI5, Why (rationale for removing these tests over alternatives), Linked Issue (the template says there should always be one for outside contributors; none is linked), Visual Proof (N/A reasoning is absent), Testing checkboxes, AI Disclosure, Review and Agent skill upstream boundary sections, and the checklist. The description also does not state which platforms were tested.
Resolution
Add these template sections or fill them in: an ELI5 summary in plain language; a Why section explaining why deleting these tests is preferable to keeping or rewriting them; a Linked Issue entry using 'Fixes #<number>' (or confirm the author is a maintainer and no issue is needed); a Visual Proof entry with 'N/A' and a reason; the Testing checkboxes with the platforms tested; the AI Disclosure section (or confirmation that it does not apply); the Agent skill upstream boundary checkbox; and the Checklist. Also state which of the 262 removed registrations were judged low-value and on what basis, so reviewers can verify the selection.
Finishing Touches
📝 Generate docstrings
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Restore focused tests for the skip and load outputs.
The retained test covers only the reload output of decideExpandedDirLoad. The consumer maps each output to a different read. skip produces no loadDir call. load produces the first read without force. If either branch changes, expanded directories can reload unnecessarily or stay empty. The retained integration tests in useFileExplorerTree.stale-dirs.test.tsx assert stale flags and root read counts, not read counts for expanded directories, so they would not catch that change.
Restore one focused test for each branch. The removed collectStaleDirCachePaths cases can stay removed.
Suggested fix
it('re-reads a cached dir whose listing the last full refresh skipped', () => {
expect(decideExpandedDirLoad({ children }, true)).toBe('reload')
})
++ it('trusts a cached listing that is not stale', () => {+ expect(decideExpandedDirLoad({ children }, false)).toBe('skip')+ })++ it('reads a dir that has never been listed', () => {+ expect(decideExpandedDirLoad(undefined, false)).toBe('load')+ expect(decideExpandedDirLoad({ children: [] }, false)).toBe('load')+ })
})
Restore direct SSH and local ownership coverage in this resolver test.
The retained SSH case uses a null PTY ID and returns before parseAppSshPtyId. Other retained tests construct owner objects directly or exercise bridge routing without asserting the resolver result. Add direct SSH and local fallback assertions.
Suggested fix
import { describe, expect, it } from 'vitest'
import { toRemoteRuntimePtyId } from '../../../../shared/remote-runtime/remote-runtime-pty-id'
+import { toAppSshPtyId } from '../../../../shared/ssh-pty-id'
import { resolveTerminalHttpLinkSourceOwner } from './terminal-http-link-source-owner'
@@
it('does not classify an ownerless remote PTY as local without retained ownership', () => {
expect(resolveTerminalHttpLinkSourceOwner(transport('remote:legacy-handle'))).toEqual({
kind: 'unknown'
})
})
++ it('classifies a direct SSH PTY id by its embedded connection', () => {+ expect(resolveTerminalHttpLinkSourceOwner(transport(toAppSshPtyId('ssh-a', 'pty-1')))).toEqual({+ kind: 'ssh',+ connectionId: 'ssh-a'+ })+ })++ it('classifies a plain local PTY id as local', () => {+ expect(resolveTerminalHttpLinkSourceOwner(transport('local-pty-1'))).toEqual({+ kind: 'local'+ })+ })
})
Review info
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: aa488c9c-003a-42a6-a266-bfd1c86c12d9
Commits
Reviewing files that changed from the base of the PR and between cf38125 and a13465d.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
Keep direct coverage for orderProjectIdsByRecency.
This PR removes the only direct tests for orderProjectIdsByRecency. The retained test in use-recent-project-ids.test.ts checks only ownership lookup scaling and cache reuse. No retained test checks newest-first ordering, newest workspace per project, projectless legacy workspaces, project-group: option IDs, or missing createdAt handling. These are functional output contracts, not display-string checks.
Restore the removed describe block from the merge base, or add focused tests for these behaviors. Before deleting coverage, confirm that another suite exercises orderProjectIdsByRecency directly.
git show e79235371f883a3ae3d703d26d084e5cb375ee9d:src/renderer/src/components/new-workspace/use-recent-project-ids.test.ts
Review info
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: a549c1f4-ca51-4ce4-b794-27841bef23cb
Commits
Reviewing files that changed from the base of the PR and between a13465d and 15e3e22.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
copyTerminalSelection reaches the application clipboard path and passes the transformed selection to writeClipboardText. The retained wrapper test uses only un-guttered input, so it would pass if the wrapper forwarded raw guttered text. The native-copy test covers a separate DOM path.
Add one copyTerminalSelection case with guttered input and assert that the writer receives trimmed text. Do not restore the separate helper or empty-selection tests.
Review info
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: f2325697-4663-4654-b3e6-95b5b35c3bac
Commits
Reviewing files that changed from the base of the PR and between 15e3e22 and a99c932.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
Merge base 0571e45, fork tip before this sync 7b86cb0 (rollback tag
archive/pre-sync-7b86cb0846), upstream tip f173998.
Upstream's delta is 22,767 files (+510,839 / -404,589): a feature wave (WSL
host chat, Jira board rework, team agents) plus two large test-retirement
sweeps ("remove low-value cases", stablyai#33770/stablyai#34156/stablyai#34161/stablyai#34234) and a
consolidated `config/scripts/run-lint.mjs` replacing package.json's inline
lint chain.
431 conflicted paths / 621 hunks. Tiers: 255 hunks proved mechanically by
`conflicts.mjs --apply-proven` (167 paths written), 69 `docs/agents-md-refs`
files removed as upstream churn absent from both tips, 27 deletions taken
from `expected-deletions.json` plus the retired-test policy in the ledger, and
the remaining 163 paths resolved in 13 disjoint batches against
`local/sync/convergence-ledger.md`.
Breaks the merge left with no conflict marker, all repaired here:
- Three fork ratchets (check:process-host-imports,
check:workspace-path-sync-fs-ratchet, check:compat-boundary-imports) were
dropped by upstream's consolidated lint runner; the gate now expands
`LINT_STEPS` back into one step each and fails closed if it cannot.
- Fork-only importers pointed at modules upstream moved: filesystem-auth,
filesystem-search-file-paths, remote-runtime-*, source-control-base-ref-
resolution, task-page-jira-create-fields, agent-status, and
use-task-page-composer-actions (16 imports in `tc:node`, 14 in `tc:web`).
- `RuntimeRepositorySettingsController` gained a required
`notifyWorktreesChanged`; the fork's extracted owned-controllers wiring would
have thrown at runtime.
- Two union resolutions were syntactically broken
(service-full-cycle-preparation, wsl-orca-env duplicate identifier).
- Two settings keys upstream added were unclassified in the fork's host-sync
disposition map; four upstream settings added since the last sync needed a
disposition each.
- `sync:localization-catalog` rejected a reused key: the fork's "Gemini CLI
(legacy)" heading and upstream's "Gemini" label shared one key, so the
heading has its own key now.
- Nine non-English locales carried upstream translations for two toasts the
fork rewords (different placeholders); the stale entries are retired and
fall back to the fork's English overlay.
- Thirteen upstream-owned files sat 1-18 code lines over the max-lines budget
once the fork's delta was merged in: exempted with a directive and a baseline
row per LOCAL-PATCHES § local(lint), whose rule is ownership not size. The
orcad-entry row went stale and was pruned.
Decisions and evidence: LOCAL-PATCHES.md § Sync log and
local/sync/convergence-ledger.md.
nplez1
added a commit
to nplez1/orca
that referenced
this pull request
Oct 28, 2026
…n scan
The merge left `locales/en.json` and the fork overlay carrying entries the merged
source no longer references — mostly test-harness fixtures for the suites
upstream retired in stablyai#33770/stablyai#34156/stablyai#34161/stablyai#34234 — and nine English entries whose
source copy moved on, so the catalog still rendered the old sentence.
198 orphan keys removed from every locale catalog, the fork overlay and
`locale-ko-key-overrides.json`; the nine drifted entries now carry the source's
copy, each differing placeholder string moved to its own key
(`AccountsPane.aa4de4475b` for the fork's "Gemini CLI (legacy)" heading), and
the translations of the reworded sentences retired so they fall back to English
rather than render a stale sentence with the wrong placeholders.
`sync:localization-runtime-catalog` then regenerated the runtime subset.
Also fixes the post-sync deletion scan: it disabled rename detection on our
side only, so an upstream *rename* of a fork-untouched file read as a fork-only
deletion with a lost export (`terminal-file-link-detection-ranges.ts`, renamed
by stablyai#33964). Both sides now run with `--no-renames`.
Verified: post-sync PASS (11 checks), pnpm tc clean on node/web/cli, oxlint
clean, identity sweep 0 fixable.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
Removes 262 low-value test registrations, including 31 entire suites, after reviewing 58 renderer sources (337 authored registrations). Production code is unchanged.
Deletes display strings, constant tables, primitive gates, fabricated terminal state and tests for unused filter implementations. Retains 75 registrations covering owner ambiguity, destructive confirmation staleness, CSV budgets and terminal replay parsing. Removes 31 obsolete timing entries.
Validation: isolated AST preservation, formatting, lint, metadata preservation, patch and dangling-import checks passed. Retained callbacks remain byte-identical. Fresh CI validates the final commit.