1a365a45bd
A user a workspace is shared with may now start and resume AI sessions in it. The run uses THEIR OWN account — a Claude pool setup-token, a Codex/Cursor pool API key, or an AI Proxy of theirs — never the owner's login or a pool login (409 ENOCOLLABACCOUNT otherwise). Their quota decides (EQUOTA, their own flag file, the sweep goes by payer). Money is per payer by UTC hour (session_payers, server/lib/session-payers.js): a session nobody else ran is billed as before; one a collaborator started is theirs; a resume changes hands from the next hour. Only Claude books by the hour, so a cross-payer resume of any other tool and a collaborator's resumeLast are refused (409 ECOLLABRESUME); a Terminal tab stays the owner's. Users page, details, quotas, Today (mine=1) and developer budgets count by payer. Docs: SERVER-MODE.md, API.md, CLAUDE.md, plan status.