Files
zed/crates/edit_prediction_cli/evals/flask--rename-accepted-prediction.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

99 lines
2.0 KiB
Markdown

+++
repository_url = "https://github.com/pallets/flask"
revision = "2fec0b206c6e83ea813ab26597e15c96fab08be7"
+++
## Edit History
```diff
--- 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:
```diff
--- 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):
```
```diff
--- 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
```tests/test_basic.py
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
```diff
--- 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()
```