Navigates back to the default agent for a given client session in a swarm.
This function switches the active agent to the default agent defined in the swarm schema for the specified client session.
It validates the session and default agent, logs the operation if enabled, and executes the change using a TTL-limited, queued runner.
The execution is wrapped in beginContext to ensure it runs outside of existing method and execution contexts.
Parameters
clientId: string
The unique identifier of the client session.
Returns Promise<boolean>
A promise that resolves when the default agent change is complete. If navigation stack contains recursion being canceled
Throws
If session or agent validation fails, or if the agent change process encounters an error.
Navigates back to the default agent for a given client session in a swarm.
This function switches the active agent to the default agent defined in the swarm schema for the specified client session. It validates the session and default agent, logs the operation if enabled, and executes the change using a TTL-limited, queued runner. The execution is wrapped in
beginContext
to ensure it runs outside of existing method and execution contexts.