Skip to content

Commit d2b4035

Browse files
danilo-lealdvdsk
authored andcommitted
agent_ui: Make thread markdown editable (#43377)
This PR makes the thread markdown editable. This refers to the "open thread as markdown" feature, where you previously could only read. One benefit of this move is that it makes a bit more obvious that you can `cmd-s` to save the markdown, allowing you to store the content of a given thread. You could already do this before, but due to it being editable now, you see the tab with a dirty indicator, which communicates that better. Release Notes: - agent: Made the thread markdown editable.
1 parent 5d8cfdd commit d2b4035

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/agent_ui/src/acp/thread_view.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4775,7 +4775,7 @@ impl AcpThreadView {
47754775
buffer.update(cx, |buffer, cx| {
47764776
buffer.set_text(markdown, cx);
47774777
buffer.set_language(Some(markdown_language), cx);
4778-
buffer.set_capability(language::Capability::ReadOnly, cx);
4778+
buffer.set_capability(language::Capability::ReadWrite, cx);
47794779
})?;
47804780

47814781
workspace.update_in(cx, |workspace, window, cx| {

0 commit comments

Comments
 (0)