VELADocsvelab.si ↗

Upgrading to Vela v0.9

Vela v0.9 simplifies configuration, aligns core tool names with pi, and removes implicit engine workarounds. Follow this guide when moving from v0.8.

1. Unified config.json

Vela v0.9 uses a single <agentDir>/config.json (plus trusted <cwd>/.vela/config.json) instead of separate settings.json, models.json, and mcp.json files. Startup fails fast when any legacy config file exists without config.json.

Key Mapping (v0.8 → v0.9)

Legacy File & Key config.json Key
settings.json → defaultModel model
settings.json → defaultThinkingLevel thinkingLevel
settings.json → defaultTools tools
settings.json → extensionConfig.lark lark
settings.json → extensionConfig.web web
settings.json → extensionConfig.memory memory
settings.json → extensionConfig.local (removed — delete "local")
settings.json → extensionConfig.channel.eventReceiver webhooks
settings.json → extensionConfig.channel.eventDefaultTarget eventDefaultTarget
settings.json → extensionConfig.mcp.mcpServers mcpServers
models.json → providers providers
mcp.json → mcpServers mcpServers

Notes:

  • Remove $schema if present, and remove builtin:rag / +builtin:rag / -builtin:rag from extensions.
  • Project .vela/config.json files cannot override host-owned keys (providers, lark, webhooks, environments, location, eventDefaultTarget), and top-level local is retired and rejected across all configs.
  • After merging into config.json, archive or delete settings.json, models.json, and mcp.json so Vela stops treating the directory as un-migrated (or keep config.json alongside them).

Prompt to Migrate With an AI Assistant

Paste this prompt into an AI coding assistant if you want it to convert your ~/.vela directory:

Inspect ~/.vela/settings.json, ~/.vela/models.json, and ~/.vela/mcp.json (whichever exist) and create ~/.vela/config.json with 0600 permissions using Vela v0.9 flat keys:

  • Rename defaultModel → model, defaultThinkingLevel → thinkingLevel, defaultTools → tools.
  • Hoist extensionConfig.{lark,web,memory} to top-level {lark,web,memory} (and remove extensionConfig.local, which was retired in v0.9).
  • Hoist extensionConfig.channel.eventReceiver → webhooks, and extensionConfig.channel.eventDefaultTarget → eventDefaultTarget.
  • Merge extensionConfig.mcp.mcpServers and mcp.json’s mcpServers into top-level mcpServers.
  • Hoist models.json’s providers to top-level providers.
  • Update any tools entries from read_file, write_file, edit_file, list_directory to read, write, edit, ls.
  • Drop retired keys: $schema, builtin:rag entries in extensions, bashForegroundTimeoutSeconds, bashForegroundTimeoutMaxSeconds, limits.microcompactThreshold, and limits.minMicroSavings. Do not delete or overwrite existing secrets; keep backups of the old files before removing them.

2. Core Tool Renames

Four core built-in tool names match pi with zero runtime aliases:

v0.8 Name v0.9 Name
read_file read
write_file write
edit_file edit
list_directory ls

Update any --tools flags, config.json tools lists (for example +ls instead of +list_directory), extension tool_call / tool_result hooks, and custom instructions that name these tools.

3. Removed Features & Settings

  • Nested tool execution: ctx.executeTool() and parentToolCallId are removed from the extension/tool execution API.
  • Microcompaction: limits.microcompactThreshold, limits.minMicroSavings, ContextEditEntry, and 'micro' compaction events are removed; compaction runs cleanly via turn-boundary / overflow summarization.
  • Heuristic loop detection & file write guard: loop_detected / 'loop' stop reasons and read-before-write guard errors are removed.
  • Implicit bash backgrounding & shell fallback: Automatic backgrounding of slow foreground commands and shell_unavailable tool-set mutations are removed. Foreground bash enforces its explicit timeout (default 120s, max 1800s) with SIGTERM → SIGKILL; pass run_in_background: true (or press Ctrl+B in the TUI) when you want a background job.
  • Removed config keys: bashForegroundTimeoutSeconds, bashForegroundTimeoutMaxSeconds, limits.microcompactThreshold, limits.minMicroSavings.
  • Execution environment access: Tools that need command execution or environment file access call ctx.requireEnv() on demand instead of assuming an eager environment on every tool call.
  • Normalizers & CLI hints: Legacy content part tags (reasoning, tool-call, tool-result, image-data, image-file-reference) and .sessions/.memory/.usage CWD move hints are removed from runtime message normalization and CLI startup.

