Skip to content

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

Bump app to v2.2.21

Louis Beaumont7798529fd683
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 291c41dc1..45703bd05 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -459,7 +459,7 @@ to validate the openapi.yaml file is valid btw before pushing
## join the community
-say 👋 in our [public discord channel](https://discord.gg/dU9EBuw7Uq). we discuss how to bring this lib to production, help each other with contributions, personal projects or just hang out ☕.
+say 👋 in our [public discord channel](https://discord.gg/screenpipe). we discuss how to bring this lib to production, help each other with contributions, personal projects or just hang out ☕.
thank you for contributing to screen pipe! 🎉
diff --git a/README-ja.md b/README-ja.md
index ca4cb76f6..e48e1b34d 100644
--- a/README-ja.md
+++ b/README-ja.md
@@ -34,7 +34,7 @@
</p>
<p align="center">
- <a href="https://discord.gg/dU9EBuw7Uq">
+ <a href="https://discord.gg/screenpipe">
<img src="https://img.shields.io/discord/823813159592001537?color=5865F2&logo=discord&logoColor=white&style=flat-square" alt="discord">
</a>
<a href="https://twitter.com/screen_pipe">
@@ -80,6 +80,6 @@ screenpipeは画面と音声を24時間365日録画し、すべてをローカ
<p align="center">
<a href="https://docs.screenpi.pe">ドキュメント</a> ·
- <a href="https://discord.gg/dU9EBuw7Uq">discord</a> ·
+ <a href="https://discord.gg/screenpipe">discord</a> ·
<a href="https://twitter.com/screen_pipe">x</a>
</p>
diff --git a/README-zh_CN.md b/README-zh_CN.md
index a019fcc82..51e3c6763 100644
--- a/README-zh_CN.md
+++ b/README-zh_CN.md
@@ -34,7 +34,7 @@
</p>
<p align="center">
- <a href="https://discord.gg/dU9EBuw7Uq">
+ <a href="https://discord.gg/screenpipe">
<img src="https://img.shields.io/discord/823813159592001537?color=5865F2&logo=discord&logoColor=white&style=flat-square" alt="discord">
</a>
<a href="https://twitter.com/screen_pipe">
@@ -80,6 +80,6 @@ screenpipe 全天候录制你的屏幕和音频,所有数据存储在本地,
<p align="center">
<a href="https://docs.screenpi.pe">文档</a> ·
- <a href="https://discord.gg/dU9EBuw7Uq">discord</a> ·
+ <a href="https://discord.gg/screenpipe">discord</a> ·
<a href="https://twitter.com/screen_pipe">x</a>
</p>
diff --git a/README.md b/README.md
index c17a9e4f5..3741d3eee 100644
--- a/README.md
+++ b/README.md
@@ -34,7 +34,7 @@
</p>
<p align="center">
- <a href="https://discord.gg/dU9EBuw7Uq">
+ <a href="https://discord.gg/screenpipe">
<img src="https://img.shields.io/discord/823813159592001537?style=for-the-badge&logo=discord&logoColor=white" alt="discord">
</a>
<a href="https://twitter.com/screen_pipe">
@@ -93,7 +93,7 @@ npx screenpipe@latest record
<p align="center">
<a href="https://docs.screenpi.pe">docs</a> ·
- <a href="https://discord.gg/dU9EBuw7Uq">discord</a> ·
+ <a href="https://discord.gg/screenpipe">discord</a> ·
<a href="https://twitter.com/screen_pipe">x</a> ·
<a href="https://www.youtube.com/@screen_pipe">youtube</a> ·
<a href="https://www.reddit.com/r/screen_pipe">reddit</a>
@@ -108,7 +108,7 @@ screenpipe is an open source application (MIT license) that continuously capture
- **Website**: https://screenpi.pe
- **Documentation**: https://docs.screenpi.pe
-- **Discord**: https://discord.gg/dU9EBuw7Uq
+- **Discord**: https://discord.gg/screenpipe
- **License**: MIT
## Who screenpipe is for
diff --git a/apps/screenpipe-app-tauri/components/__tests__/url-detection-benchmark-data.json b/apps/screenpipe-app-tauri/components/__tests__/url-detection-benchmark-data.json
index 61a58b148..7b9be5b78 100644
--- a/apps/screenpipe-app-tauri/components/__tests__/url-detection-benchmark-data.json
+++ b/apps/screenpipe-app-tauri/components/__tests__/url-detection-benchmark-data.json
@@ -136741,7 +136741,7 @@
"frame_id": 13258,
"browser_url": "https://mail.google.com/mail/u/3/#inbox/FMfcgzQfBZlSLWGBMzdVcbKwGHNQtNfp",
"app_name": "Arc",
- "text": "https://discord.gg/dU9EBuw7Uq, contact us at [email protected], or",
+ "text": "https://discord.gg/screenpipe, contact us at [email protected], or",
"confidence": 1,
"bounds": {
"left": 0.45349,
@@ -136750,7 +136750,7 @@
"height": 0.02336
},
"ground_truth_urls": [
- "https://discord.gg/dU9EBuw7Uq"
+ "https://discord.gg/screenpipe"
]
},
{
diff --git a/apps/screenpipe-app-tauri/components/rewind/current-frame-timeline.tsx b/apps/screenpipe-app-tauri/components/rewind/current-frame-timeline.tsx
index 4a22b782a..7291b3f18 100644
--- a/apps/screenpipe-app-tauri/components/rewind/current-frame-timeline.tsx
+++ b/apps/screenpipe-app-tauri/components/rewind/current-frame-timeline.tsx
@@ -723,10 +723,14 @@ export const CurrentFrameTimeline: FC<CurrentFrameTimelineProps> = ({
return () => { cancelled = true; };
}, [isMac]);
- // Analyze frame when frameId changes (native Live Text)
+ // Analyze frame when frameId changes OR when renderedImageInfo first becomes available.
// Position is handled separately by the update_position effect below.
+ // We track whether we have image info via a boolean to avoid object-reference churn.
const renderedInfoRef = useRef(renderedImageInfo);
renderedInfoRef.current = renderedImageInfo;
+ const hasRenderedInfo = !!renderedImageInfo;
+
+ const analyzeFailCountRef = useRef(0);
useEffect(() => {
if (!nativeLiveTextActive) return;
@@ -737,24 +741,46 @@ export const CurrentFrameTimeline: FC<CurrentFrameTimelineProps> = ({
const info = renderedInfoRef.current;
if (!info) return;
+ // For snapshot frames, use the local file path directly (instant).
+ // For video-chunk frames, fall back to HTTP endpoint (requires ffmpeg extraction).
+ const imagePath = isSnapshotFrame && debouncedFrame.filePath
+ ? debouncedFrame.filePath
+ : `http://localhost:3030/frames/${debouncedFrame.frameId}`;
+
// Debounce: wait 300ms after last frame change before analyzing.
// This prevents hammering VisionKit during fast scroll.
let cancelled = false;
const timer = setTimeout(() => {
if (cancelled) return;
- const frameUrl = `http://localhost:3030/frames/${debouncedFrame.frameId}`;
invoke("livetext_analyze", {
- imagePath: frameUrl,
+ imagePath,
x: info.offsetX,
y: info.offsetY,
w: info.width,
h: info.height,
+ }).then(() => {
+ analyzeFailCountRef.current = 0;
}).catch((e: unknown) => {
- if (!cancelled) console.warn("live text analyze failed:", e);
+ if (cancelled) return;
+ const msg = String(e);
+ // If VisionKit XPC fails (e.g. ad-hoc signed binary), disable native mode
+ if (msg.includes("helper application") || msg.includes("XPC")) {
+ console.warn("[livetext] VisionKit unavailable (code signing?), falling back to web mode");
+ setNativeLiveTextActive(false);
+ return;
+ }
+ // After 3 consecutive failures, fall back to web mode
+ analyzeFailCountRef.current++;
+ if (analyzeFailCountRef.current >= 3) {
+ console.warn("[livetext] too many failures, falling back to web mode");
+ setNativeLiveTextActive(false);
+ return;
+ }
+ console.warn("live text analyze failed:", e);
});
}, 300);
return () => { cancelled = true; clearTimeout(timer); };
- }, [nativeLiveTextActive, debouncedFrame?.frameId]);
+ }, [nativeLiveTextActive, debouncedFrame?.frameId, isSnapshotFrame, hasRenderedInfo]);
// Update overlay position on resize (native Live Text)
useEffect(() => {
@@ -785,9 +811,11 @@ export const CurrentFrameTimeline: FC<CurrentFrameTimelineProps> = ({
} else if (debouncedFrame?.frameId && renderedInfoRef.current) {
// Re-analyze to show overlay again
const info = renderedInfoRef.current;
- const frameUrl = `http://localhost:3030/frames/${debouncedFrame.frameId}`;
+ const imagePath = isSnapshotFrame && debouncedFrame.filePath
+ ? debouncedFrame.filePath
+ : `http://localhost:3030/frames/${debouncedFrame.frameId}`;
invoke("livetext_analyze", {
- imagePath: frameUrl,
+ imagePath,
x: info.offsetX,
y: info.offsetY,
w: info.width,
diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock b/apps/screenpipe-app-tauri/src-tauri/Cargo.lock
index 5c7223ba8..385effd06 100644
--- a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock
+++ b/apps/screenpipe-app-tauri/src-tauri/Cargo.lock
@@ -8223,7 +8223,7 @@ dependencies = [
[[package]]
name = "screenpipe-app"
-version = "2.2.19"
+version = "2.2.21"
dependencies = [
"anyhow",
"arboard",
diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml b/apps/screenpipe-app-tauri/src-tauri/Cargo.toml
index 001ab20f4..07084dec6 100644
--- a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml
+++ b/apps/screenpipe-app-tauri/src-tauri/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "screenpipe-app"
-version = "2.2.20"
+version = "2.2.21"
description = "24/7 memory for your desktop. 100% local."
authors = ["you"]
license = ""
diff --git a/apps/screenpipe-app-tauri/src-tauri/swift/livetext_bridge.swift b/apps/screenpipe-app-tauri/src-tauri/swift/livetext_bridge.swift
index 1a6735285..39a7289a1 100644
--- a/apps/screenpipe-app-tauri/src-tauri/swift/livetext_bridge.swift
+++ b/apps/screenpipe-app-tauri/src-tauri/swift/livetext_bridge.swift
@@ -154,15 +154,41 @@ public func ltAnalyzeImage(
// Load image from path or URL
var nsImage: NSImage?
+ var loadError: String?
if pathStr.hasPrefix("http://") || pathStr.hasPrefix("https://") {
- if let url = URL(string: pathStr), let data = try? Data(contentsOf: url) {
- nsImage = NSImage(data: data)
+ if let url = URL(string: pathStr) {
+ // Use URLSession with a short timeout for localhost frames
+ let sem = DispatchSemaphore(value: 0)
+ var fetchedData: Data?
+ var fetchError: Error?
+ let config = URLSessionConfiguration.ephemeral
+ config.timeoutIntervalForRequest = 30
+ let session = URLSession(configuration: config)
+ session.dataTask(with: url) { data, response, error in
+ fetchedData = data
+ fetchError = error
+ sem.signal()
+ }.resume()
+ sem.wait()
+ session.invalidateAndCancel()
+
+ if let err = fetchError {
+ loadError = "fetch error: \(err.localizedDescription)"
+ } else if let data = fetchedData, !data.isEmpty {
+ nsImage = NSImage(data: data)
+ if nsImage == nil { loadError = "NSImage init failed (\(data.count) bytes)" }
+ } else {
+ loadError = "empty response"
+ }
+ } else {
+ loadError = "invalid URL"
}
} else {
nsImage = NSImage(contentsOfFile: pathStr)
+ if nsImage == nil { loadError = "file not found" }
}
guard let image = nsImage, image.cgImage(forProposedRect: nil, context: nil, hints: nil) != nil else {
- outError.pointee = makeCString("failed to load image: \(pathStr)")
+ outError.pointee = makeCString("failed to load image: \(pathStr) (\(loadError ?? "unknown"))")
return -4
}
diff --git a/docs/mintlify/docs-mintlify-mig-tmp/ai-memory.mdx b/docs/mintlify/docs-mintlify-mig-tmp/ai-memory.mdx
index 75290b320..f545e073c 100644
--- a/docs/mintlify/docs-mintlify-mig-tmp/ai-memory.mdx
+++ b/docs/mintlify/docs-mintlify-mig-tmp/ai-memory.mdx
@@ -72,7 +72,7 @@ curl "http://localhost:3030/search?q=meeting+notes&app_name=Slack&limit=10"
- [set up MCP server](/mcp-server) — connect to Claude, Cursor
- [set up pipes](/pipes) — scheduled AI agents
- [API reference](/cli-reference) — search parameters and API endpoints
-- [join our discord](https://discord.gg/dU9EBuw7Uq) — get help from the community
+- [join our discord](https://discord.gg/screenpipe) — get help from the community
## get screenpipe
diff --git a/docs/mintlify/docs-mintlify-mig-tmp/apple-intelligence.mdx b/docs/mintlify/docs-mintlify-mig-tmp/apple-intelligence.mdx
index 1c880c78d..3357c27db 100644
--- a/docs/mintlify/docs-mintlify-mig-tmp/apple-intelligence.mdx
+++ b/docs/mintlify/docs-mintlify-mig-tmp/apple-intelligence.mdx
@@ -72,4 +72,4 @@ if Apple Intelligence shows as "not available", check that it's enabled in **Sys
| API access | ✅ full REST API | ❌ |
| cross-platform | ✅ macOS, Windows, Linux | ❌ Apple only |
-questions? [join our discord](https://discord.gg/dU9EBuw7Uq).
+questions? [join our discord](https://discord.gg/screenpipe).
diff --git a/docs/mintlify/docs-mintlify-mig-tmp/chatgpt.mdx b/docs/mintlify/docs-mintlify-mig-tmp/chatgpt.mdx
index 19daac7c3..4fcda2a67 100644
--- a/docs/mintlify/docs-mintlify-mig-tmp/chatgpt.mdx
+++ b/docs/mintlify/docs-mintlify-mig-tmp/chatgpt.mdx
@@ -88,4 +88,4 @@ this removes the stored tokens from your machine. your data stays local.
**pipes failing with auth errors?**
- tokens refresh automatically, but if it persists, sign out and back in
-still stuck? [ask in our discord](https://discord.gg/dU9EBuw7Uq).
+still stuck? [ask in our discord](https://discord.gg/screenpipe).
diff --git a/docs/mintlify/docs-mintlify-mig-tmp/claude-code.mdx b/docs/mintlify/docs-mintlify-mig-tmp/claude-code.mdx
index 913ef405d..dac564e42 100644
--- a/docs/mintlify/docs-mintlify-mig-tmp/claude-code.mdx
+++ b/docs/mintlify/docs-mintlify-mig-tmp/claude-code.mdx
@@ -141,4 +141,4 @@ ask Claude Code to use screenpipe naturally:
- macos: check System Settings > Privacy & Security > Screen Recording
- ensure screenpipe app is listed and enabled
-still stuck? [ask in our discord](https://discord.gg/dU9EBuw7Uq).
+still stuck? [ask in our discord](https://discord.gg/screenpipe).
diff --git a/docs/mintlify/docs-mintlify-mig-tmp/cli-reference.mdx b/docs/mintlify/docs-mintlify-mig-tmp/cli-reference.mdx
index e8f1af31a..d41bdad3f 100644
--- a/docs/mintlify/docs-mintlify-mig-tmp/cli-reference.mdx
+++ b/docs/mintlify/docs-mintlify-mig-tmp/cli-reference.mdx
@@ -51,4 +51,4 @@ curl "http://localhost:3030/search?q=meeting&limit=10&content_type=vision"
| `min_length` | int | minimum text length |
| `max_length` | int | maximum text length |
-need help? [join our discord](https://discord.gg/dU9EBuw7Uq).
+need help? [join our discord](https://discord.gg/screenpipe).
diff --git a/docs/mintlify/docs-mintlify-mig-tmp/cline.mdx b/docs/mintlify/docs-mintlify-mig-tmp/cline.mdx
index b8903f30c..0f310d03d 100644
--- a/docs/mintlify/docs-mintlify-mig-tmp/cline.mdx
+++ b/docs/mintlify/docs-mintlify-mig-tmp/cline.mdx
@@ -66,4 +66,4 @@ screenpipe provides:
- VS Code with Cline extension
- Node.js >= 18.0.0
-need help? [join our discord](https://discord.gg/dU9EBuw7Uq).
+need help? [join our discord](https://discord.gg/screenpipe).
diff --git a/docs/mintlify/docs-mintlify-mig-tmp/cloud-archive.mdx b/docs/mintlify/docs-mintlify-mig-tmp/cloud-archive.mdx
index a1df84d36..21cf654da 100644
--- a/docs/mintlify/docs-mintlify-mig-tmp/cloud-archive.mdx
+++ b/docs/mintlify/docs-mintlify-mig-tmp/cloud-archive.mdx
@@ -89,4 +89,4 @@ archived data is currently upload-only. download/restore is not yet available
cloud archive requires a screenpipe pro subscription. the archive process runs automatically in the background every 5 minutes when enabled.
</Info>
-questions? [join our discord](https://discord.gg/dU9EBuw7Uq).
+questions? [join our discord](https://discord.gg/screenpipe).
diff --git a/docs/mintlify/docs-mintlify-mig-tmp/cloud-sync.mdx b/docs/mintlify/docs-mintlify-mig-tmp/cloud-sync.mdx
index 23c9c1720..2132d23dc 100644
--- a/docs/mintlify/docs-mintlify-mig-tmp/cloud-sync.mdx
+++ b/docs/mintlify/docs-mintlify-mig-tmp/cloud-sync.mdx
@@ -79,4 +79,4 @@ if you forget your encryption password, your cloud data cannot be recovered. we
cloud sync requires a screenpipe pro subscription. sync happens automatically in the background and uses approximately 0.8 gb per monitor per day.
</Info>
-questions? [join our discord](https://discord.gg/dU9EBuw7Uq).
+questions? [join our discord](https://discord.gg/screenpipe).
diff --git a/docs/mintlify/docs-mintlify-mig-tmp/continue.mdx b/docs/mintlify/docs-mintlify-mig-tmp/continue.mdx
index d4a3ad237..9ab828c97 100644
--- a/docs/mintlify/docs-mintlify-mig-tmp/continue.mdx
+++ b/docs/mintlify/docs-mintlify-mig-tmp/continue.mdx
@@ -98,4 +98,4 @@ via MCP, Continue gets access to:
- Continue extension in VS Code or JetBrains
- Node.js >= 18.0.0
-need help? [join our discord](https://discord.gg/dU9EBuw7Uq).
+need help? [join our discord](https://discord.gg/screenpipe).
diff --git a/docs/mintlify/docs-mintlify-mig-tmp/contributing.mdx b/docs/mintlify/docs-mintlify-mig-tmp/contributing.mdx
index 485e4b584..ed7689cbd 100644
--- a/docs/mintlify/docs-mintlify-mig-tmp/contributing.mdx
+++ b/docs/mintlify/docs-mintlify-mig-tmp/contributing.mdx
@@ -11,5 +11,5 @@ for detailed contribution guidelines, build instructions, and development setup,
- [report a bug](https://github.com/screenpipe/screenpipe/issues/new?labels=bug)
- [request a feature](https://github.com/screenpipe/screenpipe/issues/new?labels=enhancement)
-- [join our discord](https://discord.gg/dU9EBuw7Uq)
+- [join our discord](https://discord.gg/screenpipe)
- [schedule a call](https://cal.com/team/screenpipe/chat)
diff --git a/docs/mintlify/docs-mintlify-mig-tmp/docs.json b/docs/mintlify/docs-mintlify-mig-tmp/docs.json
index 63d45fed9..22d4e77a0 100644
--- a/docs/mintlify/docs-mintlify-mig-tmp/docs.json
+++ b/docs/mintlify/docs-mintlify-mig-tmp/docs.json
@@ -74,7 +74,7 @@
},
{
"label": "discord",
- "href": "https://discord.gg/dU9EBuw7Uq"
+ "href": "https://discord.gg/screenpipe"
},
{
"label": "github",
@@ -91,7 +91,7 @@
"socials": {
"github": "https://github.com/screenpipe/screenpipe",
"x": "https://x.com/screen_pipe",
- "discord": "https://discord.gg/dU9EBuw7Uq"
+ "discord": "https://discord.gg/screenpipe"
}
},
"search": {
diff --git a/docs/mintlify/docs-mintlify-mig-tmp/faq.mdx b/docs/mintlify/docs-mintlify-mig-tmp/faq.mdx
index e48343c4a..b8be96cda 100644
--- a/docs/mintlify/docs-mintlify-mig-tmp/faq.mdx
+++ b/docs/mintlify/docs-mintlify-mig-tmp/faq.mdx
@@ -31,7 +31,7 @@ icon: "question"
<Expandable title="how do i contribute?">
- check [github issues](https://github.com/screenpipe/screenpipe/issues)
- - join [discord](https://discord.gg/dU9EBuw7Uq)
+ - join [discord](https://discord.gg/screenpipe)
- follow [contribution guidelines](https://github.com/screenpipe/screenpipe/blob/main/CONTRIBUTING.md)
</Expandable>
diff --git a/docs/mintlify/docs-mintlify-mig-tmp/gemini-cli.mdx b/docs/mintlify/docs-mintlify-mig-tmp/gemini-cli.mdx
index d48ce1f3b..dc2e129f8 100644
--- a/docs/mintlify/docs-mintlify-mig-tmp/gemini-cli.mdx
+++ b/docs/mintlify/docs-mintlify-mig-tmp/gemini-cli.mdx
@@ -76,4 +76,4 @@ screenpipe provides these MCP tools to Gemini:
- Gemini CLI installed
- Node.js >= 18.0.0
-need help? [join our discord](https://discord.gg/dU9EBuw7Uq).
+need help? [join our discord](https://discord.gg/screenpipe).
diff --git a/docs/mintlify/docs-mintlify-mig-tmp/getting-started.mdx b/docs/mintlify/docs-mintlify-mig-tmp/getting-started.mdx
index 859278dea..ba60db8d9 100644
--- a/docs/mintlify/docs-mintlify-mig-tmp/getting-started.mdx
+++ b/docs/mintlify/docs-mintlify-mig-tmp/getting-started.mdx
@@ -45,7 +45,7 @@ screenpipe works with any AI that supports MCP or HTTP APIs:
- [search your screen history](/search-screen-history) — find anything you've seen
- [set up pipes](/pipes) — scheduled AI agents on your data
- [API reference](/cli-reference) — REST API endpoints and parameters
-- [join our discord](https://discord.gg/dU9EBuw7Uq) — get help from the community
+- [join our discord](https://discord.gg/screenpipe) — get help from the community
## get the desktop app
diff --git a/docs/mintlify/docs-mintlify-mig-tmp/home.mdx b/docs/mintlify/docs-mintlify-mig-tmp/home.mdx
index 44279d15d..ade15b17a 100644
--- a/docs/mintlify/docs-mintlify-mig-tmp/home.mdx
+++ b/docs/mintlify/docs-mintlify-mig-tmp/home.mdx
@@ -38,4 +38,4 @@ screenpipe records your screen continuously and makes everything searchable. it
## community
-need help? have ideas? [join our discord](https://discord.gg/dU9EBuw7Uq) — 10k+ members building with screenpipe.
+need help? have ideas? [join our discord](https://discord.gg/screenpipe) — 10k+ members building with screenpipe.
diff --git a/docs/mintlify/docs-mintlify-mig-tmp/mcp-apps.mdx b/docs/mintlify/docs-mintlify-mig-tmp/mcp-apps.mdx
index 6d3b0c272..55bb22397 100644
--- a/docs/mintlify/docs-mintlify-mig-tmp/mcp-apps.mdx
+++ b/docs/mintlify/docs-mintlify-mig-tmp/mcp-apps.mdx
@@ -307,4 +307,4 @@ MCP Apps run in sandboxed iframes with:
- [ext-apps SDK](https://github.com/modelcontextprotocol/ext-apps)
- [screenpipe MCP source](https://github.com/screenpipe/screenpipe/tree/main/crates/screenpipe-integrations/screenpipe-mcp)
-need help? [join our discord](https://discord.gg/dU9EBuw7Uq).
+need help? [join our discord](https://discord.gg/screenpipe).
diff --git a/docs/mintlify/docs-mintlify-mig-tmp/mcp-server.mdx b/docs/mintlify/docs-mintlify-mig-tmp/mcp-server.mdx
index 36dce11a2..b26ec3a7c 100644
--- a/docs/mintlify/docs-mintlify-mig-tmp/mcp-server.mdx
+++ b/docs/mintlify/docs-mintlify-mig-tmp/mcp-server.mdx
@@ -164,4 +164,4 @@ then point your editor to `node /path/to/screenpipe-mcp/dist/index.js`.
**macos automation not working?**
- grant accessibility permissions in System Settings > Privacy & Security > Accessibility
-still stuck? [ask in our discord](https://discord.gg/dU9EBuw7Uq) — the community can help debug MCP issues.
+still stuck? [ask in our discord](https://discord.gg/screenpipe) — the community can help debug MCP issues.
diff --git a/docs/mintlify/docs-mintlify-mig-tmp/meeting-transcription.mdx b/docs/mintlify/docs-mintlify-mig-tmp/meeting-transcription.mdx
index e53447498..c1ae82668 100644
--- a/docs/mintlify/docs-mintlify-mig-tmp/meeting-transcription.mdx
+++ b/docs/mintlify/docs-mintlify-mig-tmp/meeting-transcription.mdx
@@ -67,4 +67,4 @@ curl "http://localhost:3030/speakers/similar?speaker_id=1"
- no audio sent to cloud unless you choose deepgram
- disable audio recording in app settings
-questions? [join our discord](https://discord.gg/dU9EBuw7Uq).
+questions? [join our discord](https://discord.gg/screenpipe).
diff --git a/docs/mintlify/docs-mintlify-mig-tmp/obsidian.mdx b/docs/mintlify/docs-mintlify-mig-tmp/obsidian.mdx
index 73c455fae..2a8a60c42 100644
--- a/docs/mintlify/docs-mintlify-mig-tmp/obsidian.mdx
+++ b/docs/mintlify/docs-mintlify-mig-tmp/obsidian.mdx
@@ -56,4 +56,4 @@ curl "http://localhost:3030/search?content_type=audio&limit=20"
- Obsidian with Copilot plugin (for MCP integration)
- Node.js >= 18.0.0
-need help? [join our discord](https://discord.gg/dU9EBuw7Uq).
+need help? [join our discord](https://discord.gg/screenpipe).
diff --git a/docs/mintlify/docs-mintlify-mig-tmp/ollama.mdx b/docs/mintlify/docs-mintlify-mig-tmp/ollama.mdx
index 053980543..3fe80188d 100644
--- a/docs/mintlify/docs-mintlify-mig-tmp/ollama.mdx
+++ b/docs/mintlify/docs-mintlify-mig-tmp/ollama.mdx
@@ -64,4 +64,4 @@ ollama pull <model-name>
- close other GPU-heavy apps
- ensure you have enough free RAM (model size + ~2 GB overhead)
-need help? [join our discord](https://discord.gg/dU9EBuw7Uq) — get recommendations on models and configs from the community.
+need help? [join our discord](https://discord.gg/screenpipe) — get recommendations on models and configs from the community.
diff --git a/docs/mintlify/docs-mintlify-mig-tmp/opencode.mdx b/docs/mintlify/docs-mintlify-mig-tmp/opencode.mdx
index 71388e7e8..f6a6e0a2c 100644
--- a/docs/mintlify/docs-mintlify-mig-tmp/opencode.mdx
+++ b/docs/mintlify/docs-mintlify-mig-tmp/opencode.mdx
@@ -154,4 +154,4 @@ you can customize these skills or create your own following the same format.
- mention the skill explicitly: `@screenpipe-query find...`
- check skill description matches your query intent
-still stuck? [ask in our discord](https://discord.gg/dU9EBuw7Uq).
+still stuck? [ask in our discord](https://discord.gg/screenpipe).
diff --git a/docs/mintlify/docs-mintlify-mig-tmp/pipes.mdx b/docs/mintlify/docs-mintlify-mig-tmp/pipes.mdx
index 55d3a4408..5d2697eed 100644
--- a/docs/mintlify/docs-mintlify-mig-tmp/pipes.mdx
+++ b/docs/mintlify/docs-mintlify-mig-tmp/pipes.mdx
@@ -373,7 +373,7 @@ screenpipe ships with three template pipes (disabled by default):
- **reminders** — scan activity for todos and create apple reminders (macOS)
- **idea-tracker** — surface startup ideas from your browsing + market trends
-need help building pipes? [join our discord](https://discord.gg/dU9EBuw7Uq) — share your pipes, get feedback, and see what others are building.
+need help building pipes? [join our discord](https://discord.gg/screenpipe) — share your pipes, get feedback, and see what others are building.
## get screenpipe
diff --git a/docs/mintlify/docs-mintlify-mig-tmp/search-screen-history.mdx b/docs/mintlify/docs-mintlify-mig-tmp/search-screen-history.mdx
index 5fc0d3bec..c013a3796 100644
--- a/docs/mintlify/docs-mintlify-mig-tmp/search-screen-history.mdx
+++ b/docs/mintlify/docs-mintlify-mig-tmp/search-screen-history.mdx
@@ -83,7 +83,7 @@ the easiest way to search is the built-in search in the screenpipe desktop app:
- no data leaves your machine
- control what's recorded with `--ignored-windows` and `--included-windows`
-questions? [join our discord](https://discord.gg/dU9EBuw7Uq).
+questions? [join our discord](https://discord.gg/screenpipe).
## get screenpipe
diff --git a/docs/mintlify/docs-mintlify-mig-tmp/teams.mdx b/docs/mintlify/docs-mintlify-mig-tmp/teams.mdx
index 047720d6c..43932ec09 100644
--- a/docs/mintlify/docs-mintlify-mig-tmp/teams.mdx
+++ b/docs/mintlify/docs-mintlify-mig-tmp/teams.mdx
@@ -143,4 +143,4 @@ all team-sourced filters are removed from your local settings. your personal fil
**is the encryption key rotated?**
not currently. if you suspect the key is compromised, delete the team and create a new one with a fresh key.
-questions? [join our discord](https://discord.gg/dU9EBuw7Uq).
+questions? [join our discord](https://discord.gg/screenpipe).
diff --git a/packages/ai-gateway/src/providers/gemini.ts b/packages/ai-gateway/src/providers/gemini.ts
index a1164cbff..fd43ea4d7 100644
--- a/packages/ai-gateway/src/providers/gemini.ts
+++ b/packages/ai-gateway/src/providers/gemini.ts
@@ -428,7 +428,11 @@ export class GeminiProvider implements AIProvider {
// Don't emit the tool call - we'll handle it ourselves
} else {
// For other tools, emit the tool call for client to handle
- const toolCallId = `call_${Date.now()}_${toolCallIndex}`;
+ // Encode thoughtSignature into the ID so it survives OpenAI format round-trip
+ const sig = part.thoughtSignature || '';
+ const toolCallId = sig
+ ? `call_${toolCallIndex}_ts_${btoa(sig)}`
+ : `call_${Date.now()}_${toolCallIndex}`;
controller.enqueue(
new TextEncoder().encode(
`data: ${JSON.stringify({
@@ -515,9 +519,6 @@ export class GeminiProvider implements AIProvider {
contents,
generationConfig: {
temperature: body.temperature ?? 0.7,
- // Disable thinking to avoid thought_signature requirements on tool calls
- // (OpenAI format can't round-trip thought signatures)
- thinkingConfig: { thinkingBudget: 0 },
},
};
@@ -809,16 +810,25 @@ export class GeminiProvider implements AIProvider {
}
// Handle assistant messages with tool calls - convert to Gemini functionCall format
+ // Restore thoughtSignature from encoded tool call IDs for Gemini 3+ models
if (msg.role === 'assistant' && (msg as any).tool_calls) {
for (const toolCall of (msg as any).tool_calls) {
- parts.push({
+ const callPart: any = {
functionCall: {
name: toolCall.function?.name || toolCall.name,
args: typeof toolCall.function?.arguments === 'string'
? JSON.parse(toolCall.function.arguments)
: toolCall.function?.arguments || {},
},
- });
+ };
+ // Extract thoughtSignature from encoded tool call ID
+ const tsMatch = (toolCall.id || '').match(/_ts_(.+)$/);
+ if (tsMatch) {
+ try {
+ callPart.thoughtSignature = atob(tsMatch[1]);
+ } catch {}
+ }
+ parts.push(callPart);
}
}
@@ -857,9 +867,14 @@ export class GeminiProvider implements AIProvider {
content += part.text;
}
// Handle Gemini function calls - convert to OpenAI format
+ // Encode thoughtSignature into ID for round-trip preservation
if (part.functionCall) {
+ const sig = part.thoughtSignature || '';
+ const callId = sig
+ ? `call_${toolCalls.length}_ts_${btoa(sig)}`
+ : `call_${Date.now()}_${toolCalls.length}`;
toolCalls.push({
- id: `call_${Date.now()}_${toolCalls.length}`,
+ id: callId,
type: 'function',
function: {
name: part.functionCall.name,
diff --git a/packages/screenpipe-js/cli/src/commands/pipe/register.ts b/packages/screenpipe-js/cli/src/commands/pipe/register.ts
index 2411e395a..4bc1a37b4 100644
--- a/packages/screenpipe-js/cli/src/commands/pipe/register.ts
+++ b/packages/screenpipe-js/cli/src/commands/pipe/register.ts
@@ -101,7 +101,7 @@ export const registerCommand = new Command()
"louis030195"
)} on Discord.
Join the Discord server: ${colors.highlight(
- "https://discord.gg/dU9EBuw7Uq"
+ "https://discord.gg/screenpipe"
)}
This step is required to complete the publishing process.`,
"Contact Required"