caelum0x 7ace1e2219 fix: validate sessionId and image mime type before building artifact paths
sessions:save-images and sessions:save-large-text (main/src/ipc/session.ts)
joined the caller-supplied sessionId directly into a filesystem path
(CRYSTAL_DIR/artifacts/<sessionId>) with no validation, and derived the
saved image's file extension directly from the caller-supplied MIME
`type` string. A sessionId like `pending_../../../../etc` or a type like
`image/../../../../tmp/x` let the resulting path escape the intended
artifacts directory entirely, allowing arbitrary-content file writes
anywhere the Electron main process can write.

Add main/src/utils/artifactPathSafety.ts with isSafeSessionId (rejects
anything but a plain id, matching both real crypto.randomUUID() session
ids and the renderer's `pending_<ts>_<rand>` ids) and
getSafeImageExtension (allow-list mapping from MIME type to extension,
defaulting to png), and use both in the two handlers before any path is
built. RED confirmed by temporarily short-circuiting isSafeSessionId to
always return true (3 tests failed); reverted and GREEN confirmed
(10/10 new tests pass). tsc --noEmit and eslint clean (0 new
errors/warnings). Full existing main test suite has 19 pre-existing
failures unrelated to this change (confirmed identical on a clean stash
of origin/main before this fix).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-21 04:04:01 +03:00
2025-10-11 12:43:09 -04:00
2026-02-26 16:44:09 -05:00
2025-06-17 11:05:25 -04:00
2026-02-26 16:44:09 -05:00
2025-09-28 12:44:53 -04:00
2025-06-12 11:54:26 -04:00
2026-02-26 16:44:09 -05:00
2025-10-13 14:58:12 -04:00
2025-07-28 15:19:30 -04:00
2025-06-12 11:54:26 -04:00
2025-11-20 09:51:12 -05:00
2026-02-26 16:44:09 -05:00
2025-11-20 09:51:12 -05:00

Crystal Is Now Nimbalyst

Crystal (formerly a multi-session AI code assistant manager) has been deprecated and replaced by Nimbalyst.

Deprecated: February 2026.

Migration

Nimbalyst Features

  • AI-native workspace for human + AI collaboration
  • AI agents that stream edits directly into open editors in real time
  • Multi-editor environment for code, markdown, spreadsheets, diagrams, and visual docs
  • Extension-first architecture for custom editor/file-type support
  • Local-first file model using open formats like Markdown, JSON, and CSV
  • Code-aware agent orchestration for implementation planning and task execution
  • Git worktree isolation for safer parallel AI coding sessions
  • Rich markdown editing with tables, code blocks, embeds, and formatting tools
  • Monaco-based code editing experience for programming workflows
  • RevoGrid-powered spreadsheet editing for CSV and tabular workflows
  • Excalidraw integration for diagram and whiteboard workflows
  • Visual data modeling tools for schema-centric work
  • Visual mockup editing for interface ideation and iteration
  • Unified editor lifecycle with consistent AI integration across editor types
  • Auto-save and file watching for reliable local development workflows
  • Project-level workspace management and AI session tracking
  • Built on production-grade desktop foundations with Electron

FAQ

  • Is Crystal discontinued? Yes. Crystal is deprecated and replaced by Nimbalyst.
  • Can I still use Crystal? Yes. You can continue using Crystal, but we recommend moving to Nimbalyst for active updates.
  • Where is Nimbalyst? https://nimbalyst.com/

For downloads, documentation, and updates, go to https://nimbalyst.com/.

Description
(Crystal is now Nimbalyst) Run multiple Codex and Claude Code AI sessions in parallel git worktrees. Test, compare approaches & manage AI-assisted development workflows in one desktop app.
Readme MIT 16 MiB
Languages
TypeScript 96.8%
JavaScript 1.6%
CSS 1.4%
Shell 0.2%