[PR #5743] auth v2 credential ui #11563

Closed
opened 2026-02-16 18:16:25 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/5743

State: closed
Merged: No


Context: #5748.

Builds on auth v2 core branch jroth1111:auth-v2-core (RFC: specs/provider-auth-v2.md).

Summary

Adds a TUI "connected accounts" manager and basic rotation instrumentation so users can see/manage stored credentials and quickly diagnose same-request OAuth rotation behavior.

What changed

  • New "Manage connected accounts" dialog: list credentials, show cooldown/last status, rename (r) and delete (d).
  • Server API endpoints for credential list/update/delete, used by the TUI.
  • In-memory rotation counters (RotationStats) + server /debug/rotation endpoint.
  • Status dialog shows rotation totals and per-provider top rotations.
  • Rotation engine records request/attempt/rotate/refresh events.
  • Test coverage for the auth-expired rotation fallback.

How to test

  • In TUI → provider dialog → "Manage connected accounts" to rename/delete records.
  • Make a request that triggers rotation; open Status to see OAuth Rotation counters increment.
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/5743 **State:** closed **Merged:** No --- Context: #5748. Builds on auth v2 core branch `jroth1111:auth-v2-core` (RFC: `specs/provider-auth-v2.md`). ## Summary Adds a TUI "connected accounts" manager and basic rotation instrumentation so users can see/manage stored credentials and quickly diagnose same-request OAuth rotation behavior. ## What changed - New "Manage connected accounts" dialog: list credentials, show cooldown/last status, rename (`r`) and delete (`d`). - Server API endpoints for credential list/update/delete, used by the TUI. - In-memory rotation counters (`RotationStats`) + server `/debug/rotation` endpoint. - Status dialog shows rotation totals and per-provider top rotations. - Rotation engine records request/attempt/rotate/refresh events. - Test coverage for the auth-expired rotation fallback. ## How to test - In TUI → provider dialog → "Manage connected accounts" to rename/delete records. - Make a request that triggers rotation; open Status to see OAuth Rotation counters increment.
yindo added the pull-request label 2026-02-16 18:16:25 -05:00
yindo closed this issue 2026-02-16 18:16:25 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11563