Files
zed/crates/edit_prediction_cli/evals/hello-world--rename-accepted-group-by.md
T
Mohamad KhaniandClaude Fable 5 46c7879954 logiguard fork v2: patched GPUI on verified 8c74db0 tree
Rebuilt from the exact zed-industries/zed @ 8c74db00c4053d6c0a9037863d7bd048658da4ca
tree (previous orphan was based on a stale/wrong fetch). Same 3-file patch:
  - serial.rs: add SerialKind::KeyboardEnter
  - client.rs: store wl_keyboard.enter serial; add latest_serial_of()
  - window.rs: activate() uses keyboard-enter serial (Mutter focus gate)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-14 01:44:22 +03:30

1.5 KiB

+++ repository_url = "https://github.com/octocat/hello-world" revision = "7fd1a60b01f91b314f59955a4e4d4e80d8edf11d" +++

Edit History

--- a/README
+++ b/README
@@ -1,1 +1,6 @@
-Hello World!
+function filterByStatus(items, status) {
+    return items.filter(item => item.status === status);
+}
+
+function groupBy
+

// User accepted prediction:

--- a/README
+++ b/README
@@ -4,3 +4,9 @@
 
-function groupBy
+function groupByStatus(items) {
+    return items.reduce((groups, item) => {
+        const key = item.status;
+        (groups[key] = groups[key] || []).push(item);
+        return groups;
+    }, {});
+}
 
--- a/README
+++ b/README
@@ -4,4 +4,4 @@
 
-function groupByStatus(items) {
+function groupByCat(items) {
     return items.reduce((groups, item) => {

Cursor Position

function filterByStatus(items, status) {
    return items.filter(item => item.status === status);
}

function groupByCat(items) {
#                  ^[CURSOR_POSITION]
    return items.reduce((groups, item) => {
        const key = item.status;
        (groups[key] = groups[key] || []).push(item);
        return groups;
    }, {});
}

Expected Patch

--- a/README
+++ b/README
@@ -5,7 +5,7 @@
-function groupByCat(items) {
+function groupByCategory(items) {
#                        ^[CURSOR_POSITION]
     return items.reduce((groups, item) => {
-        const key = item.status;
+        const key = item.category;
         (groups[key] = groups[key] || []).push(item);
         return groups;
     }, {});