Skip to content

v2.5.0

Choose a tag to compare

@Houloude9IOfficial Houloude9IOfficial released this 29 Aug 12:00
· 142 commits to main since this release
f8e41c7

Overview

RemiAI v2.5.0 introduces the Canvas feature — an interactive, multi-file web project panel with live preview and code editor — alongside Docker multi-architecture builds, backup export robustness, and Anthropic provider discovery fixes.

This release contains 4 commits since the v2.4.0 release branch. No database migrations are required.

Highlights

Canvas — Interactive Web Projects

  • New Canvas system lets the AI create, manage, and present self-contained multi-file web projects (HTML/CSS/JS) inside an interactive panel with live preview and a built-in CodeMirror code editor.
  • Four new tools: canvas_create, canvas_add_file, canvas_list, and canvas_open.
  • Canvases live in the conversation's session sandbox under canvas/{slug}/, inheriting all existing session-file infrastructure (MIME serving, real-time SSE change stream, backup/export).
  • A canvas.json manifest records name, description, and entry file — no new DB table needed.
  • Canvas tools are loaded on demand via the intent classifier (keywords: "interactive", "website", "game", "calculator", "prototype", etc.) and automatically activate session_files when triggered.
  • New UI components: CanvasPanel.tsx (full editor + preview), CanvasPresentCard.tsx (inline result card with auto-open), and canvas-specific CSP/X-Frame-Options headers for safe iframe preview.
  • Canvas download route for exporting canvas files.
  • Canvas test script (scripts/test-canvas.ts).

Docker Multi-Architecture Builds

  • The Docker release workflow (.github/workflows/docker-release.yml) now builds for both AMD64 and ARM64 via QEMU + Buildx.
  • Added docker/setup-qemu-action@v3 and platforms: linux/amd64,linux/arm64 to the build step.

Backup Export Robustness

  • Replaced the fragile unwrap() helper in lib/api/backup.ts with a defensive parseJson() that reads the response body as text first, attempts JSON parsing, and produces clear, actionable error messages when the server returns non-JSON (e.g. HTML error pages from proxies or load balancers).
  • Fixes the cryptic JSON.parse: unexpected character at line 1 column 1 error some deployments encountered during backup export/import.

Anthropic Provider Discovery Fix

  • Fixed Anthropic model discovery to use max_input_tokens (Anthropic's actual API field) as the primary source for context-window size, falling back to context_window for proxy re-maps.
  • Added explanatory help text in the Anthropic provider form clarifying that identity-linked (workspace-scoped) API keys require an anthropic-workspace-id header and won't return models — directing users to create a fresh "unlinked" key.

Changelog

Added

  • Canvas feature: interactive multi-file web projects with live preview + code editor panel.
  • Canvas tools: canvas_create, canvas_add_file, canvas_list, canvas_open.
  • Canvas storage layer built on session-file sandbox (canvas/{slug}/).
  • Canvas present card with auto-open behavior.
  • Canvas download route.
  • Canvas API endpoint (GET /api/canvases).
  • Canvas-specific CSP and X-Frame-Options headers for safe iframe preview.
  • Canvas intent classifier group with keyword matching.
  • Canvas test script (scripts/test-canvas.ts).
  • Docker multi-architecture builds (AMD64 + ARM64).

Changed

  • Backup API client uses defensive JSON parsing with clear error messages for non-JSON responses.
  • Anthropic model discovery reads max_input_tokens as primary context-window field.
  • Refresh error message when auto-discovery is unavailable now says "models unchanged" instead of "no default models exist".

Fixed

  • Anthropic models not showing up due to incorrect context-window field mapping.
  • Backup export/import crashing with cryptic JSON parse errors on deployments with proxies or non-JSON error responses.
  • Anthropic identity-linked (workspace-scoped) API keys silently returning no models — now documented in the provider form.