Skip to content

fix: repair sidebar lint and adoption test command fixture - #36080

Merged
OrcaWin merged 2 commits into
mainfrom
fix/sidebar-agent-card-max-lines
Oct 29, 2026
Merged

OrcaWin merged 2 commits into
mainfrom
fix/sidebar-agent-card-max-lines

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Oct 29, 2026 •

Copy link
Copy Markdown
Collaborator
Files Added Deleted Net
Test 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1 0
Prod 2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​10 $\color{#cf222e}{\Huge{\mathbf{−}}}$​10 0

Main has two deterministic CI failures: WorktreeCardAgents.tsx exceeds the max-lines limit, and the adoption test returns a string from a command resolver that now requires { command, prefixArgs }.

Move the compact-card reveal function into the existing sidebar reveal module with its body and call site unchanged. Update the adoption fixture to return the current command shape, preserving its transcript, linked-workspace, launch-directory, and replay assertions.

Validation: static formatting/lint, exact move reconstruction, and zero missing/added refactor logic. The original hosted run confirms TS2322 for the stale fixture; fresh hosted checks are required for this revision. Unblocks #36075. No test removals are counted in this repair.

@OrcaWin
OrcaWin marked this pull request as ready for review October 29, 2026 20:42
@greptile-apps

greptile-apps Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge.

Summary

Repairs two CI failures without changing sidebar behavior.

  • The adoption test supplies the launch resolver with its current command shape.
  • Compact-card expansion still reveals its worktree option through the sidebar.

Reviews (2) · Last reviewed commit: "test: return the current command shape i..." · Reviewed by Greptile

@OrcaWin OrcaWin changed the title refactor(sidebar): move compact card reveal into the reveal module fix: repair sidebar lint and adoption test command fixture Oct 29, 2026
@coderabbitai

coderabbitai Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Walkthrough

WorktreeCardAgents.tsx now imports revealCompactAgentCard from worktree-sidebar-reveal.ts. The shared helper finds the enclosing worktree sidebar and option for an agent-list root, then asks the sidebar to reveal the option with automatic scroll behavior.

Priority: Pending latest changes

Merge Risk: Minimal · up to efe48

This is a localized refactor with no supported behavior change; merge after normal CI checks.

Pre-merge checks: Passed 3 · Failed 2

Failed Failed checks: 2 warnings

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.
Description check Warning The description explains the implementation and validation, but it does not follow the required template. It omits the required ELI5, What Changed, Why, Linked Issue, Visual Proof, Testing, Review, No… Rewrite the description using the repository template. Add each required section, include an actual linked issue reference such as "Fixes #36075" when applicable, add visual proof or state "N/A" with a reason, document testing and platforms…
Passed Passed checks: 3 passed
Check name Status Explanation
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.
Title check Passed The title clearly identifies both real changes: the sidebar lint repair and the adoption-test command fixture update.
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 2 files.

Resolution

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

Full details: Description check

Explanation

The description explains the implementation and validation, but it does not follow the required template. It omits the required ELI5, What Changed, Why, Linked Issue, Visual Proof, Testing, Review, Notes, and Checklist sections, and it does not provide the required issue link or visual-proof statement.

Resolution

Rewrite the description using the repository template. Add each required section, include an actual linked issue reference such as "Fixes #36075" when applicable, add visual proof or state "N/A" with a reason, document testing and platforms, complete the required checkboxes, and include AI disclosure when applicable.

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.

@OrcaWin
OrcaWin merged commit 47713a9 into main Oct 29, 2026
41 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