Memory spaces in React
Supply an optional runtime scope.memorySpaceId selector. Convex resolves the actor and verifies current access; arbitrary IDs in React props do not provision a space grant.
Use a separate owned protected connection when switching tenant/space/identity. Disconnect the prior transport, close its client and clear messages/history/recall/artifact/job/previews before mounting the new view. Late results from the old connection must not render in the new one.
The published Agent belongs to the selected scope and pins its definition hash. Local reconnect state must match that Agent/conversation and is authorized freshly. Own-only actors cannot read whole-space readiness counters.
See runtime memory spaces, authentication and remote setup.