Skip to content

The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.

docs: tone down v2.3.8 release framing — Codex is WIP, not done

PurpleDoubleD90bf0d0495cb
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 5c9d743a..d9297e21 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,8 @@ All notable changes to Locally Uncensored are documented here.
## [2.3.8] - 2026-04-22
+> **Note on Codex:** several Codex plumbing bugs are fixed below, but Codex is still an actively-evolving feature and is not yet treated as production-finished. This section is a developer-facing technical changelog. The user-facing release announcements (GitHub Release notes, README, Discord) intentionally describe this as internal plumbing + UX polish rather than a Codex milestone.
+
### Fixed
- **Codex `file_write` now actually lands on disk in the expected folder** — the built-in tool executors (`fs_read`, `fs_write`, `fs_list`, `fs_search`, `shell_execute`, `execute_code`) in `src/api/mcp/builtin-tools.ts` never threaded the active chat-id through to Rust even though `agent-context.ts` was designed for exactly that. The documented per-chat workspace isolation (`~/agent-workspace/<chatId>/`) silently fell through to a shared `default/` fallback whenever the model emitted a relative path, and no per-chat isolation ever happened. Now every executor reads `getActiveChatId()` and spreads it into the `backendCall` payload so Rust's `resolve_path()` / `resolve_agent_path()` can route relative paths into the right per-chat folder. `src/api/agents.ts:executeTool` also now returns the real `data.path` from Rust's `{status:"saved", path:…}` response instead of a hard-coded `"File written successfully"` string that masked write failures behind a green ✓ in the UI.
- **Codex chat bubble no longer floods with raw `{"name":"file_write", "arguments":{…}}` JSON objects for models that emit tool calls as content** — qwen2.5-coder:3b and similar small coder models put the tool call in the `content` field instead of the native `tool_calls` array. The pre-2.3.8 extractor caught the call but left the raw JSON visible in the chat, and the narrative around it ("I'm about to verify…" + ```python fence echoing the file content) was concatenated onto `fullContent` every iteration — a 4-iteration task rendered as four stacked JSON blobs with four duplicated paragraphs. Fix: new `stripRanges()` helper uses the `[startIdx, endIdx]` positions the balanced-brace extractor already computes to remove the exact tool-call substrings (not a greedy regex that fails on nested braces), and an `extractedFromContent` flag drops the residual narrative entirely so qwen's Codex UI now looks identical to gemma4's.
diff --git a/README.md b/README.md
index d6693a26..8cea1fc2 100644
--- a/README.md
+++ b/README.md
@@ -37,30 +37,29 @@ No cloud. No data collection. No API keys. Auto-detects 12 local backends. Your
## v2.3.8 — Current Release
-**Codex end-to-end overhaul — tool calls that actually land on disk, clean UI across all models, memory + context compaction**
-
-### Critical Fixes (why you want this update)
-- **Codex file_write actually writes to disk now** — pre-2.3.8 Codex's built-in tool executors (`fs_read`, `fs_write`, `fs_list`, `fs_search`, `shell_execute`, `execute_code`) never threaded the active chat-id through to the Rust backend even though the whole `agent-context.ts` plumbing was designed for it. The documented per-chat workspace isolation (`~/agent-workspace/<chatId>/`) silently fell through to a shared `default/` fallback, and relative paths the model emitted landed nowhere useful. Fixed at the frontend layer — every builtin executor now calls `backendCall('fs_write', { …, chatId: getActiveChatId() })`. `agents.ts:executeTool` also returns the real `data.path` from Rust instead of a fake `"File written successfully"` string that hid write failures behind a green ✓.
-- **Clean Codex UI for every model, not just the ones that emit native `tool_calls`** — qwen2.5-coder:3b (and other small coder models) emit tool calls as raw JSON in the `content` field instead of the native `tool_calls` array. The pre-2.3.8 extractor caught the JSON but left the raw `{"name":"file_write", "arguments": {...}}` object visible in the chat bubble, plus every iteration's narrative ("I'm about to verify…" + a ```python fence with the file content) was concatenated onto `fullContent` — so a 4-tool-call turn looked like four stacked JSON blobs with four duplicated paragraphs. Fix: new `stripRanges()` helper uses the balanced-brace positions the extractor already computes to remove the exact tool-call JSON substrings (not a greedy regex that fails on f-strings with `{name}`), and an `extractedFromContent` flag drops the residual narrative entirely so qwen's Codex chat now looks identical to gemma4's.
-- **Context compaction in Codex** — long multi-tool turns used to blow past the model's context window on 8K-context local models; Codex now summarises older turns via `compactMessages` before every sampling call. Parity with Agent Mode.
-- **Memory injection + extraction in Codex** — Codex was the only chat surface that ignored the memory system. It now reads `getMemoriesForPrompt()` at dispatch time and runs `extractMemoriesFromPair()` after the turn lands, so long-running coding sessions accumulate context like everywhere else.
-- **Tool-scope filter for Codex** — Codex now filters the registry to `filesystem | terminal | system | web` categories before passing tools to the model. Small models were getting confused by `image_generate`, `screenshot`, `run_workflow`, `process_list` showing up next to `file_write` and emitting tool calls with the wrong argument shape (e.g. `file_write({command: …})`). The filter narrows the blade.
-- **Balanced-brace JSON extractor** — the naive `\{[^}]*\}` regex in `tool-call-repair.ts` failed on any nested brace or string value containing `{` (e.g. Python f-strings `f'Hello, {name}!'`). Replaced with a locate-header-then-balance scanner that respects string escapes. Fixes qwen2.5-coder:3b tool-call extraction for any code that uses f-strings.
-- **Concrete arg-validator error hints** — when a tool call fails schema validation, the retry message sent back to the model now lists the exact required fields with their types + the keys the model actually sent ("`file_write requires {path: string, content: string}. You sent {command}. Retry with all required fields present.`") instead of the old generic "matching the tool schema" hint. Small models self-correct much better with a concrete example.
-- **Codex iter cap raised 20 → 50** — large refactors across 10+ files legitimately need more than 20 tool calls. Budget still caps via `agentMaxToolCalls` / `agentMaxIterations` (defaults 50 / 25 from settings).
-
-### E2E verified on this build
-5 tool-capable Ollama models × simple `file_write` task:
-| Model | Result | Native tool_calls | UI |
-|---|---|---|---|
-| gemma4:e4b | ✅ + full CLI task: 4/4 unittest pass | yes | clean |
-| qwen2.5-coder:3b | ✅ | no (extracted from content) | clean (after stripRanges) |
-| hermes3:8b | ✅ | yes | clean |
-| llama3.1:8b | ✅ | yes | clean |
-| llama3.2:1b | ✅ (model emitted Unix `/Users/…` path, plumbing correct) | yes | clean |
+**Internal plumbing + UX polish. Drop-in patch on top of v2.3.7.**
+
+No new headline features this release — internal stability work so future feature releases have a cleaner foundation.
+
+### What's in this build
+- **Built-in tool executors now thread the active chat-id through to the Rust backend** — `agent-context.ts` was designed for per-chat workspace isolation but the frontend executors (`fs_read`/`fs_write`/`fs_list`/`fs_search`/`shell_execute`/`execute_code`) never actually passed the id through, so relative paths silently landed in a shared fallback folder. Fixed end-to-end.
+- **More robust tool-call JSON extraction** — the old greedy `\{[^}]*\}` regex failed on any nested brace or string value containing `{` (e.g. Python f-strings `f'Hello, {name}!'`). Replaced with a locate-header-then-balance scanner that respects string escapes. Fixes models that emit tool calls as JSON in `content` when the emitted code uses f-strings or dict literals.
+- **Cleaner chat bubbles across models that emit tool calls in content** — new `stripRanges()` helper uses the balanced-brace positions the extractor already computes to remove the exact tool-call JSON substrings instead of a greedy regex that missed edge cases. No more stacked raw-JSON bubbles.
+- **Concrete arg-validator error hints** — retry message now lists the exact required fields with types + the keys the model actually sent, so small models self-correct on the next iteration instead of repeating the same malformed call.
+- **Family grouping in the model dropdown** (QWEN / GEMMA / LLAMA / HERMES / PHI / DOLPHIN / MISTRAL / DEEPSEEK / …) with reactive refresh when any provider's enabled state changes.
+- **Development-only diagnostic code removed from the release binary** — devtools flag off for production, no file-writing loggers.
+
+### Stability
+- 2202 / 2202 Vitest tests green
+- `cargo check` clean
+- `tsc --noEmit` clean
+- Drop-in upgrade from v2.3.7, no breaking changes, no localStorage migration
+
+### Known work in progress
+Codex (the coding-agent tab) is under active development. Several improvements landed in this release but the feature is still evolving — do not yet treat Codex as production-finished. Chat, Create, Agent Mode, and Remote remain stable.
### What's still in v2.3.8 from v2.3.7
-Drop-in upgrade. v2.3.7's remote Ollama + `OLLAMA_HOST` env var support, v2.3.6's configurable ComfyUI host, LM Studio / OpenAI-compat CORS fix, and ComfyUI port persistence all remain in place.
+v2.3.7's remote Ollama + `OLLAMA_HOST` env var support, v2.3.6's configurable ComfyUI host, LM Studio / OpenAI-compat CORS fix, and ComfyUI port persistence all remain in place.
### Remote Access + Mobile Web App
- **Access your AI from your phone** — Dispatch via LAN or Cloudflare Tunnel (Internet)