Skip to content

Refresh OpenCode Databricks tokens on demand - #358

Merged
lilly-luo merged 5 commits into
mainfrom
opencode-renewable-auth
Sep 2, 2026
Merged

Refresh OpenCode Databricks tokens on demand#358
lilly-luo merged 5 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
@lilly-luo
lilly-luo enabled auto-merge (squash) September 2, 2026 18:22
@rohita5l
rohita5l force-pushed the opencode-renewable-auth branch from eaa64e3 to f4722c5 Compare September 2, 2026 18:34
@lilly-luo
lilly-luo merged commit cc03434 into main Sep 2, 2026
2 checks passed
@lilly-luo
lilly-luo deleted the opencode-renewable-auth branch September 2, 2026 19:26
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.

2 participants