Skip to content

♻️ Audit and remove 18 Clippy allows in orbitdock-server#79

Merged
Robdel12 merged 2 commits intomainfrom
mission/robdel12-orbitdock#71
Mar 22, 2026
Merged

♻️ Audit and remove 18 Clippy allows in orbitdock-server#79
Robdel12 merged 2 commits intomainfrom
mission/robdel12-orbitdock#71

Conversation

@Robdel12
Copy link
Owner

Summary

Audits all 34 #[allow(clippy::...)] directives in orbitdock-server and removes 18 by fixing the underlying design issues Clippy was pointing at.

Removed (18 sites):

  • needless_return (1) — removed, code was already correct
  • enum_variant_names (1) — removed, no longer triggers
  • type_complexity (1) — replaced 26-element tuple with named ActiveSessionRow struct
  • too_many_arguments (15) — introduced params structs:
    • ApprovalPreviewInput (made public) + ApprovalPreviewContext in transition.rs
    • ToolDisplayInput in tool_display.rs (12 call sites across 9 files)
    • IssueContext in prompt.rs
    • NormalizedEventParams in codex normalization
    • TurnSnapshotRow in usage persistence
    • WorkStateUpdate + SessionMetaEvent in codex rollout runtime
    • ClaudeResumeParams in session resume
    • MissionIssueStateUpdate in mission control persistence
    • CreateReviewArgs + CreateSessionArgs in CLI commands

Remaining (16 sites) — deferred to follow-ups:

Test plan

  • make rust-ci passes (check + clippy + test + fmt)
  • No new #[allow(clippy::...)] directives added
  • Follow-up issues filed for remaining sites

Closes #71

--permission-prompt-tool stdio routes ALL permission decisions through the
control protocol, bypassing the CLI's internal --permission-mode auto-accept
logic. This caused edit tools to still require manual approval even when
the session was set to acceptEdits.

Fix: when permission_mode is "acceptEdits", automatically include Edit,
Write, and NotebookEdit in --allowedTools so the CLI pre-approves them.
…int targets

Audit and clean up existing `#[allow(clippy::...)]` directives across
orbitdock-server. Removes 18 of 34 allow sites by fixing the underlying
design issues Clippy was pointing at:

- needless_return: removed (code was already correct)
- enum_variant_names: removed (no longer triggers)
- type_complexity: replaced 26-element tuple with named ActiveSessionRow struct
- too_many_arguments (15 sites): introduced params structs including
  ApprovalPreviewContext, ToolDisplayInput, IssueContext,
  NormalizedEventParams, TurnSnapshotRow, WorkStateUpdate,
  SessionMetaEvent, ClaudeResumeParams, MissionIssueStateUpdate,
  CreateReviewArgs, CreateSessionArgs

Remaining 16 allows are deferred to follow-up issues (#75#78) as they
require larger refactors touching protocol types and connector internals.
@Robdel12 Robdel12 merged commit e3da176 into main Mar 22, 2026
3 checks passed
@Robdel12 Robdel12 deleted the mission/robdel12-orbitdock#71 branch March 22, 2026 14:26
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.

♻️ Audit and start removing existing Clippy allows in orbitdock-server

1 participant