Repository navigation
Releases
Releases · ZengLiangYi/ChatCrystal
ChatCrystal v0.7.1
Security
- Updated Electron to 44.9.1 and forced patched transitive versions of
body-parser(2.4.0),follow-redirects(1.16.2+), andjoi(18.3.1+) through pnpm overrides, clearing the high-severity advisories that blocked the 0.7.0 npm publish.pnpm security:auditnow reports 0 high/critical findings.
ChatCrystal v0.7.0
Import & Sync
- Index-first import. Every scanned conversation file becomes a
conversationsrow (transcript_status = 'pending') as soon as its source scan completes, before any transcript is parsed, so a fresh sync fills the conversation list almost immediately instead of waiting for all parsing. The import loop materializes each transcript and flips the row to'materialized'; if a sync is cancelled or interrupted, the pending rows can be materialized on demand by opening the conversation (or by the summarizer). The list shows a small "indexing" marker until then. - Parsed-transcript cache. Materialized
ParsedConversationsnapshots are stored as gzip JSON under<dataDir>/transcript-cache/<source>/<sha1>.json.gz(keyed by source/id/parser version/file path/size/mtime/rootDir, 512 MB/30-day caps,CHATCRYSTAL_TRANSCRIPT_CACHE*variables). Both the import loop and lazy materialization read it first, so a DB reset or an interrupted sync does not have to parse the same file again. - Background sync replaces the manual import step. A startup pass runs a few seconds after launch and the file watcher triggers targeted per-source passes when agent session files change. The sidebar shows a persistent sync state (waiting / syncing with progress / last synced) instead of a one-shot import button with a 5-second toast, and the conversation list refreshes while a pass runs. New endpoints:
GET /api/sync/status,POST /api/sync/start,POST /api/sync/cancel,GET /api/sync/stream(SSE). importAll()now reports phases (detecting→scanning→importing), per-source counters and error details, accepts asourcesfilter and anAbortSignal, and is still callable with the old progress-callback signature. The SSE import route acceptssources, sends heartbeats and aborts the pass when the client disconnects.- Conversation parsing runs in a worker-thread pool (
CHATCRYSTAL_PARSE_WORKERS, defaultmin(4, CPUs-1);0orCHATCRYSTAL_PARSE_POOL=offparses in-process). The Node test runner keeps parsing inline because tests register fake adapters in-process. - Persistence moved from sql.js (WASM SQLite, whole-database snapshot every 30s) to Node.js 24's built-in
node:sqlitewith WAL.saveDatabase()is now a WAL checkpoint, existingchatcrystal.dbfiles open directly, and parser-side SQLite readers (Cursor, Trae, OpenCode, ZCode, Goose, Hermes, Alma) keep using sql.js for their own databases. - The desktop app enables background sync and the watcher (
CHATCRYSTAL_AUTO_SYNC=0opts out). The watcher only starts after the first sync pass so chokidar's initial scan cannot starve it, events are debounced for 1.8s, and each changed path is mapped to its owning source. WorkBuddy now watches<home>/projectsinstead of the whole home (its plugin marketplaces hold tens of thousands of files), and chokidar skipsnode_modules/.git/.cache.
Desktop
- Fixed the packaged Windows app opening a blank onboarding window on a fresh install: Vite emitted absolute
/assets/...URLs for the onboarding page, which resolve to the drive root when the page is loaded from inside the ASAR viafile://. The client build now rewrites the onboarding entry's asset URLs to relative paths (client/scripts/rewrite-onboarding-assets.mjs). - Fixed packaged onboarding buttons failing with
Rejected onboarding IPC from unexpected origin:file://frames report their origin asfile://(ornull), whilenew URL(fileUrl).originisnull. The IPC guard now accepts the file-origin spellings for file URLs while still requiring the exact onboarding document URL.
Website
- Added official logos for all 32 agent harnesses to the site's integrations strip.
- Replaced the static logo row with an animated React Bits
LogoLoopmarquee, flattened its sticky/rounded layout, and deduplicated shared brand marks (for example the GitHub Copilot variants) so each brand appears once.
Sources
- Added 13 conversation-source adapters, so ChatCrystal now imports local history from 18 AI coding agents: Gemini CLI, Qwen Code, OpenCode, Cline, Roo Code, Kilo Code, GitHub Copilot CLI, Continue, DeepSeek Harness, WorkBuddy, Antigravity, Factory Droid, and Goose.
- Added 14 more conversation-source adapters to match and exceed magpie's 26 session readers, taking the total to 32 sources: Claude Desktop (Cowork/local-agent sessions), Pi, omp, Raft, Cindy, Qoder, Qoder CN, CodeBuddy, ZCode (OpenCode schema), Hermes, Alma, Grok Build, Kimi Code, and MiniMax Code.
- WSL support (Windows): file-based adapters now read the same agents installed inside WSL distros through
\\wsl.localhost, plus VS Code Remote Copilot Chat / Cline / Roo Code / Kilo Code sessions from~/.vscode-server. Running distros are scanned by default; a stopped distro is never started just to import.CHATCRYSTAL_WSL=0disables discovery,CHATCRYSTAL_WSL_DISTROSopts distros in, andCHATCRYSTAL_WSL_HOMESforces homes (also the test hook). - Added multi-frame zstd decoding for DeepSeek Harness session logs (
parser/zstd.ts) and reused it for zstd-compressed Codex rollouts (.jsonl.zst). - Codex imports now include
archived_sessions/, and resumed rollouts no longer collide on the shared thread id (codex@2parser version). - Codex parsing now also understands the
event_msg/item_completedconversation format used by Codex 0.160+ (codex@4), the format WSL Codex installs write: user and assistant turns are read fromUserMessage/AgentMessageitems, and tool items mark the preceding reply as tool-using. - Antigravity reading also covers the Antigravity CLI layout (
~/.gemini/antigravity-cli), locally and inside WSL. - Extended
ALL_SOURCE_NAMESso existingconfig.jsonfiles automatically opt into the new sources, remote import accepts them, and memory writeback maps them to source agents. - Reworked the watcher to collect watch targets from every adapter (
watchPaths()) and to reduce globs to their static directory, which chokidar v4+ requires. - Per-source directories and storage roots are overridable with environment variables (see
.env.example).
ChatCrystal v0.6.1
Runtime & Dependencies
- Updated React and React DOM to 19.3.0 and Electron to 44.3.0.
- Updated AI SDK 7 and its Anthropic, Azure, Google, and OpenAI providers, Fastify to 5.12.3, and Zod to 4.6.2.
- Refreshed i18next, Lucide icons, Vite, lint tooling, and TypeScript declarations; kept Node.js types aligned with the supported Node.js 24 runtime.
Build & Release
- Updated GitHub Actions for checkout, Node.js and pnpm setup, caching, Pages artifacts, Docker builds and publishing, and GitHub Releases.
ChatCrystal v0.6.0
Runtime & Dependencies
- Raised the supported runtime and CI/Docker baseline to Node.js 24 and completed the major migrations to Vercel AI SDK 7, React 19, Vite 8, Tailwind CSS 4, Electron 44, and the current Fastify 5 line.
- Moved the root/server/client/shared/Electron dependency graph from npm workspaces to pnpm 11 with a single lockfile; the standalone
site/andpromo/projects remain on npm. - Declared the embedded server as an explicit desktop workspace dependency and gave the private root package a distinct name, allowing electron-builder to collect the complete production runtime graph.
- Selected mature previous patch releases for six newly published packages whose newest fixes do not affect ChatCrystal, while retaining Fastify 5.12.2 because it contains request-validation security fixes.
- Updated provider integrations for AI SDK 7, including structured output and embedding contracts, while keeping OpenAI-compatible providers on their intended protocol paths.
- Switched Ollama structured output to its broadly compatible chat-completions endpoint, migrated all MCP tools to the current registration API, and updated queue configuration for the current p-queue API.
Supply-chain Security
- Replaced Electron's vulnerable legacy
extract-zippath with Electron 44's@electron-internal/extract-zipimplementation. - Added a 24-hour package-release cooling period, recent-package trust downgrade protection, exotic-subdependency blocking, and an explicit lifecycle-script allowlist.
- Added high/critical vulnerability enforcement, registry signature verification, a scheduled dependency-security workflow, and weekly Dependabot updates for workspace packages and GitHub Actions.
Build & Release
- Migrated Docker, GitHub Actions, Electron packaging, npm publishing, MCP registry publishing, and release scripts to the pnpm workspace and frozen lockfile workflow.
- Hardened manual release inputs with SemVer and tag validation, kept npm package metadata synchronized during manual version overrides, and added compiled MCP artifact smoke tests to npm and Electron release jobs.
- Corrected frontend build-tool classification and declared the server's React type dependency explicitly so clean Docker builds no longer depend on an existing local install layout.
Quality
- Expanded the root test command to cover server, client, Electron, and dependency-audit policy suites by default.
- Added protocol-level regression coverage for AI SDK 7 providers, Ollama structured output, embeddings, and the MCP tool surface.
- Verified clean production builds, Electron compilation and packaging, npm package contents, Docker CLI/container smoke tests, and all 264 automated tests.
ChatCrystal v0.5.4
OrcaRouter
- Added OrcaRouter as a first-class LLM provider with its OpenAI-compatible API endpoint built in.
- Enabled authenticated OrcaRouter model discovery through the searchable model picker in Settings.
- Added a direct API-key link and bilingual setup documentation for OrcaRouter.
Settings
- Changed connection tests to use the provider, model, Base URL, and API keys currently entered in the form without saving them first.
- Trimmed draft API keys before testing, preventing copied whitespace or stale saved credentials from causing misleading authentication failures.
- Added regression coverage for OrcaRouter generation, model discovery, Settings integration, and request-scoped connection tests.
ChatCrystal v0.5.3
Settings Model Discovery
- Added model-list discovery to the local Settings page for both LLM and Embedding configuration.
- Added a searchable fetched-model picker while keeping the model field manually editable.
- Added provider discovery support for Ollama, OpenAI-compatible endpoints, OpenAI, Anthropic, Google, and Custom providers; Azure returns an unsupported-provider message in this first version.
- Added
POST /api/config/modelsso the server fetches model lists with saved or newly entered provider credentials instead of exposing third-party API keys to the browser. - Marked cloud mode as unsupported for model discovery and surfaced the limitation in Settings.
- Added local browser-origin checks for model discovery proxying, plus structured errors for missing credentials, endpoint failures, auth failures, timeouts, and parse failures.
- Added regression coverage for model discovery services, routes, client API normalization, Settings wiring, and i18n copy.
ChatCrystal v0.5.2
Markdown Export
- Added single-note Markdown export from the note detail page for readable backup and sharing.
- Exported notes now use minimal frontmatter with title, optional tags, optional source type, and local export time only.
- Localized exported Markdown section headings so Simplified Chinese and English UI modes generate matching document labels.
- Added a shared Markdown export helper with filename sanitization, safe YAML values, and robust code fence handling.
- Reused shadcn/ui Button primitives for note detail actions and added shadcn/sonner-based export failure feedback.
- Added regression coverage for Markdown generation, localized export labels, i18n coverage, and note detail UI wiring.
ChatCrystal v0.5.1
Desktop Updates
- Added a manual Electron update check backed by GitHub Releases, with support for
v*andelectron-v*release tags. - Added update entry points in the tray menu and Settings page while keeping the application menu unchanged.
- Reused the existing bottom prompt area so available-update copy can replace the GitHub Star prompt without adding another banner.
- Kept automatic update checks non-disruptive: failures stay silent, while manual failures show a release-page fallback.
- Added persisted update reminder and skipped-version state so users can defer or skip a version without repeated prompts.
ChatCrystal v0.5.0
Knowledge Graph
- Tag knowledge graph - Rebuilt the default graph experience around tags as knowledge-point nodes, with normalized co-occurrence edges so the graph remains useful without explicit note-relation analysis.
- Scalable graph projection - Added
/api/graph/projectionas a bounded render-ready graph API, while keeping the legacy note relation graph API for compatibility. - Sigma graph engine - Migrated the graph canvas from
react-force-graph-2dto Sigma.js and Graphology for a stronger foundation as note collections grow. - Knowledge-point details - Clicking a tag now opens a right-side detail panel with related notes, project metadata, and direct note navigation.
- Graph readability polish - Refined light/dark theme contrast, label rendering, hover cards, zoom controls, neighborhood highlighting, and lower-left graph controls for a clearer workspace.
Documentation
- Updated README screenshots, user guides, and development docs to describe the tag-based knowledge graph and the graph projection API.
ChatCrystal v0.4.21
Desktop & Cloud
- Improved Electron cloud connection diagnostics so network-level failures explain invalid
0.0.0.0client addresses and Windows Docker Desktop host/LAN port caveats instead of surfacing rawTypeError: fetch failed. - Moved Electron cloud local-history upload into a worker process so scanning and uploading local AI histories no longer blocks the Electron main process.
- Added an Electron cloud-mode sidebar action for uploading local histories directly from the desktop app without showing CLI instructions.
- Unified the Electron default and minimum window size at
1280x800so reconnect/onboarding layouts do not reopen in a too-narrow saved window. - Changed the Docker Compose cloud binding default to
0.0.0.0while documenting when to use loopback behind a local reverse proxy. - Documented Windows Docker Desktop host-port caveats for LAN IP testing of Docker cloud deployments.
Search & Demo
- Reduced misleading semantic-search confidence by filtering weak vector hits that miss required query terms and promoting strong lexical matches above weak vector neighbors.
- Relabeled search result percentages as relevance and refreshed demo screenshots with the current UI.
- Made demo seeding clear the demo vector index so screenshot/demo data does not reuse stale semantic-search results.