Skip to content

Releases

v1.27.0 - Zed with Ollama Agent & Prompt Caching Fixes

Choose a tag to compare

@0xra0 0xra0 released this 11 Nov 15:12

Zed 1.27.0 (Custom Build)

This release of Zed 1.27.0 includes dedicated enhancements for local model / Ollama execution and prompt prefix caching optimizations.

🌟 Highlights & Key Modifications

  1. Ollama & Local LLM Terminal Tool Compatibility:

    • Made the cd (working directory) parameter optional via #[serde(default)] in both TerminalToolInput and SandboxedTerminalToolInput.
    • Local models (e.g., Qwen 2.5 Coder, Mistral, Llama 3) that omit the working directory parameter when executing terminal commands now automatically default to the active project root without triggering JSON deserialization errors.
    • Updated tool prompts and added automated unit tests (test_terminal_cd_defaults_to_project_root_when_absent, test_sandboxed_terminal_cd_defaults_to_project_root_when_absent).
  2. Prompt-Prefix Caching Optimization:

    • Refactored Thread::build_title_request and modularized Thread::request_tools so thread title generation and summarization retain the active turn's system prompt and tool definitions.
    • Inference servers supporting prompt prefix / KV caching (such as Anthropic, Ollama, DeepSeek, and OpenAI-compatible gateways) can reuse cached tokens, significantly lowering latency and token usage.
    • Added unit test test_title_request_keeps_turn_prefix.

📦 Installation Quickstart

User Install (~/.local):

curl -LO https://github.com/0xra0/zed/releases/download/v1.27.0/zed-linux-x86_64.tar.gz
tar -xzf zed-linux-x86_64.tar.gz -C ~/.local --strip-components=1
export PATH="$HOME/.local/bin:$PATH"
zed --version

System Install (/usr/local):

sudo tar -xzf zed-linux-x86_64.tar.gz -C /usr/local --strip-components=1
sudo update-desktop-database

🔒 Checksums (SHA256)

ffd14e016e3de59b834c5514f4d239cff9678a06c09a152fffd9d1d1dbbe0cf9  zed-linux-x86_64.tar.gz