Expand description
The settings a session is spawned with.
Read from the three Claude Code documents rather than kept as state, so a session started from a client spawns with what the CLI itself would have launched. A spawn that skipped this carries no language and no model, and the CLIβs own defaults for permissions, effort and output style.
Re-exportsΒ§
use forge_agent::client::SessionLaunchSettings;πuse forge_primitives::runtime::EffortLevel;πuse serde_json::Map;πuse serde_json::Value;πuse serde_json::json;π
StructsΒ§
- Launch
Settings Documents - The three documents a launch reads, each as the CLI sees it.
EnumsΒ§
- Default
Permission Mode - The mode stored at
settings.permissions.defaultMode. - Output
Style - The style stored at
settings.outputStyle.
ConstantsΒ§
- LANGUAGE_
MAX_ πCHARS - LANGUAGE_
MIN_ πCHARS
FunctionsΒ§
- always_
thinking_ enabled - build_
session_ πsettings_ object - default_
permission_ mode - Forge defaults to
Auto, which the CLI itself callsdefault. - language
- The language a session is launched in, when the stored value is usable.
- language_
input_ validation_ message - Validate a free-text language string before it reaches the launch
settings payload. Returns a message when the value is out of range,
otherwise
Nonefor βlooks fineβ. - model
- The model a session launches on. Forge defaults to
opuswhen none is stored; the CLIβs own default issonnet, so without this every fresh forge session would launch on sonnet. - output_
style - read_
bool π - read_
json_ πpath - read_
string π - session_
launch_ settings - The settings a launch carries: the language, the settings object the CLI merges at boot, and agent progress summaries.
- spinner_
tips_ enabled - terminal_
progress_ bar_ enabled - thinking_
effort - Forge defaults to
maxeffort when none is stored.