Skip to content

fix(ci): repair terminal ownership lint and source-control fixtures - #37195

Merged
nwparker merged 1 commit into
mainfrom
module-organization/ci-prerequisite-browser25-70dae974
Nov 1, 2026
Merged

nwparker merged 1 commit into
mainfrom
module-organization/ci-prerequisite-browser25-70dae974

Conversation

@nwparker

@nwparker nwparker commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 4 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​4 $\color{#cf222e}{\Huge{\mathbf{−}}}$​4 0
Prod 3 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​40 $\color{#cf222e}{\Huge{\mathbf{−}}}$​42 $\color{#cf222e}{\Huge{\mathbf{−}}}$​2

ELI5

Repair two inherited CI failures so the browser organization PR can run its checks.

What Changed

  • Keep live and persisted terminal-surface identity checks in their existing identity owner, with the live validator body unchanged and its type consumers importing that owner directly.
  • Update four source-control test stores to provide the real remoteOperations state consumed by the component.

Why

The unchanged automation-operations file exceeds the 300-line lint limit. The source-control test mocks still provide a retired derived field and throw when the component reads remoteOperations. Both failures reproduce independently of the browser moves.

Visual Proof

N/A — no rendered behavior changes; a validator moves unchanged and test fixtures adopt the current store shape.

Testing

  • All 39 source-control tests across the four repaired suites pass.
  • Six complete-runtime legacy-worker recovery tests pass (orca-runtime.test.ts -t "legacy worker").
  • pnpm tc:node, all 41 pnpm lint steps, changed-code quality and changed-file formatting pass.
  • AST comparison confirms the moved method/signature and every other class member are byte-identical. The only production residue is two type-query owner changes.
  • Both failures reproduced against pristine immutable main source. GitHub CI remains required before merge.

Risk

Level: Low. The validator retains its body and runtime inheritance, with its type consumers updated atomically. Test fixture changes do not affect production. No wire, storage, platform, remote, mobile or folder-workspace contract changes. Revert this PR to undo it.

Agent skill upstream boundary

  • Not applicable; no upstream skill-installer material is copied or translated.

@coderabbitai

coderabbitai Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent 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: 2be6b669-ab0b-4e61-91bc-0fdd718ca86d
Commits

Reviewing files that changed from the base of the PR and between 70dae97 and 37da1ec.

Files selected for processing: 7
  • src/main/runtime/construction/runtime-host-service-calls.ts
  • src/main/runtime/workspaces/persisted-surfaces/automation-operations.ts
  • src/main/runtime/workspaces/persisted-surfaces/has-exact-persisted-terminal-surface-identity.ts
  • src/renderer/src/components/right-sidebar/SourceControl.branch-line-total.test.tsx
  • src/renderer/src/components/right-sidebar/SourceControl.open-file-highlight.test.tsx
  • src/renderer/src/components/right-sidebar/SourceControl.preview-open.test.tsx
  • src/renderer/src/components/right-sidebar/SourceControl.virtual-file-list.test.tsx
Files with no reviewable changes: 1
  • src/main/runtime/workspaces/persisted-surfaces/automation-operations.ts

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

Walkthrough

The terminal surface identity check now resides in HasExactPersistedTerminalSurfaceIdentity. The public argument and result aliases derive their types from that class. Four source-control test fixtures now initialize remoteOperations as an empty array instead of setting inFlightRemoteOpKind to null.

Merge Risk: Minimal · up to 37da1

No merge-blocking issue was identified. Run the required CI checks before merging.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning 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 Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title names the two changes in the PR: a CI lint repair for terminal ownership and fixture updates for source-control tests. The diff moves the terminal-surface identity check to its owner module,…
Description check Passed The description follows the repository template. It has an ELI5 section, a What Changed section, a Why section, Visual Proof marked N/A with a reason, Testing with concrete results, a Risk section wit…
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 two changes in the PR: a CI lint repair for terminal ownership and fixture updates for source-control tests. The diff moves the terminal-surface identity check to its owner module, which the lint fix needs, and updates four source-control test fixtures to use remoteOperations. The title is specific and matches the main changes. The 'fix(ci)' prefix is conventional, and the title is a single sentence under the length limit.

Full details: Description check

Explanation

The description follows the repository template. It has an ELI5 section, a What Changed section, a Why section, Visual Proof marked N/A with a reason, Testing with concrete results, a Risk section with a Low level and revert guidance, and an upstream-boundary checkbox. The Linked Issue section is still the template placeholder with 'Fixes #' and no issue number. The template says outside contributors must link an issue, so this is a gap. The author may be a maintainer, and the template allows maintainers to skip new issues. The AI Disclosure section is empty. The author should confirm whether the issue link and AI disclosure apply. The Checklist and Notes sections are also not ticked. The description covers the required content, so the check passes.

Resolution

Confirm whether this PR needs a linked issue. Outside contributors need one. Replace the 'Fixes #' placeholder with the issue number, or remove it if none applies. Fill in or mark the AI Disclosure section. Tick the Checklist items that apply, or note why they do not.

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 4 functions across 6 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.

Share

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant