Choose an organization
Understand how AgentStack resolves the active workspace after sign-in.
AgentStack uses the organization resolver after sign-in and when a link needs an active workspace. The resolver loads the memberships of the signed-in user. If browser storage has a valid, previously used organization slug, the resolver selects that organization. Otherwise, the resolver selects the first accessible organization. The resolver saves the selected slug for up to one year. This lets a later visit return to the same workspace.
The resolver also handles OAuth outcomes. It forwards a successful or failed provider callback to the Integrations page of the resolved workspace. This lets the person who started connection setup see the result. If the resolver cannot load memberships, it shows a retry path instead of a guess. If a user has no organization, the resolver does not invent a state for organization creation.
For support tooling and deep links: if your system already knows the intended organization, link directly to a known /org/<slug>/… path. Use /org/resolve only for interactive recovery, not for authorization. The resolver selects a workspace for navigation. Every destination still applies its own membership, role, and plan checks.