- Detect empty LLM responses (no content, no tool calls) instead of
silently treating them as task completion. Retries once without tools
before warning the user.
- Gate /no_think system message and chat_template_kwargs to Qwen/QwQ
models only — sending /no_think to llama3.x caused empty responses.
- Add model_profiles config section for per-model overrides (token
budget, thinking, temperature, max_tokens) matched by name prefix.
Applied at startup and on /model switch.
- Update SessionManager on /model switch so session files record the
correct model.
- Add NDJSON fallback in SSE stream parser for Ollama compatibility.
- Improve read_file error to suggest find_files on FileNotFoundError.
- Add diagnostic logging for empty streams and empty results.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Use exact first-word matching instead of startswith() for /models and
/mode command routing. Accept /model as an alias for /models.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Introduces FileCache (OrderedDict LRU, st_mtime_ns validation) to avoid
redundant disk reads and duplicate content in conversation context.
Read tools return a short "[Cached]" message on cache hit instead of
resending unchanged file content, saving tokens. Write/edit/delete tools
invalidate affected paths; str_replace pre-warms the cache after edits.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Replace built-in Header with a custom HeaderPanel showing model name,
mode badge, and live token usage. Add AgentMode enum (normal/plan/auto)
with mode-aware permission gating — Plan mode restricts to read-only
tools, Auto mode auto-approves everything. Includes /mode slash command
and Ctrl+P keybinding to cycle modes.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Shows user input as a compact one-liner ("You: prompt text") instead of
a full panel. Multi-line input is collapsed to the first line with a
"(+N lines)" suffix, and long lines are truncated at 120 chars.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add a skill package system where each skill is a directory with a skill.yaml
manifest and prompt markdown files. Skills support /command triggers, scoped
config overrides (temperature, max_tokens, tool filtering), chain dependencies
with cycle-safe resolution, and a finish_skill completion signal.
Includes four built-in skills: explore, brainstorm, write-document, and plan.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
push_screen_wait requires a worker context, but on_mount is a plain
lifecycle callback. Extract session resume logic into a @work-decorated
method so the modal can be awaited without triggering NoActiveWorker.
The App base class uses _registry (WeakSet) for DOM node tracking.
Our _registry attribute for the tool registry was shadowing it with None,
causing a TypeError during shutdown.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>