Commit Graph
3 Commits
Author SHA1 Message Date
Hasan BasbunarandClaude Opus 5.5 a52d89f599 auto-continue: the same refused request a third time in a row stops the relaunches
On the reference box a tool schema the provider refused (HTTP 400, which opencode marks
isRetryable false) came back 91 times in 28 minutes over 12 sessions, nearly always within a
second of its relaunch, one session up to the cap of 25 (2026-10-13). Only such refusals count:
a retryable error keeps the 25, since there one session got the same "engine restarted" answer
9 times in a row before the engine served it again. Numbers in the message do not make a new
refusal, and the idle that ends a refused turn is not progress. AC_SAME_REFUSAL_MAX sets the
count. Tests: the refusal one fails on v1.28.1, the retryable one on a rule that counted every
error, and five mutants fail them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 12:48:06 +02:00
Hasan BasbunarandClaude Opus 5.5 addff2c3f9 auto-continue: a relaunch too soon after the last one waits instead of being dropped
When an error came back within the 5 s throttle after a relaunch, which is what an
engine still restarting answers, the idle that followed was ignored and nothing else
came: on the reference box an error kept at 09:02:30 UTC was never relaunched. The
relaunch is retried once the throttle has passed, if opencode still reports the session
idle. Found in review, 2026-09-24 (T11).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-24 19:05:34 +02:00
Hasan BasbunarandClaude Opus 5.5 0adf7fa4b8 auto-continue: no relaunch after an error a relaunch cannot fix
A relaunch sends the whole history again plus the plugin's reminder, so after a prompt
past what the lane serves, or an image the engine cannot decode, it could only fail
again, longer: the reference box's log shows 210,159, 210,210 then 210,261 tokens
refused against a 200,000 ceiling on 2026-09-09, and 26 such errors kept for relaunch.
opencode compacts on an overflow by itself, and a compaction that does not resume is the
compaction path's to relaunch. Found in review, 2026-09-24 (T3).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-24 18:07:38 +02:00