Skip to content

refactor: isolate native CLI availability resolution - #129374

Merged
shakkernerd merged 1 commit into
mainfrom
refactor/native-cli-availability-resolver
Aug 25, 2026
Merged

shakkernerd merged 1 commit into
mainfrom
refactor/native-cli-availability-resolver

Conversation

@shakkernerd

Copy link
Copy Markdown
Contributor

Summary

Repair the lint regressions left by #129332 without changing native Claude CLI model availability.

This keeps the follow-up to #129052 structurally aligned with the existing model-list auth owner.

Root Cause

#129332 placed the prepared native CLI ownership resolver directly in models-list-result.ts, pushing an already-large module past the max-lines limit.

The same change removed copied credential setup from the native CLI Gateway test but left its now-unused state callback parameter.

Changes

  • move prepared synthetic CLI runtime resolution into models-list-auth-resolver.ts
  • keep plugin activation and provider/runtime/synthetic-auth ownership checks unchanged
  • pass the prepared resolver into the model-list evaluator
  • remove the unused native CLI test callback parameter

Verification

  • exact failing Oxlint core stripe
  • max-lines ratchet
  • 42 focused Gateway tests
  • core typecheck
  • formatting
  • autoreview

Refs #129332

@shakkernerd
shakkernerd requested a review from a team as a code owner August 25, 2026 14:29
@clawsweeper

clawsweeper Bot commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@shakkernerd shakkernerd self-assigned this Aug 25, 2026
@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime size: S maintainer Maintainer-authored PR labels Aug 25, 2026
@shakkernerd
shakkernerd merged commit 2390f3d into main Aug 25, 2026
219 of 231 checks passed
@shakkernerd
shakkernerd deleted the refactor/native-cli-availability-resolver branch August 25, 2026 14:30
@shakkernerd

Copy link
Copy Markdown
Contributor Author

Fixed: native CLI model availability now satisfies the core lint and max-lines gates without changing behavior.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 26, 2026
Moved native CLI availability ownership resolution into the model-list auth owner and removed the stale test callback, restoring lint without changing behavior.

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

Labels

gateway Gateway runtime maintainer Maintainer-authored PR size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant