Skip to content

Mirror amicode #929/#964: the 3-arg promptDesignPlaceholder translate callback - #329

Merged
aarontrowbridge merged 1 commit into
local/amicodefrom
964-mirrors
Sep 10, 2026
Merged

Mirror amicode #929/#964: the 3-arg promptDesignPlaceholder translate callback#329
aarontrowbridge merged 1 commit into
local/amicodefrom
964-mirrors

Conversation

@aarontrowbridge

Copy link
Copy Markdown
Member

Summary

The fork (this branch line, the fork→overlay sync source) never carried amicode #929's fix, so the Sep 9 sync (ff7b69c8) regressed the amicode overlay's composer back to the 2-arg promptDesignPlaceholder call — every non-shell render threw minified n is not a function (Aaron hit it live 2026-09-10; tracked in harmoniqs/amicode#964). Until the sync tooling carries an amicode-fixes-are-canonical rule, the fork must carry what the overlay carries:

  • packages/app/src/components/prompt-input-v2.tsx: the 3-arg call with the language.t adapter (the overlay's exact hunk, provenance amicode #929 / #964)
  • packages/app/src/components/prompt-input/placeholder.ts: aligned to the upstream v1.18.29 3-arg contract — the translate callback replaces the hard-coded "Ask Amico anything…" brand line; the ui locales already carry ui.promptInput.placeholder.normal and the overlay/deployed app has served the translated string since the v1.18.29 re-base
  • placeholder.test.ts: bun tests pinning the 3-arg contract (shell verbatim, normal translated, the regressed 2-arg call throws)

Mirrors harmoniqs/amicode#965 (the overlay restore + pre-sync guard).

Verification

  • bun test --conditions=solid src/components/prompt-input/placeholder.test.ts → 7 pass
  • bun run typecheck (tsgo -b) in packages/app → clean

Sweep (amicode#964)

Diffed the fork's app copies against amicode's post-#832/#929 overlay: the diff_version reconciliation (#832) is already byte-identical fork-side; the session.exportTrace locale set (#832) matches. Two amicode-side design files (design-polish.css, message-timeline.tsx — the bubble-lock merge and yellow-chip bubble) are newer amicode-side state absent here — follow-ups, not mirrored in this slice.

…k (mirror of amicode #929/#964)

Provenance: amicode#964 — the fork→overlay sync (ff7b69c8) regressed
amicode#929's fix (59b447e7) because the fork (this repo, the sync source)
never carried it: prompt-input-v2.tsx called promptDesignPlaceholder with
2 args while the helper amicode materializes (upstream v1.18.29) takes 3 and
calls the translate callback in the non-shell branch — every non-shell
composer render threw minified 'n is not a function'. Aaron hit it live
post-cutover 2026-09-10; the amicode overlay is fixed (harmoniqs/amicode
964-reconciliation). Until the sync tooling carries an
amicode-fixes-are-canonical rule, the fork must carry what the overlay
carries:

- prompt-input-v2.tsx: the 3-arg call with the language.t adapter (the
  overlay's exact hunk)
- prompt-input/placeholder.ts: aligned to the upstream v1.18.29 3-arg
  contract — the translate callback replaces the hard-coded 'Ask Amico
  anything...' brand line; the ui locales already carry
  'ui.promptInput.placeholder.normal', and the overlay/deployed app has used
  the translated string since the v1.18.29 re-base
- placeholder.test.ts: bun tests pinning the 3-arg contract (shell verbatim,
  normal translated, the regressed 2-arg call throws 'is not a function')

Verified: bun test placeholder.test.ts 7 pass; bun run typecheck (tsgo -b)
clean in packages/app.
@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 da5b559 into local/amicode Sep 10, 2026
4 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.

1 participant