4. SQLite Session Storage (vela.db)

Vela v0.9 stores sessions, messages, tool call states, runs, approvals, project trust (trusted_paths), OAuth client registrations (oauth_registrations), and token usage in SQLite (vela.db, schema version 1) instead of per-session .jsonl transcript files, ~/.vela/trust.json, or usage/requests.jsonl. The CLI consolidates persistent state in $VELA_DIR/vela.db (~/.vela/vela.db), while SDK callers of createRuntime({ agentDir }) persist in <agentDir>/vela.db:

  • Clean break: v0.9 does not automatically import v0.8 .jsonl transcripts into vela.db. Back up or export older conversations before upgrading if you need to keep an archive.
  • Exporting branches: Use /export [path], runtime.sessions.export(id, 'html' | 'jsonl', path), or vela --export <id> [output] (writes HTML by default, or JSONL when output ends with .jsonl) directly against vela.db.
  • In-memory runs: Pass --no-session (CLI) or createRuntime({ ephemeral: true }) / createRuntime({ ephemeralSessions: true }) (SDK) for :memory: SQLite storage. CreateRuntimeOptions.db is @internal; use agentDir to share persistent storage cleanly across restarts.
  • Project trust (trusted_paths): ~/.vela/trust.json is retired in v0.9 with zero fallback. Saved project trust decisions live in $VELA_DIR/vela.db (~/.vela/vela.db, table trusted_paths)—rather than per-project databases—for both local paths and non-local container workspaces (env:<encodedOwnerDataDir>:<encodedName>:<posixCwd>, or unscoped SDK env:<encodedName>:<posixCwd>). Pass --approve or re-confirm interactively on first use.
  • Structured logout() & @internal SessionScope: vela.logout(provider, { signal?, forget? }) now returns Promise<LogoutResult> ({ removed, forgotten?, notice? }) instead of Promise<boolean> with an onNotice callback, and CLI /logout [provider] [--forget] clears saved ChatGPT OAuth client registration when --forget is set. SessionScope and session.scope are marked @internal and removed from @glows777/vela and @glows777/vela/extension-api.

5. Resident Daemon (vela daemon) & Thin CLI

  • Single-writer daemon (vela daemon): vela CLI now connects over IPC to a per-agentDir background daemon (vela daemon start|stop|status|run, auto-started when needed, --agent-dir <dir> to override $VELA_DIR, or --no-session for an isolated ephemeral in-memory runtime).
  • vela serve and --mode rpc retired: Both now fail fast with exit code 2; manage the daemon with vela daemon or integrate programmatically via connectRuntime().
  • --mode json emits v0.9 events: --mode json now prints v0.9 RuntimeEvent and StreamDeltaEvent JSONL records directly from the runtime event bus; see JSON mode.

6. Channel Daemon Cutover & Retired Legacy Channel APIs

  • Legacy channel gateway, ./legacy-desktop, and root SDK convergence: src/legacy-channels/, @glows777/vela/legacy-desktop (legacy-desktop), the legacy local HTTP/SSE channel (local()), top-level "local" in config.json, createVela(), VelaSession, createChannelVela(), startChannels(), channels(), channel(), runningChannels(), channelIdleMs, publishEvent(), publishChannelEvent(), SessionScope, SessionHost, ChannelDefinition / ChannelRuntime, retired built-in factories (web, webConfig, mcp, mcpConfig, memory, todo, background), and internal/private helpers (saveLarkSection, saveModelSetup, usableModel, inspectVela, inspectSession) are removed from @glows777/vela. Remove "local" from config.json, integrate hosts with the 18-symbol root API (createRuntime(), connectRuntime(), createLarkChannelAdapter()), and import extension authoring types (ExtensionAPI, ExtensionSession, VelaExtension) and helpers (createJsonSchema, defineJsonSchemaTool, ToolExecutionResult, SpilledToolOutput) from @glows777/vela/extension-api (@glows777/vela also re-exports the VelaExtension type only for CreateRuntimeOptions.extensions).
  • agentErrorHint & failureHint cleanup: agentErrorHint and failureHint are removed from both @glows777/vela and @glows777/vela/extension-api.
  • Docker & group workspace verification (<projectDataDir> → <VELA_DIR>): Group workspaces and vela.db live under $VELA_DIR rather than per-project data directories, and changing host data dir or Docker environment name changes the mounted /workspace. Migrate existing group workspace files into $VELA_DIR, read a marker file in the test group, restart vela daemon, and read the marker file again to confirm persistence across restarts.