Repository navigation
Description
Bug description
Omi Desktop's local screenshot OCR is currently producing heavily corrupted text for otherwise readable macOS screenshots. This also appears to break local Rewind/search recall: exact user-visible phrases do not match because the OCR text is mangled before indexing.
Environment observed
- App/API: local Omi Desktop API on macOS (
http://127.0.0.1:47778) - CLI:
omi-cli 0.3.0 - Local status at time of repro:
screen_history_available: true- ~690 indexed screenshots
- screenshot retrieval works via
omi --json local screenshot <id> --output ...
Reproduction commands
omi --json local status
omi --json local tools
omi --json local sql "SELECT COUNT(*) AS total, SUM(CASE WHEN ocrText IS NOT NULL AND length(trim(ocrText))>0 THEN 1 ELSE 0 END) AS with_ocr, ROUND(AVG(length(ocrText)),1) AS avg_chars FROM screenshots"
omi --json local screenshot 659 --output /tmp/omi-659.jpg
omi --json local search-screen "Can you update omi CLI" --days 1Observed SQL summary:
{
"total": "694",
"with_ocr": "131",
"avg_chars": "2127.8"
}Evidence / examples
Example 1: Hermes screenshot
The visible text in the screenshot is clearly readable and includes:
Can you update omi CLI? Check if you can still use it to look at omi screenshots and OCR. Then spot check OCR quality for me
Stored OCR preview for the same screenshot:
Can you update ¢%miCLP. Check rf w)u can uS* it M Wat scréénsh0ts3nd IXR. Thèn spot check OCR ¢Wityfor mè v
New ses$ion
C*) you update CLP. Cts¢k rf you can Siill use it to at screenshotsaThJ OCR. Then spot ¢Wk CCR
ality for me
Major errors:
omi CLI->¢%miCLP/CLPyou->w)ustill use it to look at->uS* it M Watscreenshots and OCR->scréénsh0ts3nd IXROCR quality->CCR ality/¢Wity
Search impact: querying the visible phrase did not find the screenshot:
omi --json local search-screen "Can you update omi CLI" --days 1Result:
{
"results": [],
"reason": "No matching screen-history results for \"Can you update omi CLI\" in the last 1 day(s). Local history exists (... screenshot(s), ... indexed)"
}A query for the corrupted token miCLP did hit the SQL fallback and found the screenshot IDs, suggesting the underlying stored OCR text is the blocker.
Example 2: Telegram screenshot
Visible UI/text includes readable strings like:
PXMX Dev 5 - Omi Stability
Cronjob Response: Self-Improvement Loop
Yes, it makes sense. I set it up.
Do we have a regression test for the "tasksStore.loadTasks" feedback...
Stored OCR sample:
PXMX S-Oml siabMy-1379381
PXMX Dw5. OmSStalxllty
CfDnlob Re5powe: Self.lrnprwnem Loop12hl
Ves. It make5 5erEe. I set l¢ up.
Major errors:
Omi Stability->S-Oml siabMy/OmSStalxlltyCronjob Response->CfDnlob Re5poweSelf-Improvement Loop->Self.lrnprwnem Loop12hlYes, it makes sense->Ves. It make5 5erEe
Example 3: Cursor / code screenshot
Visible text includes readable development prose and terminal output such as:
backend (dev-down/dev-up, which preserves emulator data via export/import) so 8000 now runs the new code.
To test in the app
Open Memories in Omi Dev. New memories created from now on will be tiered...
Stored OCR sample:
bDckeTrJ Idev•(kw. pre5erves ewl•tor dLta vla expirtlAwrtl $0 8000 rw runs tr r• C4ide.
Illlw)rle5 kn ¢knI DEv. wmrle5 cn*ted f rn• on ¥tll be ttsred 1"5hort-tert &th the clock Icon.
Major errors:
backend->bDckeTrJdev-up/dev-downcorrupted into punctuation-heavy textemulator data via export/import->ewl•tor dLta vla expirtlAwrtlOmi Dev->¢knI DEvmemories created from now on will be tieredmostly unreadable
Expected behavior
OCR for normal desktop screenshots should preserve enough text fidelity for:
- Human-readable OCR previews.
- Exact-ish search over visible words/phrases.
- Reliable semantic search embeddings over screen history.
Actual behavior
OCR is often character-substitution heavy (o/0, m/rn, i/l, $/s, random ¢, ¥, accents, punctuation), so readable UI/code/chat text becomes noisy enough that search misses obvious visible phrases.
Notes
The screenshot image retrieval path itself appears to work. The issue seems localized to OCR extraction quality and/or preprocessing before OCR/indexing, not to screenshot capture or local API access.
Activity
[codex] Improve Rewind OCR quality (#8134)