The code review of v1.56.0 found that the v2 plugin never cleared `busy` on
session.execution.interrupted (the projector makes the session idle there, as the plugin's own
header says), and that onTimer() returned while busy without re-arming. So after a turn the user
interrupted, the resume of a manual /compact was dropped for good, and so was one whose
compaction ended before its turn did. `busy` is now cleared on interrupted, and a timer that fires
while a turn runs re-arms instead of dropping; a turn that starts still clears what is pending, so
the re-arm never relaunches over it. Two tests, red on the old code, green now with the 14.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
v2 does not run v1 plugin implementations (packages/core/src/plugin/module.ts of the
v2.3.2 tag requires a default export of { id, setup }; a function default export is a
LoadError), so the port is a separate file and the v1 auto-continue.js is untouched: on a
v2 box copy auto-continue-v2.js to ~/.config/opencode/plugins/ and take the v1 file out
(docs/operations.md says so).
Same policy on the v2 event set (measured shapes on the pinned 2.3.2 in a sandbox, SSE
/api/event): relaunch after session.execution.failed (the runner's own retry policy is
exhausted by then; a failed execution leaves the session idle, projector.ts), unless the
error matches the v1 exclusions or is the same 4xx refusal (not 429) a third time in a
row (numbers masked); session.execution.started cancels a pending relaunch;
session.execution.succeeded with nothing pending is progress and resets the cap. A manual
/compact (session.compaction.ended, reason manual) still ends idle without resuming, so
it arms the relaunch; reason auto deliberately does not: the v2 runner compacts inside
the running turn and continues (runner/llm.ts), and compaction.background (default true
since 2.3.1, pinned in our v2 config) has the summary precomputed from the cached prefix,
so the auto swap is instant and the stuck-after-auto-compaction case of v1 does not exist.
The relaunch is ctx.session.prompt({ sessionID, text }), the flat v2 prompt input.
Tests (node, fake v2 context, scripted events): 12, all red on the old code (the plugin
file does not exist there).
Generated by Mistral Vibe.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
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>
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>
The release the reference box actually runs: model choice (stock or the
huihui-abliterated NVFP4), CONTEXT_MODE=1m (YaRN 1,010,000 + keepalive proxy
+ mem-fraction 0.70), upgrades that read the installed unit and keep the
operator's choices, the pinned revision passed to the server itself so no
upstream push can change what is served, the opencode provider config and oc
launcher replacing the Claude Code integration, opt-in extras (auto-continue
plugin, CAKE ingress anti-bufferbloat), fixture tests and CI. Validated end
to end on the reference box before tagging; details in the CHANGELOG.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>