Repository navigation
Covel v0.0.16
[0.0.16] - 2026-07-17
Performance, correctness, and reliability release. Context budgets are now derived from real model capabilities, per-turn history reads are bounded so long sessions stay fast, and a repository-wide six-dimension audit closed a batch of dead code, stale-doc, logging, and cross-backend-consistency gaps. New capability: deferred tool loading (tools.defer) lets runtimes with large tool whitelists keep the prompt small and let the model search tools on demand. Reliability fixes harden the shutdown drain, background-job sweep, event tail-frame delivery, and hosted-tier owner-token enforcement.
Added
- Deferred tool loading (
tools.defer) — a runtime may defer part or all of its tool whitelist; deferred tools stay registered and authorized but are withheld from the initial LLM tool list, and the framework injects asearch-toolstool that ranks the deferred pool with a zero-dependency BM25 (CJK-aware) and activates matches for the rest of the turn. Modeled on openai/codex'stool_search. See docs/reference/tools.md. - Capability-driven context budgets — compaction thresholds and prompt budgets are derived per model from detected token limits, plus per-model USD cost estimation on the debug Cost view.
- Configurable chat window cap (
ui.chatMessageWindow, default 2000) — live message appends are bounded in memory; dropped rows remain re-fetchable via the existing scroll-up path.
Changed
- Bounded per-turn history reads —
loadTurnSessionStateno longer full-reads the wholeturn_messageslog every turn. NewDataStoremethodslistUncompactedTurnMessages,listTurnMessagesAfter(forward keyset), andgetTurnMessageStats(grouped aggregate) keep reads bounded as a session grows; the semantic-memory recall ingestion walks the log by cursor instead of re-reading and re-sorting it. - IndexedDB
deleteSessioncascade now derives fromSESSION_SCOPED_TABLES, matching the SQL/Memory backends — a newly registered session table can no longer silently leak rows on the browser backend. - Removed two zero-caller extension seams — the
findToolClienttool-client resolver and the per-runtimegetConfigFn/ctx.config/{{ config.* }}chain (always empty in production) were deleted end to end. - Framework/plugin isolation and docs — removed a write-only
blockSchemaschain, retired an unread env-registry entry, closed authoring-contract drift, and synced all reference/guide docs to the current architecture.
Fixed
- SSRF self-tier core-provider path — the DNS-pinning guard rejected provider hosts on machines running a TUN proxy (Clash/mihomo/sing-box/Surge fake-IP maps every domain into a private/benchmark range) or a LAN Ollama endpoint. The
selftier now accepts any resolver answer on the user's own configuredbaseUrl(socket still pinned); pluginctx.http, IP-literal URLs, and hosted tiers stay strict. - Settings persistence on the REST-desktop tier — self-host setups without the Electron IPC bridge now persist settings to
~/.covel/settings.jsoninstead of silently falling back tolocalStorage; the settings REST backend surfaces failed writes instead of swallowing them. - Plugin-panel re-render storm — plugin-data store snapshots are scoped per
(pluginId, namespace), so an unrelated plugin's data write no longer re-renders every active panel. - Malformed JSON bodies now return
400 invalid_json_bodyinstead of a generic 500 across ~13 API routes (sharedreadJsonBodyhelper). - Shutdown drain flushes in-flight turns before closing the store; background-job sweep periodically reclaims orphaned pending jobs; event delivery detects lost tail frames via a transport heartbeat.
- Hosted-tier auth hardening — owner-token hash stripped from responses, event injection gated, owner guard enforced on the resume
DELETEsuspension route; desktop IPC sender-origin checks extended to the remaining channels. - Observability & logging — turn-executor and shutdown paths keep error stacks instead of
err.messageonly, the Data Explorer and model-db refresh catch paths log, and[component]prefixes are consistent.
What's Changed
- Post-v0.0.15 audit remediation (2 High, 2 Medium, Lows) by @ackness in #22
- v0.0.16 (WIP): capability-driven context budgets, cost estimation, legacy cleanup, docs sync by @ackness in #23
Full Changelog: v0.0.15...v0.0.16