fix(browse): refs stay valid across calls (v0.2.2) #118

Merged
john merged 1 commit from fix/stable-refs into main 2026-11-28 12:10:56 +00:00
Owner

Found verifying 0.2.1 live: after clicking a link, the returned snapshot had f1e.. refs; clicking one of them in the next call failed (browser_unavailable). Main-frame refs are now always e.., resolved against the current frame prefix. New live-Chromium test fails on main and passes here; 601 tests. Not merged: awaiting John's OK to release 0.2.2.

Found verifying 0.2.1 live: after clicking a link, the returned snapshot had f1e.. refs; clicking one of them in the next call failed (browser_unavailable). Main-frame refs are now always e.., resolved against the current frame prefix. New live-Chromium test fails on main and passes here; 601 tests. Not merged: awaiting John's OK to release 0.2.2.
fix(browse): refs stay valid across calls (v0.2.2)
All checks were successful
Corn CI / release-check-1 (pull_request) Successful in 3s
Corn CI / release-check (pull_request) Successful in 0s
Corn CI / host (pull_request) Successful in 21s
Security / scan (pull_request) Successful in 23s
Security / security (pull_request) Successful in 0s
Corn CI / test (pull_request) Successful in 4m27s
Corn CI / release (pull_request) Has been skipped
Review / change impact (pull_request_target) Successful in 5m29s
186c9c0f33
After a navigation within one call Playwright numbers main-frame refs f1e12;
the next call is a new connection that knows the same element as e12, so
clicking a ref from the previous result failed (browser_unavailable, found
live on 0.2.1). Report main-frame refs without the frame prefix and resolve
them against the frame's current prefix. Test fails on main, passes here.

Change review · 5966613441f0 → 186c9c0f33dc

Call paths changed by this PR

Caller → changed symbol → callee. Each edge labels the line in the caller. One detected entry path (up to 3 hops) is included when found. Static evidence, not a runtime stack trace.

After

flowchart LR
    n0["test_real_playwright_drives_agent_session_through_gateway - modified"]
    n1["_free_port"]
    n2["module scope - modified"]
    n0 -->|L329| n1

Changed symbols:

  • modified test_real_playwright_drives_agent_session_through_gateway — tests/test_browse.py:323
  • modified module scope — src/corn/__init__.py:1
Overall architecture after this change

Source: 186c9c0f33dc · code-review 0.1.0-dev.1.

Generated from resolved static calls between reviewed code areas. Numbers are call sites, not request counts.
Framework registration, dynamic dispatch, and unresolved calls are not shown. This is not a deployment map.
Showing 7 of 7 inter-area edges. Edit the reviewed source instead of this generated page.

flowchart LR
    n1["Console"]
    n2["Identity"]
    n3["Linked MCP"]
    n4["NSW integrations"]
    n5["Persistence"]
    n6["REST handlers"]
    n7["Server composition"]
    n8["Shared contracts"]
    n9["Shopping"]
    n5 -->|"9"| n2
    n7 -->|"5"| n6
    n7 -->|"2"| n8
    n1 -->|"1"| n4
    n1 -->|"1"| n9
    n3 -->|"1"| n2
    n7 -->|"1"| n2

This diagram is for the linked commit. It refreshes after required checks pass for a new head.

<!-- john/release:architecture-review:v1 --> # Change review · `5966613441f0` → [`186c9c0f33dc`](https://code.yawn.dev/john/corn/commit/186c9c0f33dc6f5d4e0e4a607fb221169bab91a5) ## Call paths changed by this PR Caller → changed symbol → callee. Each edge labels the line in the caller. One detected entry path (up to 3 hops) is included when found. Static evidence, not a runtime stack trace. ### After ```mermaid flowchart LR n0["test_real_playwright_drives_agent_session_through_gateway - modified"] n1["_free_port"] n2["module scope - modified"] n0 -->|L329| n1 ``` Changed symbols: - **modified** `test_real_playwright_drives_agent_session_through_gateway` — `tests/test_browse.py:323` - **modified** `module scope` — `src/corn/__init__.py:1` <details><summary>Overall architecture after this change</summary> Source: [186c9c0f33dc](https://code.yawn.dev/john/corn/commit/186c9c0f33dc6f5d4e0e4a607fb221169bab91a5) · `code-review 0.1.0-dev.1`. Generated from resolved static calls between reviewed code areas. Numbers are call sites, not request counts. Framework registration, dynamic dispatch, and unresolved calls are not shown. This is not a deployment map. Showing 7 of 7 inter-area edges. Edit the reviewed source instead of this generated page. ```mermaid flowchart LR n1["Console"] n2["Identity"] n3["Linked MCP"] n4["NSW integrations"] n5["Persistence"] n6["REST handlers"] n7["Server composition"] n8["Shared contracts"] n9["Shopping"] n5 -->|"9"| n2 n7 -->|"5"| n6 n7 -->|"2"| n8 n1 -->|"1"| n4 n1 -->|"1"| n9 n3 -->|"1"| n2 n7 -->|"1"| n2 ``` </details> This diagram is for the linked commit. It refreshes after required checks pass for a new head.
john merged commit a35f4b5885 into main 2026-11-28 12:10:56 +00:00
john deleted branch fix/stable-refs 2026-11-28 12:10:56 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
john/corn!118
No description provided.