Skip to content

Studio browser: import history, camera and microphone site settings, local links - #17646

Merged
shimmyshimmer merged 4 commits into
mainfrom
studio-browser-site-settings
Nov 14, 2026
Merged

shimmyshimmer merged 4 commits into
mainfrom
studio-browser-site-settings

Conversation

@shimmyshimmer

Copy link
Copy Markdown
Member

What changed

Three additions to the Studio browser settings. Independent of #17594 and #17596.

Import browsing history

  • Settings > Browser > Browsing data has a new Import history row, next to the existing bookmark import.
  • Accepts Safari's History.json (File > Export Browsing Data) and Chrome's history from Google Takeout. Both arrive as a ZIP; unzip and pick the JSON.
  • Only http and https visits with a sane date are imported. Importing the same file twice adds nothing, and the "Keep history for" setting and the history limit still apply. The import works with history saving turned off, since it is an explicit action.

Camera and microphone site settings (Desktop app)

  • A new section sets Ask or Block for camera and for microphone, as a default and per site. A site rule wins over the default.
  • Block only: the app still never grants a page a capture device itself. Ask is the system's own prompt, as before. The existing test that proves no path returns Allow now runs over every rule combination.
  • Rules are stored per account in the app and sent to the shell at startup and on change. Until the first send, requests get the system prompt.

Links to local addresses

  • With "Open links in: Unsloth browser" on, a link to localhost used to open a panel tab that cannot load, because a local page only opens in the panel when its address is typed there. Such links now go to the default browser, and the setting's description says so.

How it was verified

  • Frontend: npm run typecheck, npm test (15884 pass, 0 fail), npm run build. New browser-history-import and browser-capture-sites tests.
  • Rust: cargo test page_ (5 passed) and cargo test capture (8 passed) on macOS.
  • Live, in an isolated web Studio on macOS: the Import history row is present; importing a small Safari-format file added the one valid visit and dropped a javascript: entry and one dated 1970. The camera and microphone section is hidden outside the Desktop app, as intended.

Not verified here

  • The camera and microphone settings screen and the real block behaviour need a running Desktop app, which was not built or driven. The Rust change has no platform-specific code, but Windows and Linux were not compiled.
  • A site that WebView2 has already been told to allow may not reach the handler, so Block may not apply to it until that saved answer is reset.
  • The import formats follow Apple's and Google's published schemas; no real export file was available.
  • Other locales fall back to English for the new strings.
  • biome check reports pre-existing formatting errors repo-wide; the new files add none at error level.

Schemas: https://developer.apple.com/documentation/safariservices/importing-data-exported-from-safari and https://developers.google.com/data-portability/schema-reference/chrome

… send local links to the default browser

Settings > Browser gains an Import history row (Safari History.json, Chrome history from Google Takeout) and, in the Desktop app, Ask or Block for camera and microphone as a default and per site. A link to a local address no longer opens a panel tab that cannot load.
@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-14T10:10:50.133434Z 4d94bc9 Manual request
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 08f11c45a2

ℹ️ 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".

Comment on lines +1133 to +1136
*state
.0
.lock()
.unwrap_or_else(|poisoned| poisoned.into_inner()) = rules;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Reset saved WebView2 denials when capture rules change

On Windows, blocking a site's capture request and then changing its rule back to Ask can leave it blocked. The pinned Wry permission handler applies Deny through SetState without disabling persistence; WebView2 saves those decisions by default, and subsequent requests may bypass the handler. This setter only updates the in-memory rules, so changing to Ask or removing an exception does not reset the saved denial. Prevent app-enforced denials from being persisted, or reset the affected origins' native permission states when rules change.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 6632bba: page views on Windows now mark a request the rules block as not saved in the profile (SavesInProfile false), so the handler keeps being asked and a rule changed back to Ask takes effect. Answers to WebView2's own prompt are still saved as before. The WebView2 calls were compile-checked for the Windows target in isolation; the full app was not built for Windows here.

@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Nice work!

Reviewed commit: 6632bba346

ℹ️ 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".

@danielhanchen

Copy link
Copy Markdown
Member

Two reds on the current head (6632bba):

  • Frontend build + bundle sanity fails at npm run i18n:check:strict: every locale overlay is missing the 24 new browser.capture.* and browser.importHistory* keys. Adding them to each overlay under studio/frontend/src/i18n/ clears it.
  • (Python 3.13, m-r): studio/backend/tests/test_mcp_http_integration.py::test_parallel_calls_in_one_chat_are_not_serialized timed out at 2.09s against its 1.8s limit, while the server still saw both calls at once (max_concurrency=2). That points to a slow runner, not this PR. A rerun should pass.

@danielhanchen danielhanchen added affects UI# codex-converged# edge case# new-feature# refactor# security# Moves a security boundary: sandbox, allowlist, permission or network guard labels Nov 14, 2026
@shimmyshimmer

Copy link
Copy Markdown
Member Author

Thanks. Both looked at:

  • i18n: fixed in 4d94bc9. All 24 overlays now carry the browser.capture.* and browser.importHistory* keys, and npm run i18n:check:strict passes locally. I also added the local links sentence to each overlay's openLinksSettingDescription so it matches the English text. The translations are mine and have not been checked by native speakers.
  • test_parallel_calls_in_one_chat_are_not_serialized: agreed, this PR does not touch the MCP code or that test. The new push reruns it.

@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Delightful!

Reviewed commit: 4d94bc9c9b

ℹ️ 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".

@shimmyshimmer
shimmyshimmer merged commit 50beae7 into main Nov 14, 2026
@shimmyshimmer
shimmyshimmer deleted the studio-browser-site-settings branch November 14, 2026 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

affects UI# codex-converged# edge case# new-feature# refactor# security# Moves a security boundary: sandbox, allowlist, permission or network guard

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants