Skip to content

Merry v0.1.4

Latest

Choose a tag to compare

@locez locez released this 03 Dec 18:49
· 10 commits to main since this release
v0.1.4
4d4f2ea

English · 简体中文 · Install


English

Browser Sandboxing & Permissions

  • Linux browser sandbox /proc fix — Allows /proc writes inside the Linux BrowserSandboxProfile so Chromium's CLONE_NEWUSER sandbox can write /proc/<pid>/{setgroups,uid_map,gid_map,oom_score_adj} under Landlock's PR_SET_NO_NEW_PRIVS, fixing headless browser_tab launch failures (exit code 82).
  • macOS Seatbelt browser sandbox fix — Adds validated Darwin user temp directories (/private/var/folders/.../T), scopes browser-only MachPortRendezvousServer Mach registration in Seatbelt, and passes --no-sandbox inside the outer Seatbelt browser confinement so Chrome launches reliably on macOS without nested sandbox_init rejections.
  • Clearer network permission labels — Updates permission review modals and /permissions labels to + Network (IP / loopback & outbound) to clarify that IP-level network grants cover loopback and outbound connections.

Anthropic Provider & Model Picker

  • Higher default max_output_tokens — Raises Anthropic's default max_output_tokens from 4096 to 32,000, preventing model_length truncation on extended thinking and long coding responses.
  • Anthropic-compatible /v1/models normalization — Defaults missing has_more, normalizes blank owned_by to None, deduplicates trailing /v1 and repeated slashes in Anthropic endpoint URLs (e.g., OpenRouter / OpenCode Zen), and improves 404/405 diagnostics.
  • ModelPicker inline 404 UX & cache seeding — Replaces stuck Refreshing... spinners after discovery errors with typed picker status and inline 404 guidance (No /v1/models — type a model ID, or use an OpenAI endpoint), and consistently seeds cached/current models across /model, Settings, ProviderForm (guarded by matching kind and base URL), and the setup wizard.

Dependencies

  • Updated dependencies & replaced yanked crates — Bumps pyo3 to 0.29.3 (#104) and updates yanked pin-project-lite (0.2.19) and clipboard-win (5.4.3) in Cargo.lock.

简体中文

浏览器沙箱与权限提示

  • 修复 Linux 浏览器沙箱 /proc 写入限制 — 在 Linux BrowserSandboxProfile 中允许写入 /proc,使 Chromium 的 CLONE_NEWUSER 沙箱在 Landlock PR_SET_NO_NEW_PRIVS 下可以正常写入 /proc/<pid>/{setgroups,uid_map,gid_map,oom_score_adj},修复无头 browser_tab 启动报错(exit code 82)。
  • 修复 macOS Seatbelt 浏览器沙箱启动 — 为 macOS 浏览器沙箱放行经校验的 Darwin 用户临时目录(/private/var/folders/.../T),在 Seatbelt 中仅对浏览器受限放行 MachPortRendezvousServer Mach 注册,并在外层 Seatbelt 沙箱内为 Chromium 传入 --no-sandbox,避免嵌套 sandbox_init 导致的启动失败。
  • 更清晰的网络权限标签 — 将审批弹窗与 /permissions 界面中的网络权限文案更新为 + Network (IP / loopback & outbound),明确标注 IP 级网络授权覆盖本地回环与出站连接。

Anthropic Provider 与模型选择器

  • 提高默认 max_output_tokens — 将 Anthropic Provider 默认的 max_output_tokens 从 4096 提高至 32,000,解决深度思考与长代码输出容易触发 model_length 截断的问题。
  • Anthropic 兼容接口 /v1/models 解析与 URL 规范化 — 兼容缺失 has_more 字段、将空白 owned_by 归一化为 None、自动去重 Anthropic 端点 URL 末尾的 /v1 与多余斜杠(兼容 OpenRouter / OpenCode Zen 等服务),并优化 404/405 错误诊断信息。
  • 改进 ModelPicker 404 引导与缓存回填 — 以强类型状态修复模型拉取失败后 Refreshing... 一直卡住的问题,遇到 404 时内联展示提示(No /v1/models — type a model ID, or use an OpenAI endpoint),并在 /model、设置页、Provider 表单(按类型与 Base URL 匹配)及首次配置向导中保持一致的模型缓存回填行为。

依赖更新

  • 升级依赖并替换已被 yank 的 crate — 升级 pyo3 至 0.29.3(#104),并在 Cargo.lock 中更新已被 yank 的 pin-project-lite(0.2.19)与 clipboard-win(5.4.3)。

Install / 安装

# Linux (static musl: x86_64 / arm64) & macOS (Apple Silicon / Intel) — includes Alt+G Web viewer
curl -fsSL https://github.com/locez/merry/releases/download/v0.1.4/install.sh | sh
# Windows (x86_64)
irm https://github.com/locez/merry/releases/download/v0.1.4/install.ps1 | iex
cargo install --locked merry-cli --features web   # crates.io CLI (Rust 1.95+) / cargo binstall merry-cli
cargo add merry --features anthropic              # Rust SDK
pip install merry-agent                           # Python SDK (imports as `merry`)
nix run github:locez/merry                        # Nix flake

Full Changelog: v0.1.3...v0.1.4