Repository navigation
Fix canvas navigation URL handling - #711
Conversation
|
Codex review: found issues before merge. Reviewed June 25, 2026, 8:17 PM ET / 00:17 UTC. Summary Reproducibility: yes. from source inspection: current main returns the browser opener after deferred risk handling, while the PR head routes low-risk URLs into Review metrics: 3 noteworthy metrics.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Mantis proof suggestion Risk before merge
Maintainer options:
Next step before merge
Security Review findings
Review detailsBest possible solution: Either preserve the browser opener as the default while landing the URL-rewrite and active-gateway fixes, or have maintainers explicitly approve canvas-only semantics and update docs/tests/proof for that contract. Do we have a high-confidence way to reproduce the issue? Yes, from source inspection: current main returns the browser opener after deferred risk handling, while the PR head routes low-risk URLs into Is this the best way to solve the issue? No, not yet: the URL rewrite and not-navigated pieces are useful, but replacing the browser opener contract is not the narrowest maintainable fix without maintainer-approved product/security direction. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against ee8fc930a606. Label changesLabel justifications:
Evidence reviewedSecurity concerns:
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
48685d4 to
091d7aa
Compare
|
@clawsweeper re-review Updated after review: preserved configured-gateway-to-effective-tunnel rewrites, added behavior tests for external/tunnel/relative URL rewriting, and added live Windows/WebView MCP proof to the PR body. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review Retrying because the previous ClawSweeper run failed during target repository checkout before reviewing the updated PR. |
|
🦞👀 Command router queued. I will update this comment with the next step. Re-review progress:
|
|
@clawsweeper re-review Retrying now that the previous ClawSweeper runs failed before reviewing the updated commit. The PR body includes the review fix, behavior tests, validation, and live Windows/WebView proof. |
|
🦞👀 Command router queued. I will update this comment with the next step. Re-review progress:
|
091d7aa to
a6fa10a
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
a6fa10a to
764265d
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review |
|
Maintainer triage: the proof is useful, but this branch is currently conflicting and the change is in a security-sensitive canvas navigation path. I’m not going to resolve this opportunistically during cleanup. Please rebase on current main; after that, the existing proof plus a fresh build/shared/tray validation should make it much easier to review safely. |
764265d to
6f25665
Compare
|
Rebased on current upstream/main and force-pushed. Validation after rebase:
Note: after the rebase, I had to restore the shared/tray test projects once because current main added BouncyCastle.Cryptography under Shared. The final required --no-restore validation passed. |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
6f25665 to
ebbdd17
Compare
|
Updated canvas.navigate to be canvas-only. New behavior:
Validation:
Live MCP proof is in the PR body. |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
@shanselman maintainer decision requested: I rebased on current main and reran validation:
This PR now intentionally makes canvas.navigate canvas-only:
Reason: Is this canvas-only contract acceptable for Windows? |
Route canvas.navigate through the same dispatcher timeout guard used by canvas.eval and canvas.snapshot so stalled UI dispatch cannot hang MCP tool calls indefinitely. Co-authored-by: Copilot <[email protected]>
ebbdd17 to
81a99ce
Compare
Summary
navigated: false, opener: unsupported_in_canvasWhy
unsupported_in_canvaskeeps the contract simple and lets agents choose a browser tool explicitly when they really want the browser.Review Fix
navigated: false, opener: unsupported_in_canvas.Proof
Live Windows/WebView proof via local MCP against this branch, using the source-dev profile:
Redacted app log proof:
Tunnel/gateway rewrite proof is covered by
CanvasGatewayUrlRewriterTests:Validation
Results after rebase on current upstream/main: