Compare commits

...

1 Commits

Author SHA1 Message Date
Thomas Mickley-Doyle
c080d3d60d Add example for negative comment 2025-04-21 22:57:44 -05:00
4 changed files with 11 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
# Pull Request: https://github.com/zed-industries/zed/pull/27934
url = "https://github.com/zed-industries/zed.git"
revision = "889bc13b7dd61c67d894cee8a6cdd87f56c6c45b"
language_extension = "rs"

View File

@@ -0,0 +1,3 @@
1. The changes must add internal state to track whether the user is providing feedback comments and to store the comment editor instance. This includes adding new fields to the ActiveThread struct and initializing them appropriately when the thread is created.
2. When a user selects negative feedback, the application should show a UI for submitting additional comments. This includes rendering a short prompt, a multi-line text editor, and submit/cancel buttons. The editor should only be created when first needed, and the UI should be dismissed and cleaned up after submission or cancellation.
3. On submit, the system must report the negative feedback as before, and if the comment field is not empty, it must also log the comment as a separate telemetry event. Positive feedback handling should remain unchanged and bypass the comment UI entirely.

View File

@@ -0,0 +1 @@
Add support for optional user comments when the thumbs down is given on a thread. Comments should be submitted along with the reaction and logged if provided. Make sure the UI highlights the ui icon when the user clicks it.

View File

@@ -0,0 +1,3 @@
1. The first tool call should perform a regex search for terms related to "negative feedback." Since no specific file path or code snippet was provided, regex is necessary to locate relevant content. Once the matching files are found, their contents should be read.
2. Only the `zed/crates/agent/src/active_thread.rs` file needs to be edited. All logic related to reactions and negative comments should be contained within this file.
3. A comment box should appear only when the negative reaction is clicked. The positive reaction behavior should remain unchanged.