Skip to content

refactor: remove obsolete auth status projection - #129358

Merged
shakkernerd merged 2 commits into
mainfrom
refactor/auth-status-projection
Aug 25, 2026
Merged

shakkernerd merged 2 commits into
mainfrom
refactor/auth-status-projection

Conversation

@shakkernerd

@shakkernerd shakkernerd commented Aug 25, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Remove the obsolete auth-status alias projection and the remaining request-time state that existed only to support it.

This completes cleanup left after #129052 moved Claude authentication ownership back to the native CLI.

Root Cause

models.authStatus still wrapped mapped provider health in suppressSyntheticAliasRowsCoveredByExternalCli, but #129052 removed the alias-map producer and the sole caller always supplied an empty map. The helper therefore could not suppress any row.

The associated regression test modeled copied Claude CLI OAuth credentials that the current runtime no longer produces. After removing the projection, directModelAuthProviders was also unused.

Changes

  • return mapped provider health directly from models.authStatus
  • delete the inert alias-projection helper
  • remove the obsolete copied-credential test
  • remove the unused direct-provider set

Verification

  • 91 focused models.authStatus tests
  • formatting
  • core typecheck
  • reference scan
  • autoreview

@shakkernerd
shakkernerd requested a review from a team as a code owner August 25, 2026 13:42
@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.

@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime size: S maintainer Maintainer-authored PR labels Aug 25, 2026
@shakkernerd shakkernerd self-assigned this Aug 25, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 25, 2026
@shakkernerd
shakkernerd force-pushed the refactor/auth-status-projection branch 2 times, most recently from d7bea68 to c0b40df Compare August 25, 2026 14:00
@shakkernerd
shakkernerd merged commit 9b04f82 into main Aug 25, 2026
48 checks passed
@shakkernerd
shakkernerd deleted the refactor/auth-status-projection branch August 25, 2026 14:04
@shakkernerd

Copy link
Copy Markdown
Contributor Author

Simplified: models.authStatus now returns canonical provider health without the inert alias projection or unused provider set.

@shakkernerd shakkernerd changed the title refactor: remove dead auth status projection refactor: remove obsolete auth status projection Aug 25, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 26, 2026
Removed the inert auth-status alias projection, its obsolete copied-credential coverage, and the unused provider set so the Gateway returns canonical provider health directly.
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 P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant