From 017f9b89aa26bfcb015b3f05c3f2dff64704338d Mon Sep 17 00:00:00 2001 From: Viraj Bhartiya Date: Tue, 29 Sep 2026 17:43:33 +0000 Subject: [PATCH] agent_ui: Hide wrap guides in the agent message editor (#64886) ## Summary Closes #55958 When no conversation has started yet, the agent panel's message editor uses `EditorMode::Full`. Wrap guides are only drawn in full mode, so a user's `wrap_guides` setting (for example `"wrap_guides": [100]`) showed a vertical line across the empty agent panel. The line does nothing useful there. The message editor already turns off indent guides. This PR turns off wrap guides in the same place, the same way the inline assistant's prompt editor already does (`inline_assistant.rs`). ## Testing 1. Add `"wrap_guides": [50]` to `settings.json`. 2. Open the agent panel before starting a conversation, and make it wide enough to reach column 50. 3. Before this change a vertical wrap guide shows in the empty panel. After it, none shows. `cargo clippy -p agent_ui --all-targets -- --deny warnings` and `cargo fmt --check` pass. ## Self-review - [ ] I've reviewed my diff for quality, security, reliability, and performance. - [ ] UI changes follow the [checklist](https://zed.dev/docs/development/ui-checklist). - [ ] Tests cover the new or changed behavior. Release Notes: - Fixed wrap guides showing in the agent panel before a conversation starts. --- crates/agent_ui/src/message_editor.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/agent_ui/src/message_editor.rs b/crates/agent_ui/src/message_editor.rs index 602160ee0fb..abf21684cb1 100644 --- a/crates/agent_ui/src/message_editor.rs +++ b/crates/agent_ui/src/message_editor.rs @@ -476,6 +476,7 @@ impl MessageEditor { let mut editor = Editor::new(mode, buffer, None, window, cx); editor.set_placeholder_text(placeholder, window, cx); editor.set_show_indent_guides(false, cx); + editor.set_show_wrap_guides(false, cx); editor.set_show_completions_on_input(Some(true)); editor.set_soft_wrap(); editor.disable_mouse_wheel_zoom();