aboutsummaryrefslogtreecommitdiffstats
path: root/CHANGELOG.md
blob: 79acd31725203bbfd76a416dfa37d177c775da21 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# Changelog

Versioning: **MAJOR** for API-breaking changes, **MINOR** for features that do not
break the interface, **PATCH** for bug fixes.

"Interface" means: CLI flags and their meaning, the session file format, the config
file, and the tool schemas the model sees. Anything a script or a resumed session
could depend on counts as API.

## 0.4.3

### Fixed
- `bash` timeouts killed only the direct `sh`, leaving `make`, `cargo` or `sleep`
  running on the 2-core box. The command now runs in its own process group and
  the whole group is killed on timeout or on Ctrl-C.
- `bash` output was unbounded on disk while being truncated on read; the child now
  has a 64 MiB file-size limit and reports when it hit it.
- A long-running command can now be stopped with Ctrl-C instead of waiting out
  the 120 s timeout.
- `OPENCODE_API_KEY` was inherited by every command, so a failing build that
  dumped the environment would put the key in the transcript and send it back to
  the provider. It is removed from the child environment.
- Session files are created `0600` and their directories `0700`; older `0644`
  files are tightened on open. History is `0600` and its file is trimmed.
- `--doctor` warns when the key file is readable by other users.

## 0.4.2

### Fixed
- A stream that ends without `[DONE]` or a `finish_reason` is now an error, not an
  empty or truncated answer. A provider returning ordinary JSON to a streaming
  request used to be recorded as an empty assistant message; a dropped connection
  mid-answer used to be recorded as a finished one.
- A tool-call delta without `index` no longer loses the whole call, and
  non-contiguous indexes no longer invent an empty call.
- A final `data:` frame with no trailing newline is processed instead of dropped.
- Malformed frames are counted and reported instead of silently swallowed.

## 0.4.1

### Fixed
- Aborting a step that announced several tool calls used to leave the remaining
  calls unanswered, which the provider rejects and which made the session
  permanently unresumable. Remaining calls now get an "aborted" result, and
  sessions opened in that state are repaired by appending the missing results.
- A Ctrl-C pressed after a turn finished could abort the next prompt; the flag is
  cleared when a turn starts.
- `run_turn` cleared the global cancel flag rather than the one it was given.
- One-shot mode now exits 130 when aborted and 3 when a tool call was denied,
  instead of 0 for both.
- `bash` approval offered `[y/N/a]` but treated `a` as "no"; it now offers
  `[y/N]`, matching its documented every-call behaviour.
- A non-terminal stdin now says up front that writes and commands will be denied.

## 0.4.0

### Changed
- `grep` takes a regular expression instead of a literal string, matching what
  coding agents expect from a search tool. An invalid pattern explains itself and
  points at `fixed`.
- `grep` accepts `fixed: true` to match literal text, e.g. when searching for
  `a+b` or `foo(`.

## 0.3.0

### Added
- `--version`.
- `--doctor`: reports the version and target, where the key came from, whether
  the sessions directory is writable, the provider and model, and then checks the
  key against `GET /models` and confirms the model id is actually listed. Exits
  non-zero if any check fails, so it can gate a deployment. It tolerates a
  missing key so the report is the thing that tells you the key is missing.

## 0.2.0

### Added
- `read` streams instead of loading the whole file. It seeks to `offset` with a
  buffered reader and consumes long lines without keeping them, so memory stays
  flat: 16 MB RSS reading a 200 MB file at any offset, 0.8 s to reach line
  999,000.
- Single lines longer than 4 KiB are clipped and marked `…(line truncated)`.

### Changed
- The truncation marker is now `… more lines; continue with offset=N`.

## 0.1.0

Baseline: the harness as first built, before versioning was defined here.

- Streaming provider client for OpenCode Go (`chat/completions`), stable
  `x-opencode-session` header, retry with backoff.
- Append-only JSONL sessions, `--continue`, `--session`, `--list`.
- Six tools: read, write, edit, bash, grep, glob.
- Approval: first edit of a session with a diff, every bash call.
- Line editor with history and bracketed paste.
- i686 release gate: `GLIBC_2.34` required, verified on `linux/386 debian:12`.