{"slug": "how-i-built-lossless-in-place-ai-chat-obsidian-sync-in-chrome-mv3-zero-cloud-no", "title": "How I built lossless in-place AI chat -> Obsidian sync in Chrome MV3 (zero cloud, no <all_urls>)", "summary": "A developer released KeepThread v1.4.5, a Chrome MV3 extension that syncs AI chat transcripts from ChatGPT, Claude, Perplexity, DeepSeek, and Gemini into local Obsidian Markdown vaults using the File System Access API with no backend servers and without requesting the <all_urls> permission. The extension preserves handwritten notes, user YAML keys, and tags by wrapping transcripts in HTML comment boundaries and locating notes by conversation_id, and it splits Markdown by top-level, blockquote-nested, and list-nested code fences before normalizing math delimiters so code snippets stay untouched. It also flags partial captures of long virtualized threads as Needs Full Capture and bounds FileSystemDirectoryHandle.queryPermission() checks with a timeout to avoid Windows Chrome handle hangs.", "body_md": "If you use Obsidian as a local Markdown workspace (`raw/` -> `wiki/` or alongside `obsidian-skills`), bringing web conversations from ChatGPT, Claude, Perplexity, or DeepSeek into your vault usually hits three walls:\n\n`[[backlinks]]` (or creates `Note (1).md` duplicates).`\\( ... \\)` and `\\[ ... \\]` math delimiters mangles literal `$` or parentheses inside fenced code blocks.\nHere is how I solved all three 100% locally inside the browser in **KeepThread** (`v1.4.5` live on Chrome Web Store; also on Microsoft Edge Add-ons)—using the File System Access API with **zero backend servers** and **no `<all_urls>` permission**:\n\n`conversation_id`\nInstead of overwriting `.md` files, each synced note wraps the AI transcript inside HTML comment boundaries while keeping handwritten blocks (`<!-- keepthread:notes:start/end -->` and trailing notes) plus user-added YAML keys and `#tags` intact. Even if you rename the note inside your synced folder, KeepThread locates it by `conversation_id` and merges only the new turns.\n\nBefore normalizing ChatGPT/Claude/DeepSeek math delimiters (`\\[ \\]` -> `$$ $$`, `\\( \\)` -> `$ $`) or remapping Perplexity/Gemini footnotes into `## Sources`, the parser splits Markdown by top-level, blockquote-nested, and list-nested code fences so code snippets stay 100% untouched.\n\n*(If you just want a free, zero-install tool for fixing broken AI math delimiters & `<think>` tags in the browser, I extracted that parser into a standalone page here: [Free AI LaTeX to Obsidian Fixer](https://keepthread.jianlanzhiwei.com/tools/fix-ai-latex.html))*\n\nOn long virtualized threads, KeepThread compares turn signatures against your existing archive—flagging partial open-tab captures under **Needs Full Capture** (`v1.4.5`) instead of letting a shifted scroll window wipe earlier turns. Every `FileSystemDirectoryHandle.queryPermission()` check is also wrapped in a bounded timeout so Windows Chrome handle hangs never cause infinite spinners.\n\n`v1.4.5` Live)\nSingle-thread Markdown & offline image `.zip` exports are free forever (optional $19 one-time Lifetime Pro, no subscription). Happy to answer any questions about Chrome's File System Access API or Obsidian `.base` / YAML edge cases!", "url": "https://wpnews.pro/news/how-i-built-lossless-in-place-ai-chat-obsidian-sync-in-chrome-mv3-zero-cloud-no", "canonical_source": "https://dev.to/jackieboomboomboom/how-i-built-lossless-in-place-ai-chat-obsidian-sync-in-chrome-mv3-zero-cloud-no--b6g", "published_at": "2026-11-30 05:38:26+00:00", "updated_at": "2026-11-30 05:45:35.362759+00:00", "lang": "en", "topics": ["ai-tools", "developer-tools", "ai-products"], "entities": ["KeepThread", "Obsidian", "Chrome Web Store", "Microsoft Edge Add-ons", "ChatGPT", "Claude", "Perplexity", "DeepSeek"], "also_reported_by": [], "takeaway": "Splitting Markdown by top-level, blockquote-nested, and list-nested code fences before normalizing math delimiters keeps code snippets untouched, and wrapping synced transcripts in HTML comment boundaries with a conversation_id lets re-syncs merge only new turns without overwriting handwritten notes", "recommendation": {"advice": "Before rewriting AI chat math delimiters, split Markdown by top-level, blockquote-nested, and list-nested code fences so fenced code stays byte-identical, and key synced notes by conversation_id to merge only new turns.", "playbook": "output-verification", "playbook_url": "https://wpnews.pro/playbooks/output-verification"}, "alternates": {"html": "https://wpnews.pro/news/how-i-built-lossless-in-place-ai-chat-obsidian-sync-in-chrome-mv3-zero-cloud-no", "markdown": "https://wpnews.pro/news/how-i-built-lossless-in-place-ai-chat-obsidian-sync-in-chrome-mv3-zero-cloud-no.md", "text": "https://wpnews.pro/news/how-i-built-lossless-in-place-ai-chat-obsidian-sync-in-chrome-mv3-zero-cloud-no.txt", "jsonld": "https://wpnews.pro/news/how-i-built-lossless-in-place-ai-chat-obsidian-sync-in-chrome-mv3-zero-cloud-no.jsonld"}}