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
$schemaif present, and removebuiltin:rag/+builtin:rag/-builtin:ragfromextensions. - Project
.vela/config.jsonfiles cannot override host-owned keys (providers,lark,webhooks,environments,location,eventDefaultTarget), and top-levellocalis retired and rejected across all configs. - After merging into
config.json, archive or deletesettings.json,models.json, andmcp.jsonso Vela stops treating the directory as un-migrated (or keepconfig.jsonalongside 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.jsonwith0600permissions 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 removeextensionConfig.local, which was retired in v0.9).- Hoist
extensionConfig.channel.eventReceiver→webhooks, andextensionConfig.channel.eventDefaultTarget→eventDefaultTarget.- Merge
extensionConfig.mcp.mcpServersandmcp.json’smcpServersinto top-levelmcpServers.- Hoist
models.json’sprovidersto top-levelproviders.- Update any
toolsentries fromread_file,write_file,edit_file,list_directorytoread,write,edit,ls.- Drop retired keys:
$schema,builtin:ragentries inextensions,bashForegroundTimeoutSeconds,bashForegroundTimeoutMaxSeconds,limits.microcompactThreshold, andlimits.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()andparentToolCallIdare 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 andread-before-writeguard errors are removed. - Implicit bash backgrounding & shell fallback: Automatic backgrounding of slow foreground commands and
shell_unavailabletool-set mutations are removed. Foregroundbashenforces its explicittimeout(default120s, max1800s) withSIGTERM→SIGKILL; passrun_in_background: true(or pressCtrl+Bin 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/.usageCWD 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
.jsonltranscripts intovela.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), orvela --export <id> [output](writes HTML by default, or JSONL whenoutputends with.jsonl) directly againstvela.db. - In-memory runs: Pass
--no-session(CLI) orcreateRuntime({ ephemeral: true })/createRuntime({ ephemeralSessions: true })(SDK) for:memory:SQLite storage.CreateRuntimeOptions.dbis@internal; useagentDirto share persistent storage cleanly across restarts. - Project trust (
trusted_paths):~/.vela/trust.jsonis retired in v0.9 with zero fallback. Saved project trust decisions live in$VELA_DIR/vela.db(~/.vela/vela.db, tabletrusted_paths)—rather than per-project databases—for both local paths and non-local container workspaces (env:<encodedOwnerDataDir>:<encodedName>:<posixCwd>, or unscoped SDKenv:<encodedName>:<posixCwd>). Pass--approveor re-confirm interactively on first use. - Structured
logout()&@internalSessionScope:vela.logout(provider, { signal?, forget? })now returnsPromise<LogoutResult>({ removed, forgotten?, notice? }) instead ofPromise<boolean>with anonNoticecallback, and CLI/logout [provider] [--forget]clears saved ChatGPT OAuth client registration when--forgetis set.SessionScopeandsession.scopeare marked@internaland removed from@glows777/velaand@glows777/vela/extension-api.
5. Resident Daemon (vela daemon) & Thin CLI
- Single-writer daemon (
vela daemon):velaCLI now connects over IPC to a per-agentDirbackground daemon (vela daemon start|stop|status|run, auto-started when needed,--agent-dir <dir>to override$VELA_DIR, or--no-sessionfor an isolated ephemeral in-memory runtime). vela serveand--mode rpcretired: Both now fail fast with exit code2; manage the daemon withvela daemonor integrate programmatically viaconnectRuntime().--mode jsonemits v0.9 events:--mode jsonnow prints v0.9RuntimeEventandStreamDeltaEventJSONL 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 legacylocalHTTP/SSE channel (local()), top-level"local"inconfig.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"fromconfig.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/velaalso re-exports theVelaExtensiontype only forCreateRuntimeOptions.extensions). agentErrorHint&failureHintcleanup:agentErrorHintandfailureHintare removed from both@glows777/velaand@glows777/vela/extension-api.- Docker & group workspace verification (
<projectDataDir>→<VELA_DIR>): Group workspaces andvela.dblive under$VELA_DIRrather 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, restartvela daemon, and read the marker file again to confirm persistence across restarts.