Skip to content

feat: multi-account provider accounts + account-aware session persistence#23711

Closed
knightfolk wants to merge 14 commits intoanomalyco:devfrom
knightfolk:dev
Closed

feat: multi-account provider accounts + account-aware session persistence#23711
knightfolk wants to merge 14 commits intoanomalyco:devfrom
knightfolk:dev

Conversation

@knightfolk
Copy link
Copy Markdown

Summary

  • sync fork knightfolk/opencode-upstream-sync:dev into upstream anomalyco/opencode:dev
  • includes merged multi-account provider account work and account-aware session persistence
  • includes shipping/testing runbook docs for this track

Key Changes

  • multi-account auth/account switching flow
  • accountKey persistence through prompt/session metadata and restore history paths
  • SDK regeneration and targeted tests
  • docs updates in NEXT_STEPS.md and TESTS.md

Validation

  • bun test --preload ./happydom.ts src/components/prompt-input/submit.test.ts src/pages/session/session-model-helpers.test.ts (from packages/app)
  • bun --cwd packages/opencode test test/session/structured-output.test.ts

Note

Direct push to upstream/dev is restricted for this account, so this PR is the upstream publish path.

@github-actions github-actions Bot added the needs:compliance This means the issue will auto-close after 2 hours. label Apr 21, 2026
@github-actions
Copy link
Copy Markdown
Contributor

This PR doesn't fully meet our contributing guidelines and PR template.

What needs to be fixed:

  • PR description is missing required template sections. Please use the PR template.

Please edit this PR description to address the above within 2 hours, or it will be automatically closed.

If you believe this was flagged incorrectly, please let a maintainer know.

@github-actions
Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

Based on my search, I found one potentially related PR:

Related PR:

However, #11832 appears to be an older PR focused specifically on OAuth support with auto-relogin, while the current PR (#23711) is a broader feature that includes multi-account provider accounts, account-aware session persistence, and is described as a sync from a fork with merged multi-account work.

The searches primarily returned the current PR itself (#23711), suggesting there are no exact duplicate PRs actively open for these features. The #11832 PR is tangentially related but appears to address a different aspect of multi-account functionality.

@knightfolk
Copy link
Copy Markdown
Author

Quick update from branch owner: this is ready to merge from my side and all visible checks are passing. I attempted merge via CLI but branch policy blocked it for my permission level. Happy to make any follow-up tweaks immediately if needed.

@knightfolk
Copy link
Copy Markdown
Author

Closing this; I’m continuing this as a private fork-only project.

@knightfolk knightfolk closed this Apr 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs:compliance This means the issue will auto-close after 2 hours.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant