diff --git a/crates/agent/src/agent_panel.rs b/crates/agent/src/agent_panel.rs index a7cbfba5c7..2d7dfea27d 100644 --- a/crates/agent/src/agent_panel.rs +++ b/crates/agent/src/agent_panel.rs @@ -525,8 +525,8 @@ impl AgentPanel { let panel_type = AssistantSettings::get_global(cx).default_view; let active_view = match panel_type { - DefaultView::Agent => ActiveView::thread(thread.clone(), window, cx), - DefaultView::Thread => { + DefaultView::Thread => ActiveView::thread(thread.clone(), window, cx), + DefaultView::TextThread => { let context = context_store.update(cx, |context_store, cx| context_store.create(cx)); let lsp_adapter_delegate = make_lsp_adapter_delegate(&project.clone(), cx).unwrap(); diff --git a/crates/assistant_settings/src/assistant_settings.rs b/crates/assistant_settings/src/assistant_settings.rs index fa2b670416..706b20d86c 100644 --- a/crates/assistant_settings/src/assistant_settings.rs +++ b/crates/assistant_settings/src/assistant_settings.rs @@ -35,8 +35,8 @@ pub enum AssistantDockPosition { #[serde(rename_all = "snake_case")] pub enum DefaultView { #[default] - Agent, Thread, + TextThread, } #[derive(Copy, Clone, Default, Debug, Serialize, Deserialize, JsonSchema, PartialEq, Eq)] @@ -614,19 +614,19 @@ pub struct AssistantSettingsContentV2 { /// /// Default: true enabled: Option, - /// Whether to show the assistant panel button in the status bar. + /// Whether to show the agent panel button in the status bar. /// /// Default: true button: Option, - /// Where to dock the assistant. + /// Where to dock the agent panel. /// /// Default: right dock: Option, - /// Default width in pixels when the assistant is docked to the left or right. + /// Default width in pixels when the agent panel is docked to the left or right. /// /// Default: 640 default_width: Option, - /// Default height in pixels when the assistant is docked to the bottom. + /// Default height in pixels when the agent panel is docked to the bottom. /// /// Default: 320 default_height: Option, @@ -644,9 +644,9 @@ pub struct AssistantSettingsContentV2 { /// /// Default: write default_profile: Option, - /// The default assistant panel type. + /// Which view type to show by default in the agent panel. /// - /// Default: agentic + /// Default: "thread" default_view: Option, /// The available agent profiles. pub profiles: Option>, @@ -676,7 +676,6 @@ pub struct AssistantSettingsContentV2 { /// Default: [] #[serde(default)] model_parameters: Vec, - /// What completion mode to enable for new threads /// /// Default: normal diff --git a/docs/src/ai/configuration.md b/docs/src/ai/configuration.md index 8f8b9426f4..051ce17a7c 100644 --- a/docs/src/ai/configuration.md +++ b/docs/src/ai/configuration.md @@ -460,7 +460,7 @@ However, you can change it either via the model dropdown in the Agent Panel's bo ```json { - "assistant": { + "agent": { "version": "2", "default_model": { "provider": "zed.dev", @@ -484,7 +484,7 @@ Example configuration: ```json { - "assistant": { + "agent": { "version": "2", "default_model": { "provider": "zed.dev", @@ -517,7 +517,7 @@ One with Claude 3.7 Sonnet, and one with GPT-4o. ```json { - "assistant": { + "agent": { "default_model": { "provider": "zed.dev", "model": "claude-3-7-sonnet" @@ -532,3 +532,16 @@ One with Claude 3.7 Sonnet, and one with GPT-4o. } } ``` + +## Default View + +Use the `default_view` setting to set change the default view of the Agent Panel. +You can choose between `thread` (the default) and `text_thread`: + +```json +{ + "agent": { + "default_view": "text_thread". + } +} +``` diff --git a/docs/src/configuring-zed.md b/docs/src/configuring-zed.md index 91cb60a396..bddc1a51d6 100644 --- a/docs/src/configuring-zed.md +++ b/docs/src/configuring-zed.md @@ -3284,6 +3284,7 @@ Run the `theme selector: toggle` action in the command palette to see a current "dock": "right", "default_width": 640, "default_height": 320, + "default_view": "thread", "default_model": { "provider": "zed.dev", "model": "claude-3-7-sonnet-latest"