Replace hardcoded agent:main: session keys with resolveActiveAgentId() so each workspace routes to its own gateway agent.