Skip to content

base red: cmux-tui clippy items_after_test_module, redundant_clone, nonminimal_bool - #30630

Closed
teamleaderleo wants to merge 1 commit into
feat-cmux-nextfrom
base-red/clippy-round2
Closed

teamleaderleo wants to merge 1 commit into
feat-cmux-nextfrom
base-red/clippy-round2

Conversation

@teamleaderleo

@teamleaderleo teamleaderleo commented Nov 1, 2026 •

Copy link
Copy Markdown
Collaborator

The cmux-tui `clippy (changed cmux-tui packages)` job still fails on feat-cmux-next after #30528 (seen in run 41288268035):

  • `crates/acpmux/src/server/remote_guard.rs:1058` items_after_test_module: `cloud_chat_tests` moves to the end of the file.
  • `crates/cmux-tui-core/src/server/agent_session_folders.rs:281` redundant_clone (test).
  • `crates/cmux-tui/src/cli/cloud_repo.rs:122,125` nonminimal_bool: `!x.is_some_and(p)` becomes `x.is_none_or(!p)`.

No behavior change. Small (lint-only, 3 files). Unblocks the clippy job on #28215 and every other cmux-tui PR.

Agent session: agent session

🤖 Generated with Claude Code


Summary by cubic

Fixes the three remaining Clippy lints in the cmux-tui packages so the clippy job on feat-cmux-next passes. No behavior change.

  • Moves the cloud_chat_tests module to the end of remote_guard.rs, drops a redundant clone in a test, and simplifies two boolean conditions in cloud_repo.rs.

Written for commit 5331854. Summary will update on new commits.

View guided diff Turn on auto-fix

…onminimal_bool

The cmux-tui clippy job still fails on feat-cmux-next after #30528:
- acpmux server/remote_guard.rs: the cloud_chat_tests module sat above
  later items (items_after_test_module); it moves to the end of the file.
- cmux-tui-core server/agent_session_folders.rs:281: redundant clone in a test.
- cmux-tui cli/cloud_repo.rs:122,125: !is_some_and(p) becomes is_none_or(!p).
No behavior change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Agent-Session: https://cmux.com/deeplink/agent?id=aid-fc739fd2f4e557ae7189
@teamleaderleo

Copy link
Copy Markdown
Collaborator Author

Review (subagent claude-opus-5-5 medium): SHIP at 5331854

  • both is_none_or rewrites are exact negations; cloud_chat_tests moved intact; first unused after the removed clone.

@github-actions

github-actions Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

cmux status (one comment, edited in place; each line is updated by the job that owns it)

Review 5331854: HQ feed card · gallery before/after runs · checks

App of this head (app.zip, kept 1 day)

gh workflow run reload-build.yml -R manaflow-ai/cmux --ref feat-cmux-next -f tag=pr30630 -f ref=base-red/clippy-round2 -f platform=macos -f backend_mode=local

red: cmux-next checks (god files, concurrency, crash safety, l10n); NEW: red check: Tier routing (+2 more) is not red on the base 7af5f2f; do not merge until green; see lane-rules

@teamleaderleo

Copy link
Copy Markdown
Collaborator Author

Owned by an agent session · session

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 3 files

View guided diff | Turn on auto-fix | Re-trigger cubic

@github-actions github-actions Bot added the risk:high Risk tier (docs/ci/risk-tiers.md) label Nov 1, 2026
@teamleaderleo

Copy link
Copy Markdown
Collaborator Author

Closing: #30555 already cleared the same lints on feat-cmux-next (is_none_or rewrites, the redundant clone, cloud_chat_tests at the end of remote_guard.rs).

This branch was successfully deployed

2 inactive deployments
sentry-dsyms — 53318544 Deployed Nov 1, 2026 by teamleaderleo via upload cmux-tui dSYMs to Sentry #95277
artifacts — 53318544 Deployed Nov 1, 2026 by teamleaderleo via publish to R2 #95277
ci-routing-agent — 53318544 Deployed Nov 1, 2026 by teamleaderleo via cmux-tui tree preflight #95277
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk:high Risk tier (docs/ci/risk-tiers.md)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant