Skip to content

gut(auth): remove dead auth profile consumers (#426)#486

Merged
alexey-pelykh merged 1 commit intomainfrom
gut/auth-profile-consumers-426
Mar 8, 2026
Merged

gut(auth): remove dead auth profile consumers (#426)#486
alexey-pelykh merged 1 commit intomainfrom
gut/auth-profile-consumers-426

Conversation

@alexey-pelykh
Copy link
Copy Markdown

Summary

  • Remove per-session auth profile override system and all consumers, now replaced by per-agent auth config (feat(config): add per-agent auth field to agent list config #421)
  • Delete directive-handling.auth.ts (/auth directive handler) and session-override.ts (per-session override system)
  • Clean up authProfileOverride/authProfileOverrideSource from SessionEntry, authProfileId/authProfileIdSource from FollowupRun queue type
  • Remove resolveModelAuthLabel, auth label display from status output, auth profile validation from commands/agent.ts, and auth override cleanup from sessions-patch/session-status-tool
  • Keep resolveModelAuthMode (cost estimation), core auth profile store, resolveApiKeyForProvider, rotation logic

24 files changed, +22 / -634 lines (2 files deleted, 22 modified)

Part of #415 (Phase 5, item 16). Closes #426.

Test plan

  • pnpm check passes (format + typecheck + lint)
  • pnpm test unit tests pass (978 files, 8209 tests)
  • Verified no remaining references to removed symbols (authProfileOverride, resolveModelAuthLabel, resolveProfileOverride, clearSessionAuthProfileOverride, session-override imports, directive-handling.auth imports)
  • Verified retained code intact (resolveModelAuthMode, resolveApiKeyForProvider, core auth store)

🤖 Generated with Claude Code

Remove per-session auth profile override system and all its consumers,
now replaced by per-agent auth config (#421).

Deleted:
- src/auto-reply/reply/directive-handling.auth.ts (/auth directive handler)
- src/auth/session-override.ts (per-session auth profile override)

Removed from session/queue types:
- authProfileOverride, authProfileOverrideSource (SessionEntry)
- authProfileId, authProfileIdSource (FollowupRun)

Removed from production code:
- resolveModelAuthLabel, formatApiKeySnippet (provider-auth.ts)
- resolveProfileOverride consumer (directive-handling.persist.ts)
- resolveSessionAuthProfileOverride calls (get-reply-run.ts, cron/run.ts)
- Auth profile validation block (commands/agent.ts)
- Auth override cleanup (sessions-patch.ts, session-status-tool.ts)
- Auth label display in status output (status.ts, commands-status.ts)
- resolveRunAuthProfile, resolveProviderScopedAuthProfile (agent-runner-utils.ts)

Kept: resolveModelAuthMode (used for cost estimation), core auth profile
store, resolveApiKeyForProvider, rotation logic.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@alexey-pelykh alexey-pelykh enabled auto-merge (squash) March 8, 2026 18:40
@alexey-pelykh alexey-pelykh merged commit cd6ddde into main Mar 8, 2026
6 of 7 checks passed
@alexey-pelykh alexey-pelykh deleted the gut/auth-profile-consumers-426 branch March 8, 2026 18:48
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.

gut(auth): remove dead auth profile consumers after unified auth

1 participant