Skip to content

Commit db1fc71

Browse files
committed
opencode: pin v1.17.7-patched.6 (step-end-diff-bound #29762 + default-off boot refresh)
Bumps opencode-patched 1.17.7-patched.5 -> .6 (4 platform hashes + rev). patched.6 adds two patches from the headless-serve wedge investigation: - #13 step-end-diff-bound (bead workstation-0lik, upstream anomalyco/opencode#29762): bounds Snapshot.diffFull's jsdiff structuredPatch (was context:MAX_SAFE_INTEGER, no limit) that pinned one JS thread at 100% CPU on a full-file rewrite of a sub-2MB file at step-end summary time. boundedFilePatch() = 1 MiB pre-guard + {maxEditLength:4000,timeout:1000ms}, omits optional FileDiff.patch on trip. - #12 project-copy-debounce EXTENDED (bead workstation-wvv2): gate refreshAfterBoot behind OPENCODE_PROJECT_COPY_REFRESH_ON_BOOT, DEFAULT-OFF (unset/!="1" disables the per-boot O(#dirs) scan; ="1" restores upstream). Safe headless; explicit refresh() API untouched. Verified on a fresh v1.17.7 worktree: apply.sh clean (all 13), project-copy 18/0, bounded-diff 3/0 (+1 known node:sqlite dev-harness afterAll), tsgo clean (core 0; opencode only pre-existing session.ts TS2719). linux-arm64 hash prefetch-verified against the release asset.
1 parent e542c40 commit db1fc71

1 file changed

Lines changed: 30 additions & 8 deletions

File tree

‎users/dev/home.base.nix‎

Lines changed: 30 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,22 +31,22 @@ let
3131
opencode-platforms = {
3232
aarch64-linux = {
3333
asset = "opencode-linux-arm64.tar.gz";
34-
hash = "sha256-T6H06YHtaOq/SQAzYhMr3+5z9hxSyyhx0eBjrM4S9QQ=";
34+
hash = "sha256-usmo3mycacISGYqEWJX28n8lHQ+h/EAu6QIN4kTviRQ=";
3535
isZip = false;
3636
};
3737
aarch64-darwin = {
3838
asset = "opencode-darwin-arm64.zip";
39-
hash = "sha256-KId7jtNNkYl+GnhaTU6pHD8myUGWcPQB6zcEdvZxRUw=";
39+
hash = "sha256-Ix5JjkaN1Wvxp5XL4PI6SdORRGBy9MuWE4jTB+lm5tQ=";
4040
isZip = true;
4141
};
4242
x86_64-linux = {
4343
asset = "opencode-linux-x64.tar.gz";
44-
hash = "sha256-8Q7KFvdkiBlsh1rcTwoOwEZ2inMNX5VD/zzhtvRmgd0=";
44+
hash = "sha256-3HnnIJeh97LkZWEQEzfEfACG0OoGgW2ea0rfkE7I1ak=";
4545
isZip = false;
4646
};
4747
x86_64-darwin = {
4848
asset = "opencode-darwin-x64.zip";
49-
hash = "sha256-+7Lm19RpkGrElUS+8olkmpg5hb68B8W+6i0NhlLIy0s=";
49+
hash = "sha256-I+XNTIbJzQY1iz8zhi7eo1Jpj24i0LYvidxhch+nlmI=";
5050
isZip = true;
5151
};
5252
};
@@ -67,9 +67,31 @@ let
6767
# migration won't re-fire). Full evidence + the atomic-cutover procedure:
6868
# docs/plans/2026-06-11-opencode-1.17-cutover-runbook.md
6969
#
70-
# This pins v1.17.7-patched.5 (same upstream 1.17.7, re-released 2026-06-23 with
71-
# project-copy-debounce added on top of patched.4 — built via build-release.yml
72-
# -f version=1.17.7 -f revision=5, staying on the 1.17.7 hold line). patched.5
70+
# This pins v1.17.7-patched.6 (same upstream 1.17.7, re-released 2026-06-24 via
71+
# build-release.yml -f version=1.17.7 -f revision=6, staying on the 1.17.7 hold
72+
# line). patched.6 adds TWO patches from the headless-serve wedge investigation,
73+
# taking the set to 13:
74+
# (a) #13 step-end-diff-bound (bead workstation-0lik, upstream #29762): bounds
75+
# Snapshot.diffFull's jsdiff structuredPatch (was context:MAX_SAFE_INTEGER
76+
# with no edit/time limit) that pinned one JS thread at 100% CPU (+~1GB
77+
# alloc) on a full-file rewrite of a sub-2MB file at step-end summary time.
78+
# New boundedFilePatch() composes a 1 MiB size pre-guard with jsdiff
79+
# {maxEditLength:4000,timeout:1000ms}; on trip it omits the optional
80+
# FileDiff.patch field (counts-only; consumers already guard typeof
81+
# patch!=="string"). Does NOT address the distinct flat-RSS read-only-
82+
# subagent spin variant (#32965).
83+
# (b) #12 project-copy-debounce EXTENDED (bead workstation-wvv2): gate
84+
# refreshAfterBoot behind OPENCODE_PROJECT_COPY_REFRESH_ON_BOOT — DEFAULT-
85+
# OFF (unset / anything but "1" disables the per-boot O(#dirs) scan; ="1"
86+
# restores the upstream every-boot behavior). Safe headless: source dirs
87+
# self-register via Project.saveProjectDirectory on open, the Move Session
88+
# dialog refreshes on demand, project identity is git-derived (not index-
89+
# derived); the explicit refresh() API is untouched (gate is only at the
90+
# boot entry). No cloudbox systemd-env step needed (binary default is off).
91+
#
92+
# patched.5 history (same upstream 1.17.7, re-released 2026-06-23 with
93+
# project-copy-debounce added on top of patched.4 — build-release.yml
94+
# -f version=1.17.7 -f revision=5). patched.5
7395
# adds #12 project-copy-debounce (bead workstation-sqd5): tames the 1.17.x
7496
# reconnect-storm wedge. ProjectCopy.refreshAfterBoot runs once per location
7597
# boot; a reconnect/poll storm fired N concurrent refreshes for the SAME
@@ -106,7 +128,7 @@ let
106128
# + every standalone TUI) from a plain SSH shell. Doing the switch from inside an
107129
# opencode session will kill that session mid-switch.
108130
upstreamVersion = "1.17.7";
109-
patchedRevision = "5"; # ".N" suffix — drop to "" on next upstream version bump
131+
patchedRevision = "6"; # ".N" suffix — drop to "" on next upstream version bump
110132
tagSuffix = if patchedRevision == "" then "" else ".${patchedRevision}";
111133
releaseTag = "v${upstreamVersion}-patched${tagSuffix}";
112134
version = if patchedRevision == "" then upstreamVersion else "${upstreamVersion}.${patchedRevision}";

0 commit comments

Comments
 (0)