From 45d0d3c5f431688aa9dfbd6a4214256d6fe64122 Mon Sep 17 00:00:00 2001 From: salmonik Date: Wed, 18 Nov 2026 12:34:33 +0100 Subject: 0.9.2: doc accuracy and UX fixes from the review - missing key exits 1, consistent with --doctor - HTML error bodies get a one-line message - no unapprovable diff printed on a non-terminal - weak GLIBC_2.39 fix covers x86_64 gnu as well as i686 - README/PLAN/CHANGELOG brought in line with the actual binary --- docs/PLAN.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'docs') diff --git a/docs/PLAN.md b/docs/PLAN.md index f22b230..559c6ab 100644 --- a/docs/PLAN.md +++ b/docs/PLAN.md @@ -7,8 +7,8 @@ line-mode, six tools. Built for understanding, not parity with anything. | | | |---|---| -| Target | Debian 12 i386, glibc 2.36, 2 cores, 4 GB | -| Build | `i686-unknown-linux-gnu`, dynamic glibc (see ADR 0001) | +| Target | Debian-class Linux; x86-64 primary, i686 still supported | +| Build | `./comp.sh` — detects the machine and prints the build plan | | Dev host | x86-64, `gcc-multilib`, `i686` + `i686-unknown-linux-musl` targets | | Provider | OpenCode Go — `https://opencode.ai/inference/go/openai/v1`, `chat/completions` | | Auth | `OPENCODE_API_KEY`, else `~/.config/agent686/key` (600 perms) | @@ -27,7 +27,7 @@ line-mode, six tools. Built for understanding, not parity with anything. timeout, capped output, exit code), `grep`, `glob`. All native — no dependence on `rg` being installed. - **Approval.** Reads free. First `write`/`edit` of a session prompts with a - unified diff and offers "always" (session-scoped). Every `bash` call prompts + unified diff and offers "always" (process-scoped: a new process asks again on resume). Every `bash` call prompts unless `--yolo`. Prompts happen after the stream ends, never mid-token. - **Turn/step.** A turn ends when the model answers with no tool calls, on user abort, or on a non-retryable provider error. **No step cap** — the brake is the @@ -169,6 +169,7 @@ Independently rebuilt and re-run outside the agent both times. ## Layout ``` +src/lib.rs module root src/main.rs args, mode selection, exit codes, /paste src/config.rs precedence CLI > env > file; key source src/provider.rs request construction, retry, SSE parsing, model list @@ -177,8 +178,11 @@ src/agent.rs turn/step loop, tool dispatch, approval hooks, prompt src/line.rs raw-mode line editor, history src/signal.rs SIGINT -> cancel flag src/doctor.rs --doctor checks -src/tools/ read, write, edit, bash, grep, glob +src/tools/mod.rs schemas, validation, dispatch +src/tools/fs.rs read, write, edit, grep, glob +src/tools/shell.rs bash, timeouts, output caps src/ui.rs streaming render, diffs, approval prompt, status line +scripts/ux-check.sh drives tmux to assert the rendered screen tests/mock.rs provider over std TcpListener (SSE, retry, truncation) tests/loop.rs agent loop, abort and repair invariants tests/tools.rs tool semantics and edge cases -- cgit v1.2.3