Skip to content

Sync-reconciliation: restore #929's translate-callback fix + the pre-sync guard (#964) - #965

Merged
aarontrowbridge merged 1 commit into
mainfrom
964-reconciliation
Sep 10, 2026
Merged

Sync-reconciliation: restore #929's translate-callback fix + the pre-sync guard (#964)#965
aarontrowbridge merged 1 commit into
mainfrom
964-reconciliation

Conversation

@aarontrowbridge

Copy link
Copy Markdown
Member

Summary

The Sep 9 fork→overlay sync (ff7b69c) clobbered amicode-side fixes. This PR restores them and adds the guard that catches the next occurrence.

Closes #964 (mirror + sweep findings tracked on the fork PR).

Verification

  • new tests green; full extension vitest suite run (pre-existing failure set named on the issue)
  • pnpm run typecheck clean
  • drift gate: [drift-gate] PASS: overlay and manifest are in sync (617 files)

Mirror

The fork-side mirror (harmoniqs/opencode 964-mirrorslocal/amicode) carries the same hunks so the next sync brings the fix, not the regression.

…llback + the pre-sync guard (#964)

The Sep 9 fork→overlay sync (ff7b69c) overwrote amicode-side fixes with
stale fork state: #929's 3-arg promptDesignPlaceholder(mode(), placeholder(), t)
fix (59b447e) was regressed back to the fork's 2-arg call — the materialized
helper (upstream v1.18.29) calls the third argument in the non-shell branch,
so every non-shell composer render threw minified 'n is not a function'.
Aaron hit it live post-cutover 2026-09-10 and fixed the deployed dist-app;
this commits that fix to the overlay (manifest hash updated in step).

- restore the 3-arg call with the language.t adapter + a comment naming the
  regressing sync
- prompt_input_design_placeholder_964.test.ts: the regression test — source
  + contract-replica assertion of the 3-arg invocation (no render harness;
  the prompt-input-clipboard-structure.test.ts precedent)
- overlay_known_fixes_964.test.ts: the pre-sync guard — a fixture list of
  the overlay's known-fixed hunks (#929 translate callback, #832 diff_version
  shape + guarded delete, #832 session.exportTrace locales) iterated by one
  test; a future sync that reverts any fails naming the fix

Verified: extension vitest (new tests green), pnpm run typecheck, drift gate
PASS (617 files). The sync source mirror lands on harmoniqs/opencode
964-mirrors → local/amicode.
@coderabbitai

coderabbitai Bot commented Sep 10, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@aarontrowbridge
aarontrowbridge marked this pull request as ready for review September 10, 2026 15:06
@aarontrowbridge
aarontrowbridge merged commit a82d7ec into main Sep 10, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sync-reconciliation: the fork→overlay sync clobbers amicode-side fixes (#929's fix regressed by ff7b69c8; the diff_version fix owes a fork mirror)

1 participant