Mega Mind
Mega Mind
## Summary - Fixes the macOS red Close button leaving the app window open (#2049) - Replaces `WebviewWindow::hide()` with `AppHandle::hide()` in the macOS `CloseRequested` handler in `app/src-tauri/src/lib.rs` - `AppHandle::hide()` calls...
## Summary - Renamed `is_path_allowed` → `is_path_string_allowed` (string-only, no symlink resolution) and made the split intent explicit via a doc-comment warning. - Added `validate_path()` — async, canonicalizes via `tokio::fs::canonicalize`, checks...
## Summary - `markdown_body_preview` now validates `ceil_char_boundary` output before slicing; falls back to returning the full string rather than panicking when the boundary lands inside a multi-byte codepoint (U+200C ZWNJ,...
## Summary - Replace open-on-every-call SQLite pattern in `memory_tree` store with a process-level connection cache keyed by workspace path — schema init runs once, not ~69K times/day - Add per-path...
## Summary Fixes first-launch \`openhuman.app_state_snapshot\` taking 30–40s and causing the frontend to timeout, leaving users on the "Almost there!" fallback. - **Parallelise \`build_runtime_snapshot\`** — replaced 4 serial subsystem calls with...
## Summary - `ollama_base_url()` previously read only env vars and ignored `config.local_ai.base_url`; adds `ollama_base_url_from_config(config)` with correct priority chain (config → env → default) and updates bootstrap/health-check/infer/vision-embed callsites - Registers new...
## Summary - Switches `custom_openai` provider construction from `new()` to `new_no_responses_fallback()` — one-line change in `ops.rs` - Adds `enrich_404_message()` helper that appends a user-actionable hint ("check your endpoint URL and...
## Summary - Adds `PHASE3_INDEXES_SQL` constant with three covering indexes for the `user_profile` table: `idx_profile_state_stability`, `idx_profile_key`, `idx_profile_state_user_stability` - Applies the indexes in `init.rs` **after** `PHASE3_COLUMNS_SQL` so existing databases get them...
## Summary - Guards against stale `default_model` values (e.g. `deepseek-v4-pro`, `claude-opus-4-7`) written by older UI versions surviving in `config.toml`; these were forwarded verbatim to the backend and rejected with HTTP...
## Summary - Hardened `parse_message_path` in `src/api/rest.rs` with a sliding-window fallback so `channels/*/messages/*` is matched anywhere in the path, not only when it's exactly 4 segments - Added defense-in-depth inline...