Repository navigation
Host parity across OpenCode 1, OpenCode 2 and Pi - #871
Draft
antauth-alfonso[bot] wants to merge 27 commits into
Draft
antauth-alfonso[bot] wants to merge 27 commits into
antauth-alfonso[bot] wants to merge 27 commits into
Conversation
ualtinok
force-pushed
the
parity/2026-11-23
branch
2 times, most recently
from
November 23, 2026 18:12
ec8655a to
56c0013
Compare
…as on OpenCode 1 (shared in Core)
…nCode 1 Prime follows live setting changes
…rts and per-send billing reports, as on OpenCode 2
…ms gzipped on OpenCode 1 and Pi; OpenCode 1 warms leave cache diagnostics
Save standard quota from the serving OAuth response through the native store without blocking the stream. Keep poll-owned fields and do not use rounded header percentages to authorize a paid fallback. Share the OpenCode endpoint resolver without changing its wrapper. Pi keeps saved paid endpoints and applies Core model aliases only to the paid wire body.
Use Core opt-in, record validation and beta hashing on the final OAuth body and the corresponding SSE message start. Only primary conversation replies advance the processor-local predecessor, while session-tagged auxiliary replies can log without replacing it. Keep paid requests, forks, Prime and CacheKeep observations out of this chain. Forget correlations at session shutdown.
OpenCode 2 now uses the short cache when the setting is missing or default; existing settings and runner policies still decide explicit choices. Update the release-oracle comparison only for the removed setting and the intentional default wire difference. Remove the opt-in filesystem feed and keep the existing quota header harvest and relay coverage. Keep the legacy stored field available to migration for rollback; the shared settings reader reports it as unknown without rewriting the file.
Prime adds one startup timer even when disabled; quota-sweep fixtures still exercise the original poll and dispatch assertions. Keep-warm-off continues to report exact cache touches without forwarding usage to price a nonexistent target. The paid fallback sends no Claude Code betas, while the Pi settings test still observes both OAuth fast-mode states. Archive comparisons account for the first diagnostics predecessor, and fork prefix comparisons mask only the non-cache billing text and diagnostics.
Check the original CacheKeep target after the restart delay. The header hook receives a copy with rewritten bytes, but immediate attempts are fenced by the original object identity. Keep every existing account and origin check before dispatch. Drop diagnostics when building a warm in Core so Pi cannot replay a conversation predecessor and OpenCode keeps the same rule.
The new Prime interval and CacheKeep share a 60-second cadence, so find-by-period invoked Prime instead of exercising the token and retry assertions. Tick the CacheKeep manager directly. The OpenCode 2 default TTL in both diagnostics records is now five minutes; keep exact comparison of the other fields and the beta list.
…acity inside the request
ualtinok
force-pushed
the
parity/2026-11-23
branch
from
November 23, 2026 18:14
6aa930e to
49186bf
Compare
…fallback, revisits and refusal returns as on OpenCode 2
…ent of lifetime; first-prompt and fork lookback; lane start by queued action; /claude refresh and killswitch edits as on OpenCode 2
…n across OpenCode 1 and 2 servers; restart scans keep live temp files
…tured without full usage; Pi warms stay out of diagnostics; OC2 prices survive a failed lookup; stricter test oracles
…es don't pool sockets across tests
…re never taken over on boot-time evidence alone
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Host parity across OpenCode 1, OpenCode 2 and Pi (Ufuk's rule: every host behaves the same unless a host truly cannot). Collected from a static parity audit; each fix follows the leading host's existing code and comes with a test that failed on main first.
Included so far:
Still to come on this branch: API-key requests unshaped and ANTHROPIC_INSECURE removed; 5-minute default cache on every host and the OpenCode 1 quota feed removed; Pi state move. Draft until those land and an Athena audit passes.
Summary by cubic
Host parity across OpenCode 1, OpenCode 2, and Pi so each host behaves the same unless it truly cannot, collected from a static parity audit. Each fix follows the leading host's existing code and ships with a test that failed on main first; the architecture and structure docs now match.
Per-message effort
Parity fixes
ANTHROPIC_INSECUREis removed, all three hosts use the five-minute default cache, and the OpenCode 1 quota feed is gone.core; OAuth model prices zeroed; Prime starts at plugin start./claudequota refresh, limit editors, lane start, and killswitch edits that never alter the switch itself.Still in draft: the Pi state move.
Written for commit d7e754d. Summary will update on new commits.