Repository navigation
test: remove low-value wrapper and inventory suites - #33736
Conversation
|
No actionable comments were generated in the recent review.
|
There was a problem hiding this comment.
🧹 Nitpick comments: 1
src/shared/opencode-cli-version.test.ts: 1
16-16:Trivial · Functional Correctness · Quick win Keep direct coverage for future-major capability mapping.
The surviving PTY test detects an unverified-v2
promptModeregression through2.0.17and2.0.21. It does not test the future-majorpluginApimapping. The model-startup tests mock capability results.The current launch behavior does not enter the prefill path for either case. Unverified v2 keeps
pluginApi: 'v2'but haspromptMode: 'unknown'. A future major haspluginApi: 'unknown', which returns before prefill handling. This is additional regression coverage, not a current launch failure.Add a focused future-major probe assertion. Do not describe unverified v2 as being outside the plugin-v2 path.
Suggested test
+it('keeps future-major builds out of known launch capability paths', async () => { + const execute = vi.fn().mockResolvedValue({ + code: 0, + timedOut: false, + stdout: 'opencode v3.0.0' + }) + expect( + await probeOpenCodeCliVersion({ + executablePath: '/future/opencode', + env: {}, + hostIdentity: 'wsl:future-major', + execute + }) + ).toMatchObject({ + pluginApi: 'unknown', + promptMode: 'unknown' + }) +})

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:
6fcad39c-6647-43c5-bbc0-30dbb5f567f7
Files selected for processing: 53-
src/main/amp/hook-service.test.tssrc/main/antigravity/hook-service.test.tssrc/main/antigravity/native-account-launch.test.tssrc/main/antigravity/native-macos-credentials.test.tssrc/main/antigravity/windows-hook-payload-delivery.test.tssrc/main/app-icon.test.tssrc/main/app-relaunch.test.tssrc/main/appimage-runtime-identity.test.tssrc/main/appkit-scene-mutation.test.tssrc/main/artifacts/artifact-cloud-config.test.tssrc/main/artifacts/artifact-cloud-service.test.tssrc/main/artifacts/artifact-share-record-allocation.test.tssrc/main/asar-transparent-fs.test.tssrc/main/automations/automation-dispatch-host-fence.test.tssrc/main/automations/automation-owner-fencing.test.tssrc/main/automations/automation-run-writer.test.tssrc/main/automations/automation-skip-coalescing.test.tssrc/renderer/src/components/browser-pane/browser-client-page-attachment-scan-budget.test.tssrc/renderer/src/components/browser-pane/browser-client-page-guest-metadata.test.tssrc/renderer/src/components/browser-pane/browser-download-destination-toast.test.tssrc/renderer/src/components/browser-pane/describe-page/browser-overlay-shortcut-target.test.tssrc/renderer/src/components/browser-pane/describe-page/browser-page-url-display.test.tssrc/renderer/src/components/browser-pane/host-guest/browser-guest-page-id-identity.test.tssrc/renderer/src/components/browser-pane/host-guest/browser-page-paintability.test.tssrc/renderer/src/components/browser-pane/host-guest/browser-page-viewport.test.tssrc/renderer/src/components/browser-pane/host-guest/browser-page-viewport.tssrc/renderer/src/components/browser-pane/host-guest/browser-page-webview.test.tssrc/renderer/src/components/feature-tips/NativeChatUpgradeTipDialog.test.tsxsrc/renderer/src/components/feature-tips/feature-tip-cli-install-action.test.tssrc/renderer/src/components/feature-tips/feature-tip-modal-state.test.tssrc/renderer/src/components/feature-tips/feature-tip-startup-gate.test.tssrc/renderer/src/components/feature-tips/feature-tip-telemetry.test.tssrc/renderer/src/components/onboarding/NotificationStep.test.tsxsrc/renderer/src/components/onboarding/ThemeStep.test.tssrc/renderer/src/components/onboarding/agent-picked-payload.test.tssrc/renderer/src/components/onboarding/onboarding-dismiss-target.test.tssrc/renderer/src/components/onboarding/onboarding-feature-setup.test.tssrc/renderer/src/components/onboarding/use-onboarding-flow-persistence.test.tssrc/shared/native-chat/tools/native-chat-tool-preview-scan.test.tssrc/shared/native-chat/tools/native-chat-tool-run-outcome.test.tssrc/shared/native-chat/tools/native-chat-tool-summary.test.tssrc/shared/network/manual-address.test.tssrc/shared/node-file-content-equality.test.tssrc/shared/node-readable-text.test.tssrc/shared/omp-owner-state-title.test.tssrc/shared/omp-pi-semantic-title-preservation.test.tssrc/shared/opencode-cli-version.test.tssrc/shared/orca-yaml-bounds.test.tssrc/shared/orcad-artifacts.test.tssrc/shared/orcad-migration-manifest-contract.test.tssrc/shared/orcad-migration/orcad-migration-blob-transfer.test.tssrc/shared/orcad-migration/orcad-migration-source-kind.test.tssrc/shared/orcad-profile-preflight.test.ts
Files with no reviewable changes: 45-
- src/main/appkit-scene-mutation.test.ts
- src/renderer/src/components/browser-pane/host-guest/browser-guest-page-id-identity.test.ts
- src/renderer/src/components/feature-tips/feature-tip-cli-install-action.test.ts
- src/main/asar-transparent-fs.test.ts
- src/renderer/src/components/onboarding/ThemeStep.test.ts
- src/renderer/src/components/browser-pane/describe-page/browser-overlay-shortcut-target.test.ts
- src/main/artifacts/artifact-share-record-allocation.test.ts
- src/renderer/src/components/browser-pane/host-guest/browser-page-webview.test.ts
- src/main/app-relaunch.test.ts
- src/shared/orca-yaml-bounds.test.ts
- src/renderer/src/components/browser-pane/browser-client-page-guest-metadata.test.ts
- src/shared/node-readable-text.test.ts
- src/renderer/src/components/browser-pane/host-guest/browser-page-viewport.test.ts
- src/shared/native-chat/tools/native-chat-tool-summary.test.ts
- src/main/artifacts/artifact-cloud-config.test.ts
- src/main/automations/automation-owner-fencing.test.ts
- src/renderer/src/components/onboarding/onboarding-feature-setup.test.ts
- src/main/antigravity/native-macos-credentials.test.ts
- src/shared/orcad-migration/orcad-migration-blob-transfer.test.ts
- src/renderer/src/components/feature-tips/feature-tip-startup-gate.test.ts
- src/shared/omp-pi-semantic-title-preservation.test.ts
- src/main/antigravity/native-account-launch.test.ts
- src/renderer/src/components/onboarding/agent-picked-payload.test.ts
- src/renderer/src/components/feature-tips/feature-tip-telemetry.test.ts
- src/shared/native-chat/tools/native-chat-tool-run-outcome.test.ts
- src/shared/omp-owner-state-title.test.ts
- src/renderer/src/components/browser-pane/host-guest/browser-page-viewport.ts
- src/shared/native-chat/tools/native-chat-tool-preview-scan.test.ts
- src/shared/network/manual-address.test.ts
- src/renderer/src/components/onboarding/onboarding-dismiss-target.test.ts
- src/renderer/src/components/browser-pane/host-guest/browser-page-paintability.test.ts
- src/shared/orcad-profile-preflight.test.ts
- src/renderer/src/components/browser-pane/browser-download-destination-toast.test.ts
- src/renderer/src/components/feature-tips/feature-tip-modal-state.test.ts
- src/renderer/src/components/browser-pane/browser-client-page-attachment-scan-budget.test.ts
- src/main/automations/automation-run-writer.test.ts
- src/main/amp/hook-service.test.ts
- src/shared/orcad-migration/orcad-migration-source-kind.test.ts
- src/shared/orcad-migration-manifest-contract.test.ts
- src/main/antigravity/windows-hook-payload-delivery.test.ts
- src/main/antigravity/hook-service.test.ts
- src/main/automations/automation-skip-coalescing.test.ts
- src/main/automations/automation-dispatch-host-fence.test.ts
- src/renderer/src/components/browser-pane/describe-page/browser-page-url-display.test.ts
- src/renderer/src/components/feature-tips/NativeChatUpgradeTipDialog.test.tsx
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
-
298ef44 to
d59259f
Compare
The case asserted that the label reads exactly `1024 × 768`, which restates the format string rather than any behavior, and main now treats such copied-string tests as low value (stablyai#33736, stablyai#33778). Refs stablyai#31014 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Main's #33736 dropped the only test that the terminal-history.v1 kind reaches runtime status, which is what makes a mover send it. Co-Authored-By: Claude <noreply@anthropic.com>
…31145) * feat(browser): flash the page viewport size while the pane resizes Resizing the built-in browser pane gave no sign of the page's size, so landing on a CSS breakpoint meant guessing or reading innerWidth in DevTools. The existing zoom badge now also flashes the guest's innerWidth × innerHeight after each resize, so zoom and size share one corner instead of stacking. The size comes from the host box, UI zoom and the guest's live zoom level, because a UI zoom change overwrites the guest's zoom behind the pane's remembered level. Refs #31014 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(browser): cover no size flash on tab open and tab switch The issue promises the size badge stays hidden when a tab opens or is shown again, but the e2e only checked it after the 1.4s fade had already passed, so a stray flash would go unnoticed. A renderer-side counter now records every size flash, and the hook test covers a pane that is hidden and shown again at a new size. Refs #31014 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(browser): cover the badge shared by zoom and size feedback Zoom and size feedback now share one label and one fade timer, so the latest change wins, but nothing exercised that hook directly. The new test checks that a size flash replaces the zoom label and restarts the fade instead of letting the earlier timer hide it early. Refs #31014 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(browser): keep the size badge exact under Chrome's zoom presets After rebasing onto per-site zoom (#31621), zoom levels snap to Chrome presets such as 90%, so the badge drifted a pixel from innerWidth: the zoom factor snapped levels that UI zoom sets freely, and rounding did not match Blink. The factor now uses the guest's level as is, and the size mirrors Blink's AdjustForAbsoluteZoom::AdjustInt on the integer DIP size, checked against the e2e's measured guest sizes. Refs #31014 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(browser): never show a size flash that may be wrong or stale Before dom-ready the guest's zoom cannot be read, and a saved site zoom lands at that moment, so sizing it at the default zoom could flash a wrong number. A flash left running when the page went inactive or was parked at 0×0 could also come back stale, since nothing measures it then. Both cases now skip or hide the flash, because no size is better than a misleading one. Refs #31014 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(browser): announce the first resize after a tab opens Skipping measurements until the guest zoom is readable also dropped the baseline, and a new tab's opening measurement usually arrives before dom-ready, so the first resize afterwards only set a baseline and never showed the badge. The baseline is now kept as the host box size and converted at the zoom readable when the next measurement comes, so no zoom is guessed and the first real resize is still announced. Refs #31014 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * test(browser): drop the size format case that only copied the string The case asserted that the label reads exactly `1024 × 768`, which restates the format string rather than any behavior, and main now treats such copied-string tests as low value (#33736, #33778). Refs #31014 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * refactor(browser): fold the size readout into its hook and drop tests that don't prove it Moves the guest-size conversion into the hook that uses it, inlines the one-use label formatter and predicate, and drops the e2e spec, the badge timer test and the predicate tests. The conversion keeps its test against sizes measured from a real guest. * fix(browser): keep the size flash off under viewport presets and out of the pane's render A preset pins the page size, and mobile emulation's layout viewport can differ from the host box, so the readout only runs on a free-sized pane. The badge now owns its label and fade state behind a ref handle, so a resize drag re-renders only the badge instead of the whole page pane. * fix(browser): skip the size flash while a phone or remote viewer sets the page metrics * fix(browser): fold the screen scale into the size readout's rounding Blink rounds the guest viewport in device pixels with the screen scale times page zoom as its factor, so ignoring the screen scale left the badge 1px off at most non-100% zoom levels on 2x screens. * fix(browser): port Blink's exact zoom rounding to the size readout Chromium 150's AdjustForAbsoluteZoom::AdjustInt adds 0.5 in float math before dividing when zoomed in and truncates with a 0.01 slack, so the +1 rule showed the badge 1px wide at many zoomed-in sizes. * fix(browser): size the readout's guest frame in whole DIPs before the screen scale Chromium rounds a guest frame to whole DIPs and only then scales it to device pixels, so a fractional split width read one device pixel short. * fix(browser): round the readout's guest frame up to whole DIPs A live sweep at 1.2 UI zoom on a 2x screen showed Chromium sizes the guest frame as the ceiling of the box in DIPs, not the nearest DIP. --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Kelvin Amoaba <97001695+AmoabaKelvin@users.noreply.github.com>
Removes 117 low-value test declarations, including 14 entire suites, and deletes a production cache accessor used only by a removed test. The removals cover copied oracles, source and artifact inventories, framework-wrapper tests, mock-only forwarding, decorative UI copy, and cases whose setup never exercises the named behavior. Useful ownership, durability, rejection, state-transition and delivery coverage remains.
Reviewed 180 sources / 1,224 authored declarations → 1,107. One relocated byte-identical suite was re-reviewed for deletion and receives no new-source credit; the other 179 sources are new reviews. The combined change touches 52 test files plus the obsolete accessor.
Targeted candidate checks: 390 expanded cases passed; eight Windows-only cases skipped locally. Formatting, lint, source/case bindings and private patch reconstruction pass. Unchanged and deleted suites received static review without baseline replay. Fresh full repository CI is required before merge; audit tracker promotion follows CI and merge.