YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
feat: clickable links in webview notification + update API skill docs
Louis Beaumonta62943dbba5f
diff --git a/apps/screenpipe-app-tauri/app/notification-panel/page.tsx b/apps/screenpipe-app-tauri/app/notification-panel/page.tsxindex 69e508fe4..50cc95168 100644--- a/apps/screenpipe-app-tauri/app/notification-panel/page.tsx+++ b/apps/screenpipe-app-tauri/app/notification-panel/page.tsx@@ -426,7 +426,37 @@ export default function NotificationPanelPage() {color: "rgba(0, 0, 0, 0.5)",}}>- <ReactMarkdown>{payload.body}</ReactMarkdown>+ <ReactMarkdown+ components={{+ a: ({ href, children }) => (+ <a+ href={href}+ onClick={async (e) => {+ e.preventDefault();+ if (!href) return;+ try {+ // file paths: expand ~ and open natively+ let url = href;+ if (url.startsWith("~/")) {+ const home = await import("@tauri-apps/api/path").then(m => m.homeDir());+ url = "file://" + home + url.slice(2);+ } else if (url.startsWith("/") && !url.startsWith("//")) {+ url = "file://" + url;+ }+ const { open } = await import("@tauri-apps/plugin-shell");+ await open(url);+ } catch {+ // fallback: try window.open+ window.open(href, "_blank");+ }+ }}+ style={{ color: "rgba(0, 0, 0, 0.7)", textDecoration: "underline", cursor: "pointer" }}+ >+ {children}+ </a>+ ),+ }}+ >{payload.body}</ReactMarkdown></div></div>diff --git a/crates/screenpipe-core/assets/skills/screenpipe-api/SKILL.md b/crates/screenpipe-core/assets/skills/screenpipe-api/SKILL.mdindex 711b47e81..5221c8152 100644--- a/crates/screenpipe-core/assets/skills/screenpipe-api/SKILL.md+++ b/crates/screenpipe-core/assets/skills/screenpipe-api/SKILL.md@@ -372,12 +372,24 @@ Memories also appear in `/search?content_type=memory`. Use sparingly — only stSend a notification to the screenpipe desktop UI. This uses the Tauri sidecar server (port 11435), **not** the main API (port 3030).+The notification body supports **markdown**: `**bold**`, `` `inline code` ``, and `[link text](url)`. Links can be web URLs, file paths, or screenpipe deeplinks.+```bash# Simple notificationcurl -X POST http://localhost:11435/notify \-H "Content-Type: application/json" \-d '{"title": "3 new voice memos", "body": "found recordings from today"}'+# Markdown body with links+curl -X POST http://localhost:11435/notify \+ -H "Content-Type: application/json" \+ -d '{"title": "Meeting summary", "body": "**Q3 Planning** notes saved\n\nopen [meeting notes](~/Documents/notes/q3.md) or view [recording](screenpipe://timeline)"}'++# Link to a local file (absolute path or ~ path)+curl -X POST http://localhost:11435/notify \+ -H "Content-Type: application/json" \+ -d '{"title": "Export complete", "body": "saved to [report.csv](~/Downloads/report.csv)"}'+# With action buttonscurl -X POST http://localhost:11435/notify \-H "Content-Type: application/json" \@@ -392,12 +404,17 @@ curl -X POST http://localhost:11435/notify \| Field | Type | Required | Description ||-------|------|----------|-------------|| `title` | string | **Yes** | Notification title |-| `body` | string | **Yes** | Markdown body |+| `body` | string | **Yes** | Markdown body (`**bold**`, `` `code` ``, `[text](url)`) || `type` | string | No | Category (default "pipe") || `timeout` | integer | No | Auto-dismiss in ms (default 20000) || `autoDismissMs` | integer | No | Alias for timeout || `actions` | array | No | Action buttons |+**Supported link types in body markdown:**+- Web URLs: `[docs](https://docs.screenpi.pe)` — opens in browser+- File paths: `[notes](~/notes/file.md)` or `[log](/var/log/app.log)` — opens in default app+- Deeplinks: `[timeline](screenpipe://timeline)` — navigates within screenpipe+Returns `{"success": true, "message": "Notification sent successfully"}`.---