aboutsummaryrefslogtreecommitdiffstats
path: root/docs/KNOWN-ISSUES.md
blob: 44d9f07fc18c2cd579e6e73b7a65d6bc8e2a6a0a (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
# Known issues

Understood, deliberately not fixed. Each one has a reason, and a note on what
would change the decision.

## Concurrent sessions can interleave

Two processes appending to the same session file will interleave messages and
corrupt the conversation, permanently, because history is never rewritten.
`flock(LOCK_EX | LOCK_NB)` on the session fd at open would refuse the second
process. Not done yet because the failure needs deliberately resuming the same
id in two shells, and the fix is easy to add later. If it ever happens once,
add the lock.

## `--yolo` has no floor

`--yolo` approves everything, including in `$HOME` or `/`. There is no check
that the directory is a git repository, so the documented undo does not exist in
some of the places it will run. Refusing `--yolo` outside a repository (or in
`$HOME`) would be a small change; it is deferred because the acceptance test runs
in an empty temp directory.

## `--list` reads every transcript

Listing costs O(total bytes of all sessions), because it parses each header and
counts messages. At current sizes this is milliseconds; a 200 MB session file
makes it visibly slow. An index or a `--json` format would fix it.

## `edit` loads the whole file

`edit` reads the file, matches, and writes it back through a temporary file. On
the 32-bit target a file near the address-space limit fails with an out-of-memory
error rather than a clean refusal. A >32 MB file should be rejected up front with
"too large for edit; use write".

## Editor width is approximate

The line editor counts one column per character, so wide (CJK) characters,
combining marks and raw tabs (from a paste) mis-place the caret. The width is
read once per prompt, so a resize mid-edit mis-renders.

## No transcript viewer

Reasoning is stored beside each assistant message for humans, but the only way to
read it is `cat` on the JSONL. A `--show <id>` renderer would make auditing a
`--yolo` run practical.

## Approval state is per process

Restarting the harness re-prompts for the first edit even when resuming a
session. That is intentional (see CONTEXT.md), but it is worth knowing.

## `--doctor` fails on an unlisted model

If `GET /models` does not list the model id you use (some gateways only list a
subset), doctor exits 1 even though a turn would work. `--doctor --probe` sending
a one-token completion would test what actually matters.

## Retry budget is fixed

Four attempts, 1 s / 2 s / 4 s, no jitter, no per-status policy. A 429 for a
model with a long reset window will still fail after ~7 s.

## No per-turn summary

The status line reports steps, time, tokens and allowance, but not what changed:
no "3 files written, 5 commands run, 1 denied". For a `--yolo` run that is the
summary you actually want.