Repository navigation
Desktop: let OpenBot's own page open mailto, tel and new-tab links - #2922
Merged
Merged
Conversation
Tauri puts the opener plugin's link script in every page the window shows. It takes a click on a mailto: or tel: link, a link meant for a new tab that the outside-links shim leaves alone (another address on this computer), or a link pressed with Control or Shift, and asks plugin:opener|open_url. OpenBot's own page, on this computer or the relay's for OpenBot Cloud, was granted no opener permission, so the click was swallowed and the link opened nothing. PostHog shows it as "Command plugin:opener|open_url not allowed by ACL", and from Desktop releases before 1.2.9, which still carried the shell plugin and its own link script, as "Command plugin:shell|open not allowed by ACL". The owned app page's capability now carries opener:allow-open-url with the plugin's allow-default-urls scope: http, https, mailto and tel URLs only, never a path. A page on any other loopback port still gets nothing. The regression test drives Tauri's real ACL with the real opener permissions through a stand-in open_url, and fails without the grant with the same refusal people hit.
davidmckayv
requested review from
MikeRyanDev,
dustywusty,
guidovizoso,
mxmzb,
samjulien and
tylerslaton
as code owners
December 4, 2026 05:33
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
In OpenBot Desktop, some links in OpenBot's own page did nothing when clicked:
mailto:andtel:links, a link meant for a new tab that points to another address on this computer, and any link pressed with Control or Shift.Tauri puts the opener plugin's link script in every page the window shows. That script takes those clicks, stops the default, and asks for
plugin:opener|open_url. OpenBot's own page, whether on this computer or on the relay for OpenBot Cloud, was never granted an opener permission. Tauri refused the call, so the link opened nowhere.PostHog error tracking (project 26816) has shown this from the Desktop window's page since at least Nov 20:
Command plugin:shell|open not allowed by ACL: about 350 events from about 330 people, on OpenBot 1.1.0 to 1.2.9. These come from Desktop releases before 1.2.9, which still loaded the shell plugin. The shell plugin's link script was always injected and always refused. It also fired on outside links that the shim had already opened, so most of these events are noise. Say where a downloaded file went in OpenBot Desktop, and show it in Finder #2825 removed the shell plugin in 1.2.9.Command plugin:opener|open_url not allowed by ACL: the same click once the shell plugin is gone, so the opener plugin's script takes it over. This one will grow as people update Desktop.The fix adds
opener:allow-open-urlto the capability for the owned app page (allow_app_page), with the plugin's ownopener:allow-default-urlsscope. That scope allowshttp:,https:,mailto:andtel:URLs only, never a path or a file. A page on any other loopback port still gets nothing. Outside links meant for a new tab still go through the outside-links shim and the window's guard, as before. No shell permission is granted.Where it runs
Boundary and audit
API and database
api/, no app's requests, no database change and norelease-policy.json.Changelog
OpenBot Desktop.
mailto:ortel:link, a link to another address on this computer meant for a new tab, or a link pressed with Control or Shift did nothing. It now opens in the default browser or mail app.Proof
openbots_own_page_can_open_a_link_and_another_page_cannotruns Tauri's real ACL with the realopener:permissions through a stand-inopen_url. The stand-in reads the command's and the plugin's scopes the way the real command does, and never opens a browser. The test checks three things:Without the grant, the test fails with the refusal people hit:
opener.open_url not allowed on window "main" ... URL: http://127.0.0.1:3010/channel/c1. With the grant it passes. The fullmain.rssuite passes locally (545 passed, 1 ignored).