Uh oh!
There was an error while loading. Please reload this page.
feat(opencode): add external browser OAuth for snowflake cortex provider - #31700
Conversation
Thanks for updating your PR! It now meets our contributing guidelines. 👍 |
santigc6
commented
Jun 10, 2026
hi, @kameshsampath, in case you are checking with your team, just wanted you to update that it is already implemented. |
4341ac8 to
2426390Comparekameshsampath
commented
Jun 11, 2026
thanks for doing this 🙏🏽 . Wondering how that will flow when the user does not have SSO configured instead use https://docs.snowflake.com/en/user-guide/oauth-local-applications if it works that would be awesome. Not sure I have time to check that right away but if I get to know something will share. |
santigc6
commented
Jun 11, 2026
Hi, thanks for raising that. Good point on the non-SSO flow using the local OAuth option. If you get a chance to try it and run into any issues, feel free to share details here. Always happy to take a closer look or help troubleshoot. |
Co-authored-by: David Fierro <14184197+davidfierro@users.noreply.github.com>
6b4986e to
7902c83Comparekameshsampath
commented
Jun 11, 2026
Here's the comment to post on PR 31700: Hi @santigc6 , I tested it locally against I made a docs-only follow-up commit on my fork that I'd like to include in this PR: What it changes (
To pull it in: # Fetch from my fork
git fetch git@github.com:kameshsampath/opencode.git feat/snowflake-bearer-oauth-auth
# Cherry-pick the single docs commit
git cherry-pick 8807b0e5eThat's one clean commit on top of yours — no conflicts expected since it only touches the Snowflake Cortex section of |
- Restructure Snowflake Cortex section with Browser OAuth as the recommended path and Manual bearer token as the alternative - Fix duplicate account-identifier prompt bug (was shown twice) - Add SNOWFLAKE$LOCAL_APPLICATION availability note with SQL check and link to https://docs.snowflake.com/en/user-guide/oauth-local-applications - Clarify env var slot accepts PAT/JWT only, not browser OAuth flow .... Generated with [Cortex Code](https://docs.snowflake.com/en/user-guide/cortex-code/cortex-code) Co-Authored-By: Cortex Code <noreply@snowflake.com>
santigc6
commented
Jun 11, 2026
Thanks @kameshsampath! I cherry-picked your commit, tested it locally and pushed it to the PR. Appreciate it so much! |
hi @rekram1-node, I saw that you reviewed @kameshsampath 's [pull request] (#29901) to include snowflake cortex codex provider. Could you please review this one to merge it? Thanks in advance. |
sfc-gh-ksampath
commented
Jun 11, 2026
@santigc6 - if possible shall I comment one tiny change to the PR, instead of plain "Paste bearer token manually" does it make sense to call it "Paste PAT or bearer token manually" ? |
rekram1-node
commented
Jun 11, 2026
hey yeah ill review this one too ty Lots of activity here, given there are 2 snowflake employees in this pr chat ill wait till convo is settled before merging |
santigc6
commented
Jun 11, 2026
Hi @sfc-gh-ksampath, I have just renamed the "Paste bearer token manually" option to "Paste PAT or bearer token manually" to make it clearer. Appreciate the contribution! |
santigc6
commented
Jun 11, 2026
@kameshsampath@sfc-gh-ksampath thank you very much for the contributions, do you feel we are ready to merge? |
sorry @rekram1-node and @santigc6 - both the id's |
rekram1-node
commented
Jun 12, 2026
oh lmao haha sounds good! |
rekram1-node
commented
Jun 12, 2026
/review |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
…token source tracking
santigc6
commented
Jun 12, 2026
hi @rekram1-node, just fixed the comments and validated everything works again. Regarding the test I saw the unit (Windows) test had some failures regarding timeouts that I am not sure are related to this pr. Can you confirm? |
Uh oh!
There was an error while loading. Please reload this page.
… docs (#4) * fix(app): fade overflowing titlebar tabs (anomalyco#32082) * chore: generate * fix(app): expand terminal resize gutter hitbox (anomalyco#32169) * feat(app): bring v2 visibility settings to web (anomalyco#32174) * fix(opencode): recover expired MCP sessions (anomalyco#32088) * chore: update nix node_modules hashes * feat(opencode): add external browser OAuth for snowflake cortex provider (anomalyco#31700) Co-authored-by: santiago.gonzalezcarvajcentenera <santiago.gonzalezcarvajcentenera@colaborador.elcorteingles.es> Co-authored-by: David Fierro <14184197+davidfierro@users.noreply.github.com> Co-authored-by: Kamesh Sampath <kamesh.sampath@hotmail.com> Co-authored-by: Cortex Code <noreply@snowflake.com> * chore: generate * docs(verify): note subtask side-effects; add frontmatter table + http-recorder guidance * feat(core): add opt-in EventV2 event log and decision.recorded event --------- Co-authored-by: Luke Parker <10430890+Hona@users.noreply.github.com> Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com> Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com> Co-authored-by: santigc6 <santigc6@users.noreply.github.com> Co-authored-by: santiago.gonzalezcarvajcentenera <santiago.gonzalezcarvajcentenera@colaborador.elcorteingles.es> Co-authored-by: David Fierro <14184197+davidfierro@users.noreply.github.com> Co-authored-by: Kamesh Sampath <kamesh.sampath@hotmail.com> Co-authored-by: Cortex Code <noreply@snowflake.com> Co-authored-by: Claude <noreply@anthropic.com>
…der (anomalyco#31700) Co-authored-by: santiago.gonzalezcarvajcentenera <santiago.gonzalezcarvajcentenera@colaborador.elcorteingles.es> Co-authored-by: David Fierro <14184197+davidfierro@users.noreply.github.com> Co-authored-by: Kamesh Sampath <kamesh.sampath@hotmail.com> Co-authored-by: Cortex Code <noreply@snowflake.com>
…der (anomalyco#31700) Co-authored-by: santiago.gonzalezcarvajcentenera <santiago.gonzalezcarvajcentenera@colaborador.elcorteingles.es> Co-authored-by: David Fierro <14184197+davidfierro@users.noreply.github.com> Co-authored-by: Kamesh Sampath <kamesh.sampath@hotmail.com> Co-authored-by: Cortex Code <noreply@snowflake.com>
…der (anomalyco#31700) Co-authored-by: santiago.gonzalezcarvajcentenera <santiago.gonzalezcarvajcentenera@colaborador.elcorteingles.es> Co-authored-by: David Fierro <14184197+davidfierro@users.noreply.github.com> Co-authored-by: Kamesh Sampath <kamesh.sampath@hotmail.com> Co-authored-by: Cortex Code <noreply@snowflake.com>
…der (anomalyco#31700) Co-authored-by: santiago.gonzalezcarvajcentenera <santiago.gonzalezcarvajcentenera@colaborador.elcorteingles.es> Co-authored-by: David Fierro <14184197+davidfierro@users.noreply.github.com> Co-authored-by: Kamesh Sampath <kamesh.sampath@hotmail.com> Co-authored-by: Cortex Code <noreply@snowflake.com>
…der (anomalyco#31700) Co-authored-by: santiago.gonzalezcarvajcentenera <santiago.gonzalezcarvajcentenera@colaborador.elcorteingles.es> Co-authored-by: David Fierro <14184197+davidfierro@users.noreply.github.com> Co-authored-by: Kamesh Sampath <kamesh.sampath@hotmail.com> Co-authored-by: Cortex Code <noreply@snowflake.com>
…der (#31700) Co-authored-by: santiago.gonzalezcarvajcentenera <santiago.gonzalezcarvajcentenera@colaborador.elcorteingles.es> Co-authored-by: David Fierro <14184197+davidfierro@users.noreply.github.com> Co-authored-by: Kamesh Sampath <kamesh.sampath@hotmail.com> Co-authored-by: Cortex Code <noreply@snowflake.com>
…der (anomalyco#31700) Co-authored-by: santiago.gonzalezcarvajcentenera <santiago.gonzalezcarvajcentenera@colaborador.elcorteingles.es> Co-authored-by: David Fierro <14184197+davidfierro@users.noreply.github.com> Co-authored-by: Kamesh Sampath <kamesh.sampath@hotmail.com> Co-authored-by: Cortex Code <noreply@snowflake.com>
Issue for this PR
Closes#31702
Type of change
What does this PR do?
As mentioned in the pull request #29901 by @davidfierro and me, I have developed a "/connect" Snowflake cortex provider external-browser OAuth.
It is included:
Added support for Snowflake bearer tokens (not only PAT), including:
Fixed Snowflake OAuth compatibility issues:
Updated Snowflake provider/runtime handling and docs.
How did you verify your code works?
Screenshots / recordings
Checklist