reload(
self,
*,
cwd: Path,
plugins: tuple[PluginInstance, ...] | Name | Type | Description |
|---|---|---|
cwd* | Path | |
plugins | tuple[PluginInstance, ...] | None | Default: None |
Rebuild the runtime after configuration or working-directory changes.
Workspace trust is re-resolved for cwd, so moving from a trusted
project into an untrusted one drops project hooks instead of carrying
the previous grant forward. The presenter survives the reload, so the
client's output sinks stay bound.
Pending SessionStart context is dropped with the old runtime, matching
the lifecycle boundary that triggers a reload.
New session working directory.
Already-discovered plugins, or None to discover them.