Repository navigation
studio: tell users when a canvas is blocked by the network access setting - #9894
Conversation
3b57510 to
64c56dd
Compare
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 64c56dd606
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 569c2242f6
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
|
Codex Review: Didn't find any major issues. Delightful! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
UI evidence: what the canvas says when the setting blocks itTwo isolated Studio installs, merge base vs head, driven through the same seeded thread. The canvas' only external resource is a Chart.js script from
Controls that held identical on both sides, so the pair is comparable and the canvas did not simply break: BEFORE the canvas answers with a thin strip along the bottom, "Blocked 1 external resource from cdn.jsdelivr.net." and a single "Allow for this canvas" button, with nothing to say that a setting is what turned this off. AFTER the notice moves to the top as a titled alert that names the setting and where to change it, alongside its two actions and a dismiss control. The two actions follow the same pairing as the tool Full text captured on the head side:
Full per-side facts and the pre-declared expectation: CI noteEvery check currently red on this PR is red on |
|
@codex review |
repair reportbeforeThe merge-base UI showed a 72-character strip at the bottom of the canvas with one action. It named the blocked host but did not explain the disabled setting. afterThe pushed head verdictThe reported feature is valid. The review found seven defects in the PR behavior and four independent repository CI defects. All confirmed defects that can be fixed in this repository are fixed in 12 focused commits. GitHub Actions and the external confirmed fixes
verification
regression riskThe focus work touches modal restoration and route shortcuts. Tests cover every open path and every route-changing root shortcut. The cycle repair replaces feature barrels with existing source modules and has a browser negative control. The added Chromium smoke costs about 45 seconds locally and reuses the browser already installed by Frontend CI. compatibilityLocal checks used macOS arm64, Node 24, Python 3.12, and Playwright Chromium. CI supplies Node 22 and Linux coverage. No NVIDIA GPU is present locally, so CUDA, Triton, quantization, and training checks were not run. UI evidenceThe isolated merge-base and original-head comparison remains available here: canvas network alert before and after. It uses Chromium at 1280x900 and the same seeded blocked Chart.js resource on both sides. The accessibility fixes follow WAI-ARIA alert semantics, the ARIA alert example guidance, and W3C document direction guidance. remaining gapsGitHub Actions are still running. Firefox, WebKit, branded Chrome, branded Edge, and native Safari were not run locally. The Core failures observed on the old head came from the separately cloned |
|
@codex review |
|
Codex Review: Didn't find any major issues. Nice work! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
convergence follow-upFresh post-push review found one modal focus regression and one CI assertion mismatch on
Focused verification: 108 frontend tests passed, including the new fullscreen containment regression; application and test TypeScript checks passed. Head is |
|
@codex review |
|
Codex Review: Didn't find any major issues. Another round soon, please! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
ci follow-upTwo additional CI failures on
The Core matrix failure remains in the separately cloned |
|
@codex review |
|
Codex Review: Didn't find any major issues. Another round soon, please! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |

When "Allow canvas network access" is off (the default), a canvas that loads anything from the internet, like a script from a CDN, shows up blank. The only hint was a small line at the bottom of the canvas, and it never mentioned that there is a setting for this. So it looked like the canvas was broken.
This change replaces that line with a clear message at the top of the canvas. It says network access is off, names the sites that were blocked, and offers three options: open the setting in Settings > Chat, allow it just for this canvas, or close the message.
Nothing about how canvases are blocked or allowed has changed. The setting, its default, and the backend are the same. Tests cover the new buttons, and the message was checked in Chrome, Firefox, and Safari engines, in light and dark mode, on narrow layouts, and in all supported languages.