Repository navigation
v2.5.0
·
142 commits
to main
since this release
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, andcanvas_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.jsonmanifest 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_fileswhen 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@v3andplatforms: linux/amd64,linux/arm64to the build step.
Backup Export Robustness
- Replaced the fragile
unwrap()helper inlib/api/backup.tswith a defensiveparseJson()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 1error 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 tocontext_windowfor proxy re-maps. - Added explanatory help text in the Anthropic provider form clarifying that identity-linked (workspace-scoped) API keys require an
anthropic-workspace-idheader 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_tokensas 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.