mirror of
https://github.com/anomalyco/opencode.git
synced 2026-04-25 15:24:58 +00:00
Single source of truth for current selection: account_state now owns both active_account_id and active_org_id. Simplifies use() to a single setState call and removes org state from the account table. Also uses db() wrapper consistently in persistAccount and caps orgsByAccount concurrency.