Skip to content

v0.1.4

Choose a tag to compare

@Dicklesworthstone Dicklesworthstone released this 20 Feb 05:59
· 5271 commits to main since this release

v0.1.4

Security Hardening

  • Path traversal prevention: safe_canonicalize() handles non-existent paths via logical normalization with symlink-aware ancestor resolution; module resolution enforces scope monotonicity within extension roots
  • Command obfuscation normalization: new normalize_command_for_classification() strips shell obfuscation techniques (${ifs}, backslash-escaped whitespace) before dangerous command classification
  • OOM guards: depth limits on recursive JSON hashing (128), MAX_MODULE_SOURCE_BYTES (1GB), MAX_JOBS_PER_TICK (10,000), SSE buffer limits (10MB total, 100MB per-event)
  • Fast-lane policy enforcement: extension dispatcher fast-lane now runs capability policy checks before executing hostcalls
  • Atomic file permissions: auth storage and Anthropic device ID files use OpenOptions::mode(0o600) instead of post-hoc chmod

Provider Improvements

  • Zero-copy OpenAI serialization: request types use lifetime-parameterized borrows instead of owned Strings
  • Empty base URL handling: all normalize_*_base functions now return canonical defaults for empty/whitespace input
  • Gemini/Vertex robustness: Unknown part types (executableCode, etc.) are silently skipped instead of causing deserialization failures; ThinkingEnd events now emitted for open thinking blocks

Agent Loop & RPC

  • Multi-source message fetchers: steering and follow-up fetchers are now Vec-based with additive registration, enabling RPC + extensions to both queue messages
  • Queue bounds: MAX_RPC_PENDING_MESSAGES (128), MAX_UI_PENDING_REQUESTS (64) prevent OOM
  • Error persistence fix: max_tool_iterations error now synced to in-memory transcript

Session Persistence

  • Batched index updates: group by sessions_root for amortized DB access
  • RawValue frames: session store v2 uses Box to avoid re-serializing payloads
  • Partial hydration tracking: v2_message_count_offset for tail-mode session loading

Tools

  • Correct truncation semantics: trailing newline no longer inflates line count ("a\n" = 1 line, not 2)
  • DoS guard: BASH_FILE_LIMIT_BYTES (100MB) prevents unbounded output reads

Hostcall System

  • Log-sinking batch planner: preserves global request ordering with log-call buffering
  • Generation-keyed ghost cache: O(log n) ghost operations replacing O(n) VecDeque scans
  • FIFO scheduler: VecDeque replaces BinaryHeap for monotone-sequence macrotask queue

Installer

  • Remove auto-hook installation: pre-tool hooks for Claude Code/Gemini CLI no longer auto-injected
  • Legacy cleanup: idempotent removal of installer-managed hook entries from prior versions

Other

  • Extension events use camelCase serialization matching TypeScript wire format
  • Doctor checks for rg and fd/fdfind dependencies
  • Gist URL parser rejects profile links and non-canonical paths
  • TUI markup parser rewritten with explicit state machine
  • 9 new regression tests covering security fixes and edge cases