Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions crates/eval/examples/negative_feedback_comments/base.toml
Original file line number Diff line number Diff line change
@@ -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"
Original file line number Diff line number Diff line change
@@ -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.
1 change: 1 addition & 0 deletions crates/eval/examples/negative_feedback_comments/prompt.md
Original file line number Diff line number Diff line change
@@ -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.
Original file line number Diff line number Diff line change
@@ -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.
Loading