feat(accounts): export OpenCode auth json#757
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 42f8cc818d
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Hey, thanks for reviving this PR. Sorry I was offline for about a week due to holidays, so I couldn’t respond earlier on #532. I’ve now enabled “Allow edits by maintainers” for future PRs. Since #757 is based on my original implementation from #532, could you please keep the attribution/authorship clear in the final merge? I’m also happy to review this PR or help with any remaining fixes. |
|
@codex review |
|
Codex Review: Didn't find any major issues. What shall we delve into next? ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
@codex review |
|
Codex Review: Didn't find any major issues. 🎉 ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Allow users to move a selected account into stock OpenCode without relying on custom multi-account auth fields.
|
@codex review |
|
Codex Review: Didn't find any major issues. Already looking forward to the next diff. ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
@codex review |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Summary
Revives #532 on a maintainer-owned branch because the original PR head has
maintainerCanModify=false.Credit: original implementation by @lNimien in #532; this branch rebases and updates that work on current
main.chatgpt_account_iddirectly, so unknown real ChatGPT account ids serialize asnullinstead of falling back to the local codex-lb account id.Validation
ruff check app/modules/accounts app/core/auth tests/integration/test_account_opencode_auth_export.pypassedruff format --check app/modules/accounts app/core/auth tests/integration/test_account_opencode_auth_export.pypassedgit diff --check origin/main...HEADpassedpytest tests/integration/test_account_opencode_auth_export.pywas blocked in this isolated worktree because no.venvexists and system pytest is missingpydantic_settingsty check ...was blocked becausetyis not installed on PATH and no.venv/bin/tyexistsOpenSpec
Revives #532