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
Removes 245 authored renderer test cases across 60 reviewed files, including ten entire suites. The removed cases mostly assert supplied value tables, mock forwarding, or narrow synthetic fixture behavior. Retains 224 cases for content restoration, keyed ownership, cancellation, bounded work and resource lifetime.
Updates seven reliability gates and removes ten obsolete timing entries. Lost alarms include scrollbar targeting, same-pane WebGL attach backoff, pre-dispatch context loss, fit overrides and Windows refresh predicates. Adjacent tests are not claimed as equivalent coverage; historical executed commands and results remain intact.
One retained wheel-sampling test now fakes only setTimeout, preserving its manual animation-frame queue after earlier tests are removed. Three fixture casts receive line-specific safety explanations. Runtime implementation is unchanged.
Validation: static parsing, external formatting, inert lint, exact source/owner and metadata checks; retained assertions are unchanged, with the timer setup correction above as the sole retained-callback exception. Full tests and typechecks run on the current commit in GitHub CI.
Risk: reduced future regression detection in the listed paths; revert this PR to restore the removed alarms. Visual proof and skill changes do not apply to this test-only cleanup. Requested directly by a maintainer; no linked issue. Authored and reviewed with Codex.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review.
Walkthrough
This change removes or narrows tests across pane management, terminal rendering and input, and application libraries. It also updates reliability-gate descriptions, records coverage gaps, and revises CI shard timing entries. No runtime implementation changes are described.
Merge Risk: Low · up to cd6d3
This is a test-only change with bounded risk, but future Windows terminal or scrollbar regressions may no longer be detected by the retained suite.
Pre-merge checks: 4 · 1
Failed checks: 1 warning
Check name
Status
Explanation
Resolution
Docstring Coverage
Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed checks: 4 passed
Check name
Status
Explanation
Title check
The title clearly and concisely describes the main change: removing 245 low-value renderer test cases.
Description check
The description covers the change scope, rationale, retained coverage, reliability-gate updates, validation, risk, visual-proof status, AI disclosure, and rollback. It does not use the template headin…
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: Description check
Explanation
The description covers the change scope, rationale, retained coverage, reliability-gate updates, validation, risk, visual-proof status, AI disclosure, and rollback. It does not use the template headings, but the required information is mostly present. The missing linked issue is explained by the maintainer exception.
Full details: Docstring Coverage
Explanation
Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 1 functions across 15 files.
Resolution
Write docstrings for the functions missing them to satisfy the coverage threshold.
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.
Retain focused coverage for the two Windows refresh helpers.
The retained tests cannot detect regressions in the native-ConPTY, foreground, or in-place-rewrite gates, or in the Windows/recent-input and redraw-size gates. Keep one focused test per helper unless an end-to-end spec exercises the real caller paths. Record these uncovered gates in config/reliability-gates.jsonc if no equivalent coverage exists.
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: 090d7bfd-df66-4e6c-b1a1-981455ce5283
Commits
Reviewing files that changed from the base of the PR and between 509461a and 011f5e4.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review.
Keep one regression test for same-pane WebGL attach backoff.
This change removes the loadAddon failure injection and the tests for two recovery guarantees. A second attachWebgl call must not allocate another addon while webglAttachFailedSinceRecovery is set. A rendering resume must clear that latch and permit one retry. The retained renderer tests cover addon disposal and cross-pane isolation, but not same-pane backoff or resume retry. The reliability gate also records that this behavior has no equivalent coverage. Keep one focused test, or move it to pane-webgl-renderer.test.ts. (raw.githubusercontent.com)
The removed test used a retained addon whose _gl.isContextLost() was already true before xterm fired _onContextLoss. This path is separate from fireContextLoss, which only exercises xterm’s loss callback. resumePaneRendering still checks isPaneWebglContextLost and disposes the dead addon before reattaching. Keep this lifecycle case in this suite or another WebGL recovery suite. (raw.githubusercontent.com)
The deleted cases were the only direct checks that safeFit resizes to the owner grid, skips fit() for an active override, and isolates overrides by PTY. The retained transport tests cover override state propagation, not this consumer behavior. Keep one focused case in pane-fit.test.ts for this branch.
Restore direct coverage for scrollbar pointer targeting.
The production path still depends on .xterm-scrollbar, .xterm-slider, and pointerScrollActive, but the PR removes the last tests that exercise those selectors and restore a dragged viewport. Add one focused test before the first retained test. Exercise descendants of both classes, dispatch pointerdown and scroll, then assert that enforceTerminalCurrentScrollIntent restores the dragged line. Restore the minimal TestElement class-name, closest, parent, and bubbling behavior needed by that test.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review.
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 245 authored renderer test cases across 60 reviewed files, including ten entire suites. The removed cases mostly assert supplied value tables, mock forwarding, or narrow synthetic fixture behavior. Retains 224 cases for content restoration, keyed ownership, cancellation, bounded work and resource lifetime.
Updates seven reliability gates and removes ten obsolete timing entries. Lost alarms include scrollbar targeting, same-pane WebGL attach backoff, pre-dispatch context loss, fit overrides and Windows refresh predicates. Adjacent tests are not claimed as equivalent coverage; historical executed commands and results remain intact.
One retained wheel-sampling test now fakes only
setTimeout, preserving its manual animation-frame queue after earlier tests are removed. Three fixture casts receive line-specific safety explanations. Runtime implementation is unchanged.Validation: static parsing, external formatting, inert lint, exact source/owner and metadata checks; retained assertions are unchanged, with the timer setup correction above as the sole retained-callback exception. Full tests and typechecks run on the current commit in GitHub CI.
Risk: reduced future regression detection in the listed paths; revert this PR to restore the removed alarms. Visual proof and skill changes do not apply to this test-only cleanup. Requested directly by a maintainer; no linked issue. Authored and reviewed with Codex.