Skip to content

Conversation

@AlanNggg
Copy link

@AlanNggg AlanNggg commented Nov 17, 2025

Description

Fixed "t.registerHelper is not a function" error when using {{{ input }}} in custom prompts by correctly importing the Handlebars default export.

AI Code Review

  • Team members only: AI review runs automatically when PR is opened or marked ready for review
  • Team members can also trigger a review by commenting @continue-review

Checklist

  • I've read the contributing guide
  • The relevant docs, if any, have been updated or created
  • The relevant tests, if any, have been updated or created

Screen recording or screenshot

  1. Before the fix, custom prompts with {{{ input }}} failed with "t.registerHelper is not a function" error
image
  1. After the fix, the prompts render correctly with proper input substitution
image

Tests

All existing tests in gui/src/components/mainInput/TipTapEditor/utils/renderPromptv1.test.ts pass


Summary by cubic

Fixed Handlebars import to use the default export, resolving the “t.registerHelper is not a function” error and restoring correct rendering for custom prompts using {{{ input }}}.

Written for commit 253e43c. Summary will update automatically on new commits.

@AlanNggg AlanNggg requested a review from a team as a code owner November 17, 2025 14:42
@AlanNggg AlanNggg requested review from RomneyDa and removed request for a team November 17, 2025 14:42
@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Nov 17, 2025
@github-actions
Copy link

github-actions bot commented Nov 17, 2025

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

@AlanNggg
Copy link
Author

I have read the CLA Document and I hereby sign the CLA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

1 participant