Skip to content

Releases

sessfork v0.2.1 — Native Windows Support & MV3 Companion Extension

Choose a tag to compare

@github-actions github-actions released this 25 Nov 15:10
v0.2.1
40aa162

sessfork v0.2.1 — Native Windows Support & MV3 Companion Extension

中文速览:正式上线原生 Windows(x64)支持,零 Python、零 Node.js 依赖——纯 Rust 单二进制 sessfork-mcp.exe(约 784 KiB)直连 Windows 版 moli.exe(本地回环 WebSocket CDP + Win32 Job Object 退出零孤儿进程 + CREATE_NO_WINDOW 无黑框),配套开源可审计的双语 MV3 伴生扩展(固化扩展 ID、自动检测 Moli\bin、瑞士极简风弹窗界面),在不做进程注入与提权的前提下合规解决 Chrome 127+ App-Bound Encryption(v20)。现已同步发布至 PyPI(0.2.1)、Windows 一行 PowerShell 安装脚本,并附 5 平台预编译二进制、扩展压缩包与 SHA256SUMS.txt。

Highlights

1. Native Windows (x64) — Zero Python, Zero Node.js

  • Standalone Rust MCP server (sessfork-mcp.exe, ~784 KiB): Communicates with Windows moli.exe over loopback RFC 6455 WebSocket CDP on a kernel-assigned --port 0, uses a Win32 Job Object for zero-orphan child reaping, and launches with CREATE_NO_WINDOW.
  • Auto-detect Moli\bin & 1-command installer (install.ps1): Automatically installs sessfork-mcp.exe and moli.exe, pre-registers Native Messaging with the fixed extension ID, wires detected AI clients' MCP configs, and copies the unpacked extension folder path to your clipboard.
  • Verified on real Windows 10 + Chrome 158 (v20 ABE): ~11 ms cold-start initialize and ~6 ms structure-first Markdown extraction.

2. Auditable MV3 Companion Extension (sessfork-extension.zip)

  • Clean, AV-safe approach to Chrome 127+ v20 App-Bound Encryption: No process injection, no privilege escalation, and no memory scraping. On explicit user click (Fork This Site), Chrome decrypts HttpOnly cookies and localStorage via its official extension APIs and syncs selected domains over Native Messaging (com.wasabihu.sessfork) into ~/.sessfork/.
  • Fixed extension ID & Swiss UI popup: Connects immediately (green status dot) once loaded as an unpacked extension, with bilingual UI and multi-tab batch sync. See extension/README.md.

3. Cross-Platform Packaging & Supply Chain

  • 5 prebuilt native sessfork-mcp binaries: windows-x64, darwin-arm64, darwin-x64, linux-arm64, linux-x64, plus sessfork-extension.zip and SHA256SUMS.txt.
  • PyPI 0.2.1 published: Try immediately on macOS/Linux via uvx sessfork <domain>.

Install / Upgrade

  • Windows (PowerShell — 1 command):

    powershell -ExecutionPolicy ByPass -c "irm https://raw.githubusercontent.com/wasabihu/sessfork/v0.2.1/install.ps1 | iex"

    Then open chrome://extensions → enable Developer mode → Load unpacked → Ctrl+V → Enter.

  • macOS / Linux:

    curl -fsSL https://raw.githubusercontent.com/wasabihu/sessfork/v0.2.1/install.sh | sh
    # or zero-install via uvx:
    uvx sessfork --version

Full Changelog: v0.1.6...v0.2.1

sessfork v0.2.0

Choose a tag to compare

@github-actions github-actions released this 25 Nov 13:52
v0.2.0
0655ba7

Full Changelog: v0.1.6...v0.2.0

sessfork v0.1.6

Choose a tag to compare

@github-actions github-actions released this 25 Nov 11:33
v0.1.6
3f85de1

Full Changelog: v0.1.5...v0.1.6

sessfork v0.1.5

Choose a tag to compare

@github-actions github-actions released this 25 Nov 05:40
v0.1.5
2325f41

sessfork v0.1.5 — Full Security Hardening & Native Moli WebMCP Release

中文速览:本版本围绕本机浏览器登录态安全完成了全仓白盒审计与独立盲审复核,覆盖按域名最小权限隔离、CDP 隔离世界注入、本地 Studio 面板鉴权与反点击劫持、文件/符号链接防篡改以及供应链固定,并新增原生 Moli WebMCP 桥接与结构化 Markdown 提取(55 项 Python/E2E + Rust 自动化测试全绿,提供 4 平台预编译二进制与 SHA256SUMS.txt)。

Highlights

1. Session & Browser Isolation (sessfork-mcp, Rust)

  • Isolated-world LocalStorage hydration: Hydrates LocalStorage inside a dedicated CDP worldName backed by a JS Map, and filters live hot-reload sync strictly per tab origin via Page.createIsolatedWorld.
  • Authoritative origin checks: Reads page URLs and frame origins strictly from CDP Page.getFrameTree (never main-world JSON.stringify), preserves opaque "null" sandboxed iframe origins, and blocks implicit cross-origin iframe WebMCP tool selection.
  • Fail-closed screenshot & navigation guards: Enforces 0600 + O_NOFOLLOW on browser_take_screenshot (rejecting path traversal, hidden files like .sessfork-state.json, non-.png extensions, and symlinks), restricts browser_navigate to http(s):// and about:blank, and sanitizes browser_set_storage_state errors without leaking path-existence oracles.
  • Native Moli WebMCP & runtime hardening: Adds native Moli WebMCP bridge and structure-first Markdown extraction, fixes O(N^2) CDP framing scans, caps frames at 64 MiB, bounds console/WebMCP/evaluate memory, and prevents FD 4 child-process Drop deadlocks.

2. Least-Privilege CLI & Local Studio UI (Python)

  • Fail-closed domain parsing: Rejects empty or whitespace-only domain arguments instead of falling back to --all-domains or clear-all; decouples explicit all_domains from empty lists.
  • Symlink & descriptor safety: Validates symlinks before .resolve() across state.json, mirror dirs, keys.json, lock files, MCP configs, Cookie DB sidecars (prior to sqlite3.connect), and LocalStorage LevelDB directories; enforces O_NOFOLLOW.
  • Cookie & crypto hygiene: Strictly verifies Chrome v24+ SHA256(host_key) prefixes, validates profile names, expands public suffix + second-level ccTLD boundaries, prunes logged-out cookies on --refresh, prevents pre-1970 expired cookie resurrection, and validates AES key/IV sizes.
  • Hardened local Studio UI: Enforces exact loopback Host / Origin / Sec-Fetch-Site checks, anti-clickjacking headers, session auth across all GET/POST routes with a 0600 auto-POST launcher, and explicit clear_all=true on /api/clear.

3. Supply Chain & Packaging

  • Ships 4 prebuilt native sessfork-mcp tarballs (darwin-arm64, darwin-x64, linux-arm64, linux-x64) with SHA256SUMS.txt.
  • Pins GitHub Actions to 40-char commit SHAs, enforces cargo --locked, bundles canonical SKILL.md in wheel package data, and hardens install.sh (TLS 1.2+, pinned release tag, single-member tar extraction, atomic staging).

Verification & Upgrade

  • Verification: 34 Python/E2E tests + 21 Rust tests passing (55/55), reviewed via independent blind audit.
  • Quick upgrade:
    curl -fsSL https://raw.githubusercontent.com/wasabihu/sessfork/v0.1.5/install.sh | sh

Full Changelog: v0.1.4...v0.1.5

sessfork v0.1.4

Choose a tag to compare

@github-actions github-actions released this 23 Nov 11:15

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

sessfork v0.1.3

Choose a tag to compare

@wasabihu wasabihu released this 22 Nov 23:16

Fix macOS headless Chrome multi-origin storageState crashes by auto-pinning Playwright's chrome-headless-shell.

Fixed

  • macOS Multi-Origin Headless Crash (mcp_setup.py): Added shallow Playwright cache discovery (find_playwright_headless_shell()) that selects the highest numeric chromium_headless_shell-<rev> binary for the host architecture (skipping symlinks and non-executable files) and automatically appends --executable-path=<chrome-headless-shell> in build_playwright_mcp_entry() on macOS. This avoids system Chrome's --headless --isolated --storage-state crash (Mach rendezvous failed / Target page, context or browser has been closed) when hydrating many LocalStorage origins. Supports PLAYWRIGHT_BROWSERS_PATH and SESSFORK_BROWSER_EXECUTABLE_PATH (including system / none to disable auto-pinning, or an explicit executable path on any OS).
  • MCP Diagnostics & Setup Guidance (mcp_setup.py, cli.py): Added inspect_mcp_headless_shell() and surfaced playwright_headless_shell, pinned/unpinned/stale MCP config status, and actionable macOS/override warnings in sessfork --status (text and --json) and sessfork --setup.

Recovery on macOS

If sessfork-browser previously failed with Target page, context or browser has been closed:

npx -y playwright-core install chromium-headless-shell
sessfork --setup

Then reload sessfork-browser once in your AI editor.

sessfork v0.1.2

Choose a tag to compare

@wasabihu wasabihu released this 19 Nov 00:37

Zero-restart MCP hot reload and one-shot domain refresh.

Added

  • Zero-Restart Hot Reload (state.py, SKILL.md): Atomically mirrors state.json (0600) inside Playwright MCP's 0700 --output-dir (~/.sessfork/playwright-output/.sessfork-state.json) so running sessfork-browser instances can hot-reload updated sessions in-memory via browser_set_storage_state without restarting MCP.
  • One-Shot Refresh (cli.py, state.py): Added -r / --refresh to re-fork all domains currently saved in state.json (plus any newly specified domains) in a single command, powered by list_state_domains() subdomain collapsing.

sessfork v0.1.1

Choose a tag to compare

@wasabihu wasabihu released this 18 Nov 23:39

Security hardening release.

Security

  • Linux In-Memory AES (crypto.py): Replaced openssl enc -K ... subprocess invocation with direct ctypes OpenSSL libcrypto (EVP_*) calls so derived keys never appear in /proc/<pid>/cmdline.
  • Pinned MCP Package (mcp_setup.py): Pinned @playwright/mcp@0.0.85 instead of floating @latest (overridable via SESSFORK_PLAYWRIGHT_MCP_PKG), explicitly enforced 0700 permissions on ~/.sessfork and playwright-output/, and made MCP config writes atomic with 0600 mode for new files.
  • Domain Allowlist & Public Suffix Guards (chrome.py, docs/index.html): Validated hostname characters, rejected bare single-label TLDs (except localhost) and multi-tenant public suffixes (github.io, vercel.app, co.uk, etc.), and hardened the interactive web generator input normalizer.
  • Symlink Guards (chrome.py, localstorage.py): Refused symlinked Cookie SQLite databases and skipped symlinked WAL/SHM sidecars and LevelDB files during snapshot extraction.
  • Installer Hardening (install.sh): Explicitly enforced 0700 on ~/.sessfork, fixed GNU/BSD mktemp template compatibility, and pinned default ref to v0.1.1.

sessfork v0.1.0

Choose a tag to compare

@wasabihu wasabihu released this 18 Nov 15:20

First public release.

Added

  • Lock-free fork of Chromium SQLite Cookies (incl. Chrome 130+ meta.version >= 24) and LevelDB Local Storage into a 0600 Playwright storageState file.
  • Pure-Python LevelDB SSTable/WAL + Snappy reader with MVCC tombstone handling.
  • Auto-wiring of the headless sessfork-browser MCP server (@playwright/mcp --headless --isolated) for Antigravity, Claude Code and Cursor (--target auto), plus SKILL.md installation. Snapshots/screenshots are written to ~/.sessfork/playwright-output/ instead of the agent's current project directory.
  • One-line installer (install.sh) and uvx zero-install usage.
  • --refresh-key, --purge-keys, and opt-in --cache-key for the derived Safe Storage key (cache is off by default).
  • Bilingual documentation (English / 简体中文), SVG diagrams and an interactive guide on GitHub Pages.
  • SECURITY.md with threat model and private reporting channel.