Skip to content
Source
Docs
Explore
Skills
MCP servers
For agents
Search or jump to…
Sign in
Sign up
pingdotgg
/
t3code
Pull requests
pingdotgg
t3code
Public
Synced with GitHub
Popular #1
Fork
0
0
0
0
1
2
3
4
5
6
7
8
9
Code
Architecture
Issues
Pull requests
Community
Assets
Artifacts
Releases
CI
Agents
Settings
fix(desktop): email links in chat open the mail app
#31175
Send to my agent
Open
juliusmarminge
wants to merge 6 commits into
main
from
refs/pull/31175/head
·
opened
last month
View on GitHub
Conversation
12
Commits
6
Files changed
3
Impact
Showing
3 changed files
with
19 additions
and
4 deletions
.
x
0 of 3 viewed, 3 left
Files
Hide whitespace
Unified
Split
12 additions and 0 deletions
+12
-0
apps/desktop/src/electron/ElectronShell.test.ts
Modified
Diff
Before/After
Viewed
apps/desktop/src/electron/ElectronShell.test.ts
View file
Expand up
Show all 53 lines
@@ -54,6 +54,18 @@
54
54
}).
pipe
(
Effect
.
provide
(
ElectronShell
.
layer
)),
55
55
);
56
56
57
+
it.
effect
(
"opens mailto links in the system mail client"
, () =>
58
+
Effect
.
gen
(
function
* () {
59
+
openExternalMock.
mockResolvedValue
(
undefined
);
60
+
61
+
const
electronShell =
yield
*
ElectronShell
.
ElectronShell
;
62
+
const
result =
yield
* electronShell.
openExternal
(
"mailto:someone@example.com"
);
63
+
64
+
assert.
equal
(result,
true
);
65
+
assert.
deepEqual
(openExternalMock.
mock
.
calls
, [[
"mailto:someone@example.com"
]]);
66
+
}).
pipe
(
Effect
.
provide
(
ElectronShell
.
layer
)),
67
+
);
68
+
57
69
it.
effect
(
"opens only the Grok Bot prompt link"
, () =>
58
70
Effect
.
gen
(
function
* () {
59
71
openExternalMock.
mockResolvedValue
(
undefined
);
Expand down
Show all lines
2 additions and 2 deletions
+2
-2
apps/desktop/src/electron/ElectronShell.ts
Modified
Diff
Before/After
Viewed
apps/desktop/src/electron/ElectronShell.ts
View file
Show all 12 lines
@@ -13,7 +13,7 @@
13
13
import
*
as
Electron
from
"electron"
;
14
14
15
15
// Remote editor deep links and local editor file links must reach the OS handler.
16
-
const
SAFE_WEB_PROTOCOLS
=
new
Set
([
"http:"
,
"https:"
]);
16
+
const
SAFE_EXTERNAL_PROTOCOLS
=
new
Set
([
"http:"
,
"https:"
,
"mailto:"
]);
17
17
const
REMOTE_EDITOR_PROTOCOLS
=
new
Set
(
Home
Search
Explore
Menu