Skip to content

Refresh OpenCode Databricks tokens on demand - #358

Open
rohita5l wants to merge 3 commits into
mainfrom
opencode-renewable-auth
Open

Refresh OpenCode Databricks tokens on demand#358
rohita5l wants to merge 3 commits into
mainfrom
opencode-renewable-auth

Conversation

@rohita5l

Copy link
Copy Markdown
Collaborator

Summary

  • replace periodic OpenCode config rewrites with an auto-discovered provider fetch plugin that caches and refreshes Databricks credentials
  • refresh near expiry and retry once with a forced refresh after a 401
  • require OpenCode 1.0.220+, install/update only stable v1 releases, and avoid the broken npm beta tag
  • add a live end-to-end test that starts with a rejected token and proves OpenCode refreshes and retries successfully

Testing

  • focused suite: 342 passed
  • live staging 401 refresh e2e: passed
  • Ruff and git diff checks: passed

@rohita5l
rohita5l requested a review from lilly-luo August 19, 2026 17:30
@rohita5l
rohita5l force-pushed the opencode-renewable-auth branch from 6a018d0 to 5597c33 Compare August 19, 2026 18:39
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.

1 participant