Skip to content

fix(ci): resolve existing max-lines and command fixture violations - #36096

Merged
AmethystLiang merged 1 commit into
mainfrom
AmethystLiang/fix-ci-3
Oct 29, 2026
Merged

AmethystLiang merged 1 commit into
mainfrom
AmethystLiang/fix-ci-3

Conversation

@AmethystLiang

@AmethystLiang AmethystLiang commented Oct 29, 2026 •

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

Two files already exceeded max-lines on main, blocking CI for unrelated changes. Move the browser annotation hook return contract into the existing page types module and extract sidebar agent activation into a dedicated hook, bringing the files to 300 and 400 lines without changing behavior.

Also update the existing Claude adoption test fixture to return the current structured command shape, fixing the typecheck error found during validation.

Validation: ORCA_BACKGROUND_LAUNCH=1 pnpm check:changed --maxWorkers=2 — all 27 checks passed, including affected tests, typechecking, and max-lines.

@greptile-apps

greptile-apps Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] This PR appears safe to merge.

Summary

This PR moves existing code into smaller files to satisfy line limits without changing browser annotation or sidebar activation behavior.

  • Sidebar agent rows still open their matching pane or session.
  • The browser annotation hook uses a named result type.
  • The adoption test fixture supplies a structured command value.

No actionable issues found. Review checks were static; tests were not run.

Reviews (1) · Last reviewed commit: "fix(ci): resolve existing max-lines and ..." · Reviewed by Greptile

@coderabbitai

coderabbitai Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Walkthrough

The resolver test now returns a command object. The browser annotation hook uses an exported return type. Worktree agent activation now runs through a dedicated hook, which validates pane keys and handles tab, structured-session, and live-status paths.

Priority: Normal

Merge Risk: Minimal · up to b702a

The changes update a test fixture and extract existing contracts and behavior. No merge-blocking risk is established.

Pre-merge checks: Passed 3 · Failed 2

Failed Failed checks: 2 warnings

Check name Status Explanation Resolution
Description check Warning The description explains the main changes and includes a validation command, but it omits most required template sections and checklist items. Add the required ELI5, What Changed, Why, Linked Issue, Visual Proof (or N/A with a reason), Testing details and checkboxes, AI Disclosure, Review, Agent skill upstream boundary, Notes, and Checklist sections. Include the issue link and exp…
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: 3 passed
Check name Status Explanation
Title check Passed The title clearly identifies both main changes: resolving max-lines violations and updating the command fixture.
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: Description check

Resolution

Add the required ELI5, What Changed, Why, Linked Issue, Visual Proof (or N/A with a reason), Testing details and checkboxes, AI Disclosure, Review, Agent skill upstream boundary, Notes, and Checklist sections. Include the issue link and explain the testing scope and platform coverage.

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 5 files.

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

Finishing Touches: 💡 1
📝 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

Comment @coderabbitai help to get the list of available commands.

@AmethystLiang
AmethystLiang merged commit be4b3ff into main Oct 29, 2026
40 checks passed
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