From 3b1351018d3184caa5b5ca25cc13e5da1fc02229 Mon Sep 17 00:00:00 2001 From: salmonik Date: Sun, 15 Nov 2026 15:41:46 +0100 Subject: 0.4.5: CLI validation, instruction scope, resume context, prompt hygiene - session ids validated; missing flag values and conflicting flags are usage errors - -- terminator; usage goes to stderr - doctor sends a real session header - sessions record their starting cwd and warn when resumed elsewhere - AGENTS.md stops at the git root; no parent-directory injection - typeahead flush, Ctrl-C during prompts, NO_COLOR/TERM=dumb --- CHANGELOG.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'CHANGELOG.md') diff --git a/CHANGELOG.md b/CHANGELOG.md index 213f5f1..9c00ccb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,29 @@ break the interface, **PATCH** for bug fixes. file, and the tool schemas the model sees. Anything a script or a resumed session could depend on counts as API. +## 0.4.5 + +### Fixed +- `--session ../escape` wrote outside the sessions directory; ids are now + validated as 1-64 characters of `A-Za-z0-9._-`. +- A flag with no value was silently ignored, and `--session` with an empty value + quietly created a new session. Both are usage errors (exit 2) now. +- `--` ends option parsing, so a prompt can start with `-`. +- `--continue` with `--session`, and `--list` with `--doctor`, are rejected + instead of one silently winning. +- Unknown-flag output went to stdout; usage now goes to stderr. +- `--doctor` sent an empty `x-opencode-session`, which the gateway rejects, so a + healthy key could look broken. It now sends a throwaway id. +- Resuming a session from a different directory gave the model the old `cwd` and + branch without saying so; the session records its starting directory and now + warns when it does not match. +- `AGENTS.md` was read all the way to `/`, so a stray file in a shared parent + would be injected into every project. Reading now stops at the git root, and + outside a repository only the working directory itself is read. +- Typeahead typed during streaming could answer the following approval prompt. +- Colour is now disabled by `NO_COLOR` and `TERM=dumb`. +- Ctrl-C during an approval prompt now denies instead of appearing to hang. + ## 0.4.4 ### Fixed -- cgit v1.2.3