Skip to content

Commit 6aa3521

Browse files
authored
feat(app): add hex tip (#63668)
1 parent 2b2c605 commit 6aa3521

2 files changed

Lines changed: 17 additions & 1 deletion

File tree

‎packages/app/src/runtime/i18n/en.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -616,6 +616,9 @@ export const dict = {
616616
"tips.browse.title": "Control your browser",
617617
"tips.browse.description": "Let OpenCode work in your browser with the sites you’re already signed in to.",
618618
"tips.browse.install": "Install",
619+
"tips.hex.title": "Use your voice",
620+
"tips.hex.description": "Hold a key and speak your prompts. Runs entirely locally and works across your whole computer.",
621+
"tips.hex.install": "Install",
619622
"tips.search.title": "Find a past conversation",
620623
"tips.search.description": "Search your sessions to pick up where you left off.",
621624
"home.workspaceTip": "Start next session in a new workspace to keep changes isolated",

‎packages/app/src/tips/model.ts‎

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,20 @@ export function createTipToasts() {
5858
?.some((item) => item.name === "browse"),
5959
action: {
6060
label: "tips.browse.install",
61-
run: () => platform.openExternal("https://chromewebstore.google.com/detail/mfnicocicmmlkpjnaffgihfjhdgjkdjg"),
61+
run: () => platform.openExternal(
62+
"https://chromewebstore.google.com/detail/mfnicocicmmlkpjnaffgihfjhdgjkdjg?utm_source=opencode-desktop&utm_campaign=tip-browse",
63+
),
64+
},
65+
},
66+
{
67+
id: "hex",
68+
title: "tips.hex.title",
69+
description: "tips.hex.description",
70+
action: {
71+
label: "tips.hex.install",
72+
// anoma.ly/hex 404s with a query string; the trailing slash is required.
73+
run: () =>
74+
platform.openExternal("https://anoma.ly/hex/?utm_source=opencode-desktop&utm_campaign=tip-hex"),
6275
},
6376
},
6477
{

0 commit comments

Comments
 (0)