Skip to content

en FAQ and Troubleshooting

Surfire edited this page Dec 6, 2026 · 2 revisions

← Back to Home · 简体中文

FAQ, Troubleshooting & CLI Reference


1. Installation, Permissions & Hotkeys

Q1: macOS says "App cannot be verified" or "damaged" on first launch

Community open-source releases are not notarized with a paid Apple Developer ID. Clear the quarantine attribute once in Terminal:

xattr -dr com.apple.quarantine /Applications/Lumen.app

If installing via Homebrew, brew install --cask --no-quarantine surfire/tap/lumen skips quarantine automatically.

Q2: How do I avoid re-granting macOS Accessibility permissions after every update?

Run the bundled local signing helper once to create and apply a persistent local signing identity (Lumen Local Code Signing):

sh scripts/setup-local-signing.sh /Applications/Lumen.app

Future in-app updates will preserve the same signing identity so macOS keeps your Accessibility and folder permissions intact.

Q3: Binding ⌘Space on macOS reports a shortcut conflict

Open System Settings → Keyboard → Keyboard Shortcuts → Spotlight and uncheck Show Spotlight search (⌘Space) (and optionally Finder search ⌥⌘Space). Then return to Lumen Settings → General → Global Hotkey and record ⌘Space. If a conflict persists, another third-party launcher or input switcher is currently holding ⌘Space.

Q4: Installer vs. Portable on Windows — where is my data stored?

  • Per-User Installer (*-win64-setup.exe): Installs without UAC to %LOCALAPPDATA%\Programs\Lumen. Index, settings, snippets, clipboard history, scripts, and models are stored in %LOCALAPPDATA%\Lumen.
  • Portable (*-win64-portable.zip): Ships with portable.flag (or lumen.portable) next to lumen-win.exe, writes zero registry entries, and stores all data in <exe_dir>\data\. (Tip: avoid running the live SQLite index inside aggressively locking cloud-sync folders.)

Q5: Hotkeys or Spacebar QuickLook inside Windows Remote Desktop (RDP)

  • If your local machine intercepts Alt+Space, change Lumen's hotkey under Settings → General to Ctrl+Space or Alt+Q.
  • Explorer Spacebar QuickLook already supports RDP VK_PACKET space events. If you run another QuickLook app, disable Lumen's hook with one switch under Settings → General.

2. Search, Indexing & Previews

Q6: Why isn't a specific file showing up—or why does its filename match but not its text?

  1. Run built-in Single-File Diagnostics: Open Settings → Status & About → Advanced Maintenance → Single-File Diagnostics (tucked inside Advanced Maintenance since v0.9.0) and pick the file. Lumen reports the exact reason (excluded by scope rule, online-only cloud placeholder, size limit, or not inside a content-indexed folder).
  2. Filename vs. Content Scope: Filenames are indexed across your home folder automatically; full-text & semantic indexing require explicitly adding document folders under Settings → Index.
  3. Source Code Toggle: Full-text code indexing (.rs, .py, .ts, .json, etc.) is off by default—enable Include Source Code under Settings → Index if needed.
  4. Hidden Folders: scope_policy_v6 covers curated IM download folders and 14 Coding Harness output directories by default; other non-sensitive hidden folders can be added manually under Settings → Index.

Q7: How much RAM and battery does Lumen use on an 8 GB / 16 GB laptop?

  • 3-Tier Low-RAM Budgets (v0.9.0): Without AI models loaded, the 8 GB tier fits 500K files into 70.1 MiB on macOS (0.36 ms p50) and 42.6 MiB on Windows x64 (0.93 ms p50), while 1.67M real files stay in ~144.7 MiB.
  • Battery-Quiet Idle (0% Steady CPU): Zero-polling power & thermal observers + targeted unreadable-directory backoff + Windows EcoQoS cut idle background CPU by ~265× on macOS (0% steady on both platforms). If macOS encounters TCC-protected directories, use the conditional 1-click Full Disk Access banner in Settings.
  • With Optional Local AI: Compact f16 vector caches scale to physical RAM (2.5% text / 1% image) and auto-unload when idle.

Q7.5: After updating, I saw Image Search indexing progress—did I lose my existing image index?

No! On restart, Lumen only checks for newly added or modified images incrementally. Since v0.9.0, Settings explicitly shows Indexed N images · +M new this pass, confirming your existing local visual vectors remain intact.

Q8: Will Lumen silently download my online-only iCloud Drive or OneDrive files?

Never. Kernel-level guards (SF_DATALESS + IOPOL_VFS_MATERIALIZE_DATALESS_FILES_OFF on macOS; Win32 recall/offline attributes and reparse tags on Windows) prevent silent hydration across indexing, search, copy, and passive preview. Files only download if you explicitly confirm previewing a placeholder (and macOS shows a cancellable progress ring).

Q9: Pressing ⌘↩ / Ctrl+↩ after tr copied the translation instead of replacing the text

In-place replacement works only when the source text was captured from an editable input field. Read-only sources (web pages, PDF viewers, etc.) are automatically marked non-replaceable—press ↩ to copy the translation. On macOS, also verify Accessibility permission is granted.


3. Local AI Models

Q10: Built-in Gemma 2 download from HuggingFace is slow or blocked

  • Switch the download mirror to HF-Mirror under Settings → AI & Models (automatically selected in Mainland China timezones).
  • On Windows, you can also use Offline Import inside Settings to load pre-downloaded embeddinggemma-2-Q8_0.gguf and mmproj-embeddinggemma-2-Q8_0.gguf (verified by exact size and SHA-256).

Q11: Does stopping oMLX or Ollama break Lumen?

No. Local index readiness is fully decoupled from external loopback servers—filename search, FTS5 content search, file watching, and built-in Gemma 2 image search keep working offline.

Q12: Why does "Local Text Embedding Server" reject remote public URLs?

To keep your private document passages strictly offline, text embedding servers are restricted to loopback addresses (127.0.0.1, [::1], localhost, plus unix:///... on macOS). By contrast, tr and qa only send explicitly submitted prompts and therefore support any valid remote HTTPS OpenAI-compatible API.


4. Power Users: lumen CLI Reference

The shared Rust core includes the lumen CLI for diagnostics, scripting, and benchmarking:

Command Description
lumen index --root <dir> Build or update the local index for a root folder
lumen watch Run the live incremental filesystem watcher
lumen query "<text>" Query filenames, content, or semantics from CLI (s:/m:/kind:, --mode semantic, --gemma)
lumen status Show index counts, watcher health, content & Gemma coverage
lumen diagnose <path> Explain why a specific file is included, excluded, or skipped
lumen content-scope / preview-content-scope Manage or dry-run content scopes and noise-subfolder hints
lumen embed --gemma --max 32 Manually backfill Gemma 2 text embeddings in batches
lumen model-status --gemma --verify / gemma-status --verify Verify local Gemma runtime, checksums, and offline bilingual recall
lumen image-scope / image-status / image-index Configure image folders, inspect coverage, and batch-index images
lumen volumes / index-volume / forget-volume List, index, or remove external and network volumes
lumen serve / semantic-serve / image-serve Start persistent NDJSON stdin/stdout search transports

5. Still Need Help?

Clone this wiki locally