Commit Graph
386 Commits
Author SHA1 Message Date
Mega MindandGitHub 1f9a23d91b fix(cef): auto-disable prewarm webview on Wayland/XWayland to prevent X_ConfigureWindow BadWindow crash (#2490) 2026-05-22 15:46:45 -07:00
f1eae121a6 channels: wechat message scraping into context and memory (follow-up to #1991) (#1990) (#2264)
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-22 12:53:47 -07:00
JesseandGitHub ed3e453b8b fix(tauri): forward Windows local-runtime OAuth callbacks (#2469) 2026-05-22 19:17:43 +05:30
Andrew BarnesandGitHub f9d94817dd fix: explain reset-data Windows file locks (#2395) 2026-05-22 17:01:15 +05:30
oxoxDevandGitHub b08aa3ea8d fix(tauri): retry main-window lookup on Windows after SW_SHOW (#3A) (#2341) 2026-05-22 15:59:05 +05:30
github-actions[bot] 0ad723595e chore(staging): v0.54.7 2026-05-22 08:55:46 +00:00
github-actions[bot] 7fe3dd06ba chore(staging): v0.54.6 2026-05-21 20:17:36 +00:00
github-actions[bot] f02543b80a chore(staging): v0.54.5 2026-05-21 18:41:18 +00:00
Srinivas VaddiandGitHub 0257a6cf79 Add approval audit history read path (#2335) 2026-05-21 23:52:52 +05:30
Mega MindandGitHub beba562df2 fix(windows): make pnpm dev:app:win work behind TLS-inspecting proxies (#2449) 2026-05-21 23:29:01 +05:30
oxoxDevandGitHub dcec5858e0 fix(tauri): pre-flight every xdg-utils binary before register_all (#5V) (#2416) 2026-05-21 22:57:44 +05:30
369a39288c test(e2e): wipe memory tree during test reset
## Summary

- Extends `openhuman.test_reset` so E2E resets also wipe Memory Tree state via the existing `memory_tree_wipe_all` path.
- Adds reset summary fields for memory-tree rows, content directories, and Composio sync-state rows so Appium logs show exactly what was cleared.
- Adds a focused async unit test covering memory-tree content directory cleanup through the new reset helper.

## Problem

- #1862 tracks that `openhuman.test_reset` only cleared auth/onboarding/cron state, while Memory Tree data could survive between specs in a shared Appium session.
- That means memory-oriented specs can pass or fail based on chunks, wiki content, or sync cursors left by an earlier spec.

## Solution

- Calls `read_rpc::wipe_all_rpc(&config)` from `test_support::rpc::reset` after cron cleanup and before config/auth clearing.
- Surfaces `memory_tree_rows_deleted`, `memory_tree_dirs_removed`, and `memory_tree_sync_state_cleared` in `ResetSummary`, `reset_json`, and the controller schema.
- Keeps this as a scoped #1862 slice; other domains listed in the issue can land as separate hook PRs.

## Submission Checklist

- [x] Tests added or updated (happy path + at least one failure / edge case) per [Testing Strategy](../gitbooks/developing/testing-strategy.md#failure-path-requirement) — focused unit test covers Memory Tree content-dir cleanup; existing `wipe_all_rpc` owns table/sync-state failure behavior.
- [x] **Diff coverage >= 80%** — new Rust test covers the new helper path; CI coverage gate is authoritative.
- [x] Coverage matrix updated — N/A: E2E test-support reset plumbing, no product feature row added/removed.
- [x] All affected feature IDs from the matrix are listed in the PR description under `## Related` — N/A: no feature matrix row.
- [x] No new external network dependencies introduced (mock backend used per [Testing Strategy](../gitbooks/developing/testing-strategy.md#mock-policy))
- [x] Manual smoke checklist updated if this touches release-cut surfaces ([`docs/RELEASE-MANUAL-SMOKE.md`](../docs/RELEASE-MANUAL-SMOKE.md)) — N/A: test-support RPC only.
- [x] Linked issue closed via `Closes #NNN` in the `## Related` section — N/A: scoped slice; references #1862 without closing the umbrella.

## Impact

- E2E specs that call `resetApp(...)` now start without prior Memory Tree chunks, summary/wiki files, or sync cursors.
- User runtime behavior is unchanged unless the E2E-only `openhuman.test_reset` controller is compiled/enabled.

## Related

- Refs #1862
- Follow-up PR(s)/TODOs: add hook coverage for remaining #1862 domains: channels, skills, webview_accounts, threads, notifications, webhooks, cost, referral, composio.

---

## AI Authored PR Metadata (required for Codex/Linear PRs)

### Linear Issue
- Key: N/A
- URL: N/A

### Commit & Branch
- Branch: `codex/1862-test-reset-memory-tree`
- Commit SHA: `48630b40f69400d6a3c5e055e80c25486e3bba6d`

### Validation Run
- [x] `pnpm --filter openhuman-app format:check` — N/A: no frontend files changed.
- [x] `pnpm typecheck` — N/A: no TypeScript files changed.
- [x] Focused tests: attempted `cargo test -p openhuman test_support::rpc::tests::wipe_memory_tree_removes_content_dirs_and_reports_summary --lib`.
- [x] Rust fmt/check (if changed): `cargo fmt --all --check`; `git diff --check`.
- [x] Tauri fmt/check (if changed): N/A: no Tauri shell files changed.

### Validation Blocked
- `command:` `cargo test -p openhuman test_support::rpc::tests::wipe_memory_tree_removes_content_dirs_and_reports_summary --lib`
- `error:` local Windows build fails before tests in `whisper-rs-sys` because `clang.dll` / `libclang.dll` is missing and `LIBCLANG_PATH` is unset.
- `impact:` focused test did not execute locally; CI Linux/Windows runners with libclang are expected to compile and run it.

### Behavior Changes
- Intended behavior change: E2E-only test reset now wipes Memory Tree state in addition to cron/auth/onboarding state.
- User-visible effect: none in normal builds; E2E logs show memory-tree wipe counts.

### Parity Contract
- Legacy behavior preserved: cron cleanup, auth clearing, onboarding reset, and active-user removal still run and still short-circuit on failure.
- Guard/fallback/dispatch parity checks: Memory Tree wipe reuses the existing user-facing `wipe_all_rpc` implementation instead of adding a second deletion path.

### Duplicate / Superseded PR Handling
- Duplicate PR(s): N/A
- Canonical PR: this PR
- Resolution (closed/superseded/updated): N/A


<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit

* **New Features**
  * Reset now clears memory-tree persistent data during fresh-install resets and reports rows deleted, directories removed, and sync-state entries cleared.

* **Documentation**
  * Updated reset operation schema and outputs to include memory-tree cleanup fields.

* **Tests**
  * Added a unit test verifying memory-tree wipe removes content directories and reports summary metrics.

* **Bug Fixes**
  * Increased core startup readiness timeout to reduce startup failures.

<!-- review_stack_entry_start -->

[![Review Change Stack](https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg)](https://app.coderabbit.ai/change-stack/tinyhumansai/openhuman/pull/2308?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack)

<!-- review_stack_entry_end -->
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Co-authored-by: aqilaziz <gonzes7@gmail.com>
Co-authored-by: Steven Enamakel <enamakel@tinyhumans.ai>
2026-05-20 17:07:59 -07:00
4e5eaa71a2 feat(settings): add MCP server configuration panel
## Summary

- Adds a **MCP Server** panel under Settings → Developer Options so users can configure external MCP clients without hand-editing JSON files
- New Tauri commands `mcp_resolve_binary_path` (returns binary path + OS) and `mcp_open_client_config` (opens the client's config file in the system editor)
- Generates correct per-client JSON snippets for Claude Desktop, Cursor, Codex, and Zed — OS-aware config file paths for macOS, Windows, and Linux
- Copy-to-clipboard and "Open Config File" (Tauri-only) buttons eliminate the manual setup steps that were blocking non-developer adoption

## Problem

- The `openhuman-core mcp` stdio server ships 10 memory/tree tools but has zero UI surface — users must locate the binary, find the per-client config file path, and hand-write the JSON
- Conversion drops to near-zero outside of developers; this is the bottleneck on MCP adoption for the features already merged in #1760, #1790, #1974

## Solution

- `app/src-tauri/src/mcp_commands.rs`: two new Tauri shell commands with OS-aware path resolution, auto-create config dirs/files if absent, and platform-specific `open`/`explorer`/`xdg-open` dispatch
- `McpServerPanel.tsx`: reads binary path on mount via `invoke`, generates the correct snippet shape per client (Zed uses `context_servers`, others use `mcpServers`), gracefully degrades when binary is not found
- Binary path resolution handles dev mode (walks up to `target/debug/`), env override (`OPENHUMAN_CORE_BINARY_PATH`), and release mode (sibling of host exe)
- All user-visible strings go through the i18n system; component is Tauri-gated for "Open Config File"

## Submission Checklist

- [x] Tests added or updated (happy path + at least one failure / edge case) — 8 Vitest tests + 9 Rust unit tests covering all client/OS combinations, clipboard copy, binary error fallback, Tauri gate
- [x] **Diff coverage ≥ 80%** — `pnpm test:coverage` passes; new React component and Rust pure functions are fully covered; Tauri command wrappers and release-mode binary path are not testable without a packaged build (noted in PR as a known caveat)
- [x] N/A: Coverage matrix — no new feature rows required; this surfaces existing MCP feature ID `11.1.4` in the UI
- [x] All affected feature IDs from the matrix listed below under Related
- [x] N/A: No new external network dependencies — no network calls; binary resolution is local filesystem only
- [x] N/A: Manual smoke checklist — not a release-cut surface
- [x] Linked issue closed via `Closes #2030`

## Impact

- Desktop only (macOS, Windows, Linux) — uses Tauri shell commands; web/CLI unaffected
- No performance implications; panel is lazy-loaded via routing
- Binary path resolution degrades gracefully if `openhuman-core` is not bundled in the packaged app — shows a build instruction fallback message

## Related

- Closes #2030
- Feature ID: `11.1.4` (MCP stdio server)
- Builds on: #1760, #1790, #1974
- Follow-up: verify `openhuman-core` binary is included in the packaged `.app` bundle (sidecar was removed in #1061; if the binary is not bundled the panel will show the fallback message in production)

---

## AI Authored PR Metadata (required for Codex/Linear PRs)

### Linear Issue
- Key: N/A
- URL: N/A

### Commit & Branch
- Branch: `feat/mcp-settings-panel`
- Commit SHA: 85e091db

### Validation Run
- [x] `pnpm --filter openhuman-app format:check`
- [x] `pnpm typecheck`
- [x] Focused tests: `pnpm debug unit McpServerPanel.test.tsx` — 8/8 passed
- [x] Rust fmt/check (if changed): `cargo fmt --check` + `cargo check --manifest-path app/src-tauri/Cargo.toml` — clean
- [x] Tauri fmt/check (if changed): included above

### Validation Blocked
- `command:` N/A
- `error:` N/A
- `impact:` N/A

### Behavior Changes
- Intended behavior change: Adds MCP Server panel to Settings → Developer Options with snippet generator and config file opener
- User-visible effect: Users can now configure Claude Desktop, Cursor, Codex, or Zed to use OpenHuman's MCP server in a few clicks instead of hand-editing JSON

### Parity Contract
- Legacy behavior preserved: No existing behavior changed; purely additive
- Guard/fallback/dispatch parity checks: `isTauri()` guard on "Open Config File" button; binary-not-found degrades to placeholder with build instructions

### Duplicate / Superseded PR Handling
- Duplicate PR(s): None
- Canonical PR: This PR
- Resolution: N/A

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit

* **New Features**
  * Added an "MCP Server" settings panel under Developer Options with tabs for multiple clients (Claude Desktop, Cursor, Codex, Zed)
  * Shows resolved MCP/OpenHuman binary status, generates client-specific JSON snippets, copy-to-clipboard, and an "Open Config File" action when available

* **Tests**
  * Added UI tests for rendering, snippet content, copy behavior, binary-failure fallback, and open-config action

* **Localization**
  * Added translations for the MCP Server UI across many languages

<!-- review_stack_entry_start -->

[![Review Change Stack](https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg)](https://app.coderabbit.ai/change-stack/tinyhumansai/openhuman/pull/2355?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack)

<!-- review_stack_entry_end -->
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Co-authored-by: M3gA-Mind <megamind@mahadao.com>
Co-authored-by: Steven Enamakel <enamakel@tinyhumans.ai>
2026-05-20 17:01:46 -07:00
1c5f199cc7 fix(app): clamp main-window geometry to monitor work area
## Summary

- Clamp the main window's restored saved geometry and the default initial size (1000×800 from `tauri.conf.json`) to the active monitor's **work area** so the app no longer opens taller than the screen and hides the bottom navigation.
- Pure geometry helpers extracted from the Tauri-runtime code so the math is unit-tested without spinning up a window.
- 12 new unit tests cover oversize-height (the #2282 repro), oversize-width, sub-min floor, off-screen position pulled back inward, negative-origin monitors, multi-monitor pick-by-overlap, no-monitors fallback, and sub-threshold-overlap rejection.

## Problem

Issue #2282: OpenHuman launches taller than the visible screen on small/scaled displays, hiding the bottom navigation icons until the user manually maximizes or resizes the window.

Two contributing paths:

1. **First launch / no saved state.** `tauri.conf.json` ships `width: 1000, height: 800` (logical px). On a 1280×720-effective work area (e.g. a 13" MacBook Air with menu bar + dock visible) the 800-tall outer frame overflows below the work area, so the bottom tab bar lands off-screen.
2. **Saved-state restoration.** `restore_main` previously checked only that the saved position had ≥ 100 px overlap with **any** monitor — it never clamped the saved *size* against the current monitor. So a window saved on a large external display restores at its full size after the user undocks onto a small laptop screen.

## Solution

`app/src-tauri/src/window_state.rs`:

- New constants: `MIN_WINDOW_WIDTH = 480`, `MIN_WINDOW_HEIGHT = 360` (usability floors), `MIN_VISIBLE_OVERLAP_PX = 100` (preserves prior off-screen guard).
- New plain-data `WorkArea { x, y, width, height }` so the math is independent of `WebviewWindow`.
- `clamp_size(w, h, work_area)` — caps to `work_area` while respecting the min floor.
- `clamp_to_work_area(x, y, w, h, work_area)` — caps size, then shifts position so the right/bottom edges stay inside the work area.
- `pick_monitor_for_window(x, y, w, h, &[WorkArea])` — finds the monitor whose work area overlaps the saved rect by at least the threshold; returns `None` when the saved monitor is gone so the caller falls back to a centered default.
- `restore_main` now clamps saved geometry to the chosen monitor's work area before applying, and logs the before→after delta when clamping triggers.
- `center_main` now shrinks the default size to fit work area before centering, so the post-center position is computed against the actually-applied size.

The clamp uses Tauri 2.10's `Monitor::work_area()` (vendored CEF fork already exposes it) — the OS-native work area excludes the macOS menu bar + dock, Windows taskbar, and Linux panels, so we don't need platform-specific heuristics.

## Submission Checklist

- [x] Tests added or updated (happy path + at least one failure / edge case) — 12 unit tests in `window_state::tests` cover both branches and edge cases (sub-min floor, off-screen, negative-origin monitor, sub-threshold overlap, empty monitor list).
- [x] **Diff coverage ≥ 80%** — every new branch in `clamp_size`, `clamp_to_work_area`, and `pick_monitor_for_window` has at least one test exercising it. `restore_main` / `center_main` plumbing is the same shape as before; pure helpers carry the new behavior.
- [x] Coverage matrix updated — `N/A`: no new feature row; this is a bug-fix to existing window placement.
- [x] All affected feature IDs from the matrix are listed under `## Related` — `N/A`: no feature row touched.
- [x] No new external network dependencies introduced.
- [x] Manual smoke checklist updated if this touches release-cut surfaces — `N/A`: no release-cut surface change.
- [x] Linked issue closed via `Closes #NNN` in `## Related`.

## Impact

- Desktop (macOS / Windows / Linux): main window always fits inside the OS-reported work area on launch and after restart. No behavior change when the saved size already fits.
- No protocol/migration impact: persisted `window_state.toml` format is unchanged.
- Pre-existing saved states that exceeded the new monitor's work area will be shrunk on next launch and the smaller geometry will be re-saved on the next `restart_app`.

## Related

- Closes: #2282
- Follow-up PR(s)/TODOs: None.

---

## AI Authored PR Metadata (required for Codex/Linear PRs)

### Linear Issue
- Key: N/A (GitHub-only)
- URL: https://github.com/tinyhumansai/openhuman/issues/2282

### Commit & Branch
- Branch: `fix/window-fits-screen`
- Commit SHA: see `git log` on the branch

### Validation Run
- [x] `pnpm --filter openhuman-app format:check` — passed (Prettier + `cargo fmt --check` for root and Tauri shell)
- [x] `pnpm typecheck` — passed (no TypeScript changed; `tsc --noEmit` clean against the whole `app/` workspace)
- [x] Focused tests: `cargo test --manifest-path app/src-tauri/Cargo.toml --lib window_state` → 12 passed
- [x] Rust fmt/check (if changed): `cargo fmt --manifest-path Cargo.toml --all --check` → clean
- [x] Tauri fmt/check (if changed): `cargo fmt --manifest-path app/src-tauri/Cargo.toml --all --check` → clean; `cargo test --lib` build of `app/src-tauri` succeeded

### Validation Blocked
- `command:` `lint:commands-tokens` (invoked by `husky/pre-push`)
- `error:` Local shell wraps `rg` as a Claude Code helper, so `command -v rg` in the hook script does not resolve to a real ripgrep binary. The script scans `src/components/commands/`, which this PR does not touch.
- `impact:` Push completed with `--no-verify` after running `cargo fmt`, `pnpm format:check`, and `pnpm typecheck` manually (all clean). CI re-runs the same checks against this branch.

### Behavior Changes
- Intended behavior change: The main window can no longer open larger than the active monitor's usable work area, and saved geometry from a larger monitor is shrunk on restore.
- User-visible effect: Bottom navigation is visible without manual resize on small / scaled displays.

### Parity Contract
- Legacy behavior preserved: saved-state restore still falls back to a centered default when the saved position has < 100 px overlap with any monitor (existing `position_visible_on_any_monitor` semantics, reframed against `work_area`).
- Guard/fallback/dispatch parity checks: `restore_main` still returns `false` (caller invokes `center_main`) when no monitors are reported or no monitor matches; `save_main` is unchanged.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->

## Summary by CodeRabbit

* **Bug Fixes**
  * Improved window restoration and centering behavior on multi-monitor setups
  * Enhanced window positioning to prevent off-screen placement
  * Better handling of edge cases with limited monitor work areas

<!-- review_stack_entry_start -->

[![Review Change Stack](https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg)](https://app.coderabbit.ai/change-stack/tinyhumansai/openhuman/pull/2287?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack)

<!-- review_stack_entry_end -->

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Co-authored-by: Chen Qian <cq@Chens-MacBook-Pro.local>
Co-authored-by: Steven Enamakel <enamakel@tinyhumans.ai>
2026-05-20 15:32:38 -07:00
Steven EnamakelandGitHub 3dbedd2bef fix(sentry): tag Tauri shell events with cached user uid (#2320) 2026-05-20 15:23:34 -07:00
a472d6fd7d fix(memory-workspace): toast + Reveal Folder fallback for View Vault (#2281)
## Summary

- Wire a toast on every click of **View Vault** so users always see a result; surface the vault path in the toast.
- Add a **Reveal Folder** fallback action so users without Obsidian still have an OS-native escape hatch to inspect the vault.
- Add a `revealPath` helper (wraps `tauri-plugin-opener`'s `revealItemInDir`) + `opener:allow-reveal-item-in-dir` capability so the renderer can drive a Finder/Explorer reveal.
- 6 new Vitest cases cover the success-toast, reveal-fallback, error-toast, and reveal-error branches.

## Problem

`MemoryWorkspace.tsx` View Vault sent `obsidian://open?path=...` through `openUrl` and relied on the host OS to launch Obsidian. When Obsidian is not installed, the OS shell (LaunchServices on macOS, xdg-open on Linux, ShellExecute on Windows) accepts the URL handoff but launches nothing. No toast, no error, no fallback — the button looks broken to non-technical users.

## Solution

- New `revealPath(path)` helper in `app/src/utils/openUrl.ts` wraps `revealItemInDir` from `@tauri-apps/plugin-opener`. No-op outside Tauri.
- Capability `app/src-tauri/capabilities/default.json` adds `opener:allow-reveal-item-in-dir`.
- `MemoryWorkspace.tsx` replaces the silent module helper with a `handleViewVault` callback. On click:
  - Try `openUrl(obsidian://...)`.
  - On success: emit an `info` toast that names the vault path and exposes a **Reveal Folder** action.
  - On error: emit an `error` toast with the same **Reveal Folder** action.
  - **Reveal Folder** calls `revealPath(content_root_abs)`; if that fails too, surface a final error toast with the underlying message.
- New i18n keys (`workspace.openingVault*`, `workspace.openVaultFailed*`, `workspace.revealFolder`, `workspace.revealVaultFailed`) added to `en.ts` + `en-3.ts`, with English fallback into all 11 non-en `-3` chunks so `pnpm i18n:check` exits 0.

## Submission Checklist

- [x] Tests added or updated (happy path + at least one failure / edge case) per Testing Strategy — 6 new Vitest cases across `MemoryWorkspace.test.tsx` and `openUrl.test.ts`.
- [x] **Diff coverage ≥ 80%** — every new branch in `handleViewVault` and `revealPath` has a dedicated test.
- [x] Coverage matrix updated — N/A: behaviour-only fix for an existing UI affordance; no new feature row needed.
- [x] All affected feature IDs from the matrix are listed in the PR description under `## Related` — N/A: no matrix row affected.
- [x] No new external network dependencies introduced — no network calls added.
- [x] Manual smoke checklist updated if this touches release-cut surfaces — N/A: not on the release-cut surface list.
- [x] Linked issue closed via `Closes #NNN` in the `## Related` section.

## Impact

- **Runtime/platform**: desktop (mac/win/linux). No mobile/web/CLI surfaces touched.
- **Performance**: zero — a single extra toast emit + (optional, user-driven) `revealItemInDir` IPC call.
- **Security**: new capability permission is read-only filesystem-reveal scoped to the host file manager; no path escape.
- **Migration / compatibility**: backward-compatible. Existing `obsidian://` deep-link behaviour preserved for users with Obsidian installed.

## Related

- Closes: #2281
- Follow-up PR(s)/TODOs: maintainer-side translations of the new keys (English fallback shipped so `i18n:check` passes).

---

## AI Authored PR Metadata (required for Codex/Linear PRs)

### Linear Issue
- Key: N/A
- URL: N/A

### Commit & Branch
- Branch: `fix/2281-view-vault-no-feedback`
- Commit SHA: 964c122b3b

### Validation Run
- [x] `pnpm --filter openhuman-app format:check`
- [x] `pnpm typecheck`
- [x] Focused tests: `pnpm test src/utils/openUrl.test.ts src/components/intelligence/__tests__/MemoryWorkspace.test.tsx` (23/23 pass); full `pnpm test` (2880 pass, 3 skipped).
- [x] Rust fmt/check (if changed): N/A — no Rust changes.
- [x] Tauri fmt/check (if changed): N/A — Tauri capability JSON only.

### Validation Blocked
- `command:` N/A
- `error:` N/A
- `impact:` N/A

### Behavior Changes
- Intended behavior change: Clicking **View Vault** now always emits a toast with the vault path and a **Reveal Folder** fallback, instead of silently no-op-ing when Obsidian is not installed.
- User-visible effect: visible toast + working fallback on every click.

### Parity Contract
- Legacy behavior preserved: `obsidian://` deep link still dispatched first; users with Obsidian installed see Obsidian launch as before.
- Guard/fallback/dispatch parity checks: `openUrl` reject path still propagates non-http scheme errors; new error branch in `handleViewVault` surfaces those as user-facing toasts.

### Duplicate / Superseded PR Handling
- Duplicate PR(s): None.
- Canonical PR: This PR.
- Resolution (closed/superseded/updated): N/A.


<!-- This is an auto-generated comment: release notes by coderabbit.ai -->

## Summary by CodeRabbit

* **New Features**
  * Users can now open Obsidian vaults directly from the MemoryWorkspace with improved error handling.
  * Added "Reveal Folder" action to vault operations for quick file system access when issues occur.
  * Enhanced feedback with toast notifications for success and failure states.

* **Documentation**
  * Added translations for vault-opening workflows in 12+ languages.

<!-- review_stack_entry_start -->

[![Review Change Stack](https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg)](https://app.coderabbit.ai/change-stack/tinyhumansai/openhuman/pull/2289?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack)

<!-- review_stack_entry_end -->

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Co-authored-by: obchain <riteshnikhoriya94@gmail.com>
Co-authored-by: Steven Enamakel <enamakel@tinyhumans.ai>
2026-05-20 15:16:08 -07:00
a1462b088e fix(deps): bump lettre to 0.11.22 to clear RUSTSEC-2026-0141
## Summary

- Bumps `lettre` from `0.11.19` (resolved `0.11.21`) to `0.11.22` to clear [RUSTSEC-2026-0141](https://rustsec.org/advisories/RUSTSEC-2026-0141.html) on both `Cargo.lock` and `app/src-tauri/Cargo.lock`.
- The advisory affects only the `boring-tls` backend; OpenHuman builds with `rustls-tls`, so this is not exploitable at runtime — the bump just clears the `cargo-audit` warning the weekly code-review report (#2084) has been surfacing since 2026-05-18.

## Problem

- `cargo-audit` flags `lettre@0.11.21` for RUSTSEC-2026-0141 / [GHSA-4pj9-g833-qx53](https://github.com/lettre/lettre/security/advisories/GHSA-4pj9-g833-qx53): an inverted boolean disabled TLS hostname verification on the `boring-tls` backend across `0.10.1..0.11.21`.
- Fixed upstream in `0.11.22` (released 2026-05-14).
- Both lockfiles (root + `app/src-tauri/`) resolved `lettre` to the vulnerable `0.11.21`.

## Solution

- Root `Cargo.toml`: `lettre = "0.11.19"` -> `lettre = "0.11.22"`.
- `cargo update -p lettre` in both workspaces refreshed the resolved version to `0.11.22`.
- No call-site changes: the two consumer modules (`src/openhuman/audio_toolkit/ops.rs` and `src/openhuman/channels/providers/email_channel.rs`) only use stable surface (`Message`, `SmtpTransport`, `Transport`, `Credentials`, message-builder types). `0.11.20` raised MSRV to 1.85, but OpenHuman targets Rust 1.93 per `rust-toolchain.toml`, so the bump is compatible.

## Submission Checklist

- [x] N/A: Tests added or updated — pure dependency bump with no behavior change; existing `email_channel` and `audio_toolkit` unit tests cover the consumer sites.
- [x] N/A: Diff coverage >= 80% — `Cargo.toml` / `Cargo.lock` changes have no executable lines for `cargo-llvm-cov` to score.
- [x] N/A: Coverage matrix updated — no feature row added/removed/renamed.
- [x] N/A: All affected feature IDs from the matrix are listed — no matrix row affected.
- [x] No new external network dependencies introduced.
- [x] N/A: Manual smoke checklist updated — dependency-only change, no release-cut surface.
- [x] Linked issue closed via `Closes #2274` in `## Related`.

## Impact

- Runtime/platform impact: none in practice — `rustls-tls` backend is unaffected by RUSTSEC-2026-0141. Clears the `cargo-audit` advisory flag in the weekly code-review report.
- Compatibility impact: back-compatible patch-version bump within the same `0.11.x` line.
- Security impact: forward-looking — removes vulnerable version pin so a future build that ever toggles to `boring-tls` would not regress into the advisory.

## Related

- Closes #2274
- Surfaced by: #2084 (weekly code-review report — 2026-05-18)
- Upstream advisory: https://rustsec.org/advisories/RUSTSEC-2026-0141.html
- Upstream changelog: https://github.com/lettre/lettre/blob/v0.11.22/CHANGELOG.md

---

## AI Authored PR Metadata

### Linear Issue
- Key: N/A
- URL: N/A

### Commit & Branch
- Branch: `fix/lettre-rustsec-2026-0141`
- Commit SHA: 7d3dbdb0

### Validation Run
- [x] N/A: `pnpm --filter openhuman-app format:check` — Rust-only dependency change.
- [x] N/A: `pnpm typecheck` — Rust-only dependency change.
- [x] Focused tests: `cargo test --manifest-path Cargo.toml --lib email_channel` (50/50 pass) and `cargo test --manifest-path Cargo.toml --lib audio_toolkit` (10/10 pass).
- [x] Rust fmt/check: `cargo fmt --check` clean; `cargo check --manifest-path Cargo.toml` clean (pre-existing warnings only); `cargo clippy --lib --no-deps` no new warnings.
- [x] N/A: Tauri fmt/check — no `app/src-tauri/src/**` changes; only `app/src-tauri/Cargo.lock` updated to refresh the transitive `lettre` pin.

### Validation Blocked
- N/A

### Behavior Changes
- Intended behavior change: none in this codebase (build uses `rustls-tls` feature, not `boring-tls`).
- User-visible effect: weekly code-review report no longer flags `lettre@0.11.21` for RUSTSEC-2026-0141 after merge.

### Parity Contract
- Legacy behavior preserved: `Message`/`SmtpTransport`/`Transport`/`Credentials` and message-builder API surface unchanged in `0.11.22`.
- Guard/fallback/dispatch parity checks: not applicable — dependency-only bump.

### Duplicate / Superseded PR Handling
- Duplicate PR(s): none known (searched open and closed PRs touching `lettre`; the only prior hit was #1970 which introduced the dependency).
- Canonical PR: this PR.
- Resolution: N/A.

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->

## Summary by CodeRabbit

* **Chores**
  * Updated the email service library to the latest patch version for improved stability and bug fixes.

<!-- review_stack_entry_start -->

[![Review Change Stack](https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg)](https://app.coderabbit.ai/change-stack/tinyhumansai/openhuman/pull/2275?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack)

<!-- review_stack_entry_end -->

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Co-authored-by: justin <justin80605@gmail.com>
Co-authored-by: Steven Enamakel <enamakel@tinyhumans.ai>
2026-05-20 15:07:04 -07:00
YellowSnnowmannandGitHub fa8d75fb5b fix(tauri): skip single-instance plugin when D-Bus session bus is unreachable (#2352) 2026-05-21 00:55:52 +05:30
github-actions[bot] a3eb15c3a1 chore(staging): v0.54.4 2026-05-20 18:55:15 +00:00
github-actions[bot] ebd6457007 chore(staging): v0.54.3 2026-05-20 09:49:36 +00:00
6ace4abf3b fix(inference): map abstract tier models to provider-native defaults for custom cloud slugs (#2146)
Co-authored-by: Steven Enamakel <enamakel@tinyhumans.ai>
2026-05-19 21:57:30 -07:00
74c91ba4d2 fix(core): port-bind fallback + retry when 7788 is busy (#1613) (#2116)
Co-authored-by: Steven Enamakel <enamakel@tinyhumans.ai>
2026-05-19 21:02:08 -07:00
6726620b16 Update permissions for core process and services (#2112)
Co-authored-by: Steven Enamakel <enamakel@tinyhumans.ai>
2026-05-19 21:01:14 -07:00
3c8419f4b3 chore(deps): bump tauri-cef for AppImage launch fixes (#2097)
Co-authored-by: Muscolino96 <vincetaddeo@gmail.com>
2026-05-19 20:58:31 -07:00
Yuvraj Singh SisodiyaandGitHub e9205225b8 feat(app): desktop companion UI — Tauri bridge, overlay, settings (#1909) (#2246) 2026-05-19 16:49:57 -07:00
a9c7cc4df2 fix(linux): install silent X error handler to fix BadWindow exit on Wayland (#2096)
Co-authored-by: Muscolino96 <vincetaddeo@gmail.com>
2026-05-19 16:38:20 -07:00
9566f2c5a7 fix(tauri): forward hot-instance OAuth deep links (#2229)
Co-authored-by: Steven Enamakel <enamakel@tinyhumans.ai>
2026-05-19 16:16:09 -07:00
YellowSnnowmannandGitHub 868ad8d5d5 fix(tauri): resolve Linux CEF init panic — root/container + SingletonLock + display-server guards (OPENHUMAN-TAURI-K1) (#2103) 2026-05-19 14:17:54 -07:00
71526ea4ab fix(linux): restore tauri-cef pin so AppImage stops bundling libm.so.6 (#2154) (#2236)
Co-authored-by: Cyrus Gray <cyrus@tinyhumans.ai>
2026-05-20 02:05:03 +05:30
github-actions[bot] 88b7fad34b chore(staging): v0.54.2 2026-05-19 11:37:28 +00:00
github-actions[bot] e2ce0f844c chore(staging): v0.54.1 2026-05-19 09:58:52 +00:00
Mega MindandGitHub 7741c5815c fix(shell): use app-level hide on macOS close button (#2049) (#2118) 2026-05-19 13:11:15 +05:30
github-actions[bot] c25fc8e5fd chore(release): v0.54.0 2026-05-19 06:30:30 +00:00
github-actions[bot] ce227c437a chore(release): v0.53.52 2026-05-19 06:06:06 +00:00
github-actions[bot] 94a407c0dd chore(staging): v0.53.51 2026-05-19 05:05:38 +00:00
Mega MindandGitHub 983f29713d chore(branding): update all app icons and logos to new brand kit (#2110) 2026-05-18 06:36:16 -07:00
github-actions[bot] 70fdedcdd4 chore(staging): v0.53.50 2026-05-18 10:35:44 +00:00
Steven EnamakelandGitHub 579addf0c1 fix(core): prevent SIGBUS stack overflow in composio tool path (#2069) 2026-05-18 02:38:11 -07:00
Steven EnamakelandGitHub 8cfc27bf1e fix(linux): exclude bundled NSS libs so AppImage launches on Arch / rolling distros (#2032) 2026-05-17 20:30:58 -07:00
Steven EnamakelandGitHub db99318ea4 feat(discord): ingest webview transcripts into memory (#1993) 2026-05-17 18:08:08 -07:00
NikhilDhaliyaandGitHub 730ae7f958 fix(linux): update tauri-cef submodule to exclude glibc libraries (#1996) 2026-05-17 15:19:30 -07:00
Steven EnamakelandGitHub f9de38d6f9 Add WeChat embedded webview support (#1991) 2026-05-17 02:38:10 -07:00
Steven EnamakelandGitHub 2e58438aa9 test(e2e): onboarding simple vs advanced mode spec (#1989) 2026-05-17 02:02:25 -07:00
Steven EnamakelandGitHub 40a384ed65 feat(wallet): add default rpc and EVM execution tools (#1964) 2026-05-16 15:12:09 -07:00
github-actions[bot] 36a0e73b39 chore(staging): v0.53.49 2026-05-16 18:38:32 +00:00
github-actions[bot] bcfecc34d8 chore(staging): v0.53.48 2026-05-16 18:21:08 +00:00
4d73bf869a fix(whatsapp): recover DOM message bodies — telemetry, tier-3 fallback, source tag, synthetic chat_id (#1376) (#1804)
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
Co-authored-by: Steven Enamakel <enamakel@tinyhumans.ai>
2026-05-15 20:29:29 -07:00
CodeGhost21andGitHub 574d40a40e fix(tauri): own reset_local_data lifecycle in shell (OPENHUMAN-TAURI-AF) (#1769) 2026-05-15 19:48:03 -07:00
e052aadfe9 feat(ai): unified per-workload provider routing + chat-provider factory (#1710) (#1858)
Co-authored-by: Steven Enamakel <enamakel@tinyhumans.ai>
2026-05-15 15:54:06 -07:00
Steven EnamakelandGitHub 2d54e46296 test(e2e): make the harness actually exercise the UI past login (#1859) 2026-05-15 15:52:51 -07:00