Files
zed/crates/edit_prediction_cli/evals/flask--rename-accepted-prediction.md
Mohamad Khani b9819977a5 logiguard fork v3: full patch set on verified 8c74db0 tree
Includes prior-session patches (carry forward so the app compiles):
  - crates/gpui/build.rs: cross-compile manifest fix
  - crates/gpui/src/platform.rs: PlatformWindow::activate_with_token trait method
  - crates/gpui/src/window.rs: Window::activate_with_token public API
  - crates/gpui_linux/src/linux/wayland/window.rs: WaylandWindow::activate_with_token + activate() keyboard-serial fix

Plus the focus-serial fix:
  - serial.rs: SerialKind::KeyboardEnter
  - client.rs: store wl_keyboard.enter serial; latest_serial_of()

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

2.0 KiB

+++ repository_url = "https://github.com/pallets/flask" revision = "2fec0b206c6e83ea813ab26597e15c96fab08be7" +++

Edit History

--- a/tests/test_basic.py
+++ b/tests/test_basic.py
@@ -356,3 +356,6 @@
     cookie = rv.headers["set-cookie"].lower()
     assert "samesite=lax" in cookie


+de
+
+
 def test_missing_session(app):

// User accepted prediction:

--- a/tests/test_basic.py
+++ b/tests/test_basic.py
@@ -358,6 +358,14 @@


-de
+def test_session_cookie_httponly(app, client):
+    app.config["SESSION_COOKIE_HTTPONLY"] = True
+
+    @app.route("/")
+    def index():
+        flask.session["testing"] = 42
+        return "Hello World"
+
+    rv = client.get("/")
+    assert "httponly" in rv.headers["set-cookie"].lower()


 def test_missing_session(app):
--- a/tests/test_basic.py
+++ b/tests/test_basic.py
@@ -358,14 +358,14 @@


-def test_session_cookie_httponly(app, client):
+def test_session_cookie_secur(app, client):
     app.config["SESSION_COOKIE_HTTPONLY"] = True

Cursor Position

    cookie = rv.headers["set-cookie"].lower()
    assert "samesite=lax" in cookie


def test_session_cookie_secur(app, client):
#                            ^[CURSOR_POSITION]
    app.config["SESSION_COOKIE_HTTPONLY"] = True

    @app.route("/")
    def index():
        flask.session["testing"] = 42
        return "Hello World"

    rv = client.get("/")
    assert "httponly" in rv.headers["set-cookie"].lower()


def test_missing_session(app):

Expected Patch

--- a/tests/test_basic.py
+++ b/tests/test_basic.py
@@ -358,14 +358,14 @@
-def test_session_cookie_secur(app, client):
-    app.config["SESSION_COOKIE_HTTPONLY"] = True
+def test_session_cookie_secure(app, client):
+    app.config["SESSION_COOKIE_SECURE"] = True

     @app.route("/")
     def index():
         flask.session["testing"] = 42
         return "Hello World"

     rv = client.get("/")
-    assert "httponly" in rv.headers["set-cookie"].lower()
+    assert "secure" in rv.headers["set-cookie"].lower()