Skip to content

Add customActionRenderers for client-side tool pause UI - #442

Merged
govindavashishtha merged 2 commits into
mainfrom
feat/custom-action-renderers
Aug 26, 2026
Merged

govindavashishtha merged 2 commits into
mainfrom
feat/custom-action-renderers

Conversation

@govindavashishtha

Copy link
Copy Markdown
Contributor

Summary

  • Add customActionRenderers on TrueForgeUI so hosts can register per-tool UI that replaces the composer when a matching client-side tool is pending
  • Wire pause detection and CustomActionContainer so registered renderers resume the turn via onSubmit(content)
  • Export the new APIs and cover them with unit tests; include a minor changeset for @truefoundry/trueforge-ui

Test plan

  • Register a customActionRenderers entry for a client-side tool and confirm the custom UI mounts instead of Ask User / the composer
  • Submit from the custom renderer and confirm the tool response is sent and the composer returns
  • Confirm unregistered pending tools still show Ask User
  • Confirm MCP auth pause still takes precedence over pending tool responses
  • Run pnpm --filter @truefoundry/trueforge-ui test

Made with Cursor

…h custom UI.

When a pending tool matches a registered renderer, the composer mounts that UI instead of Ask User and resumes via onSubmit(content).

Co-authored-by: Cursor <cursoragent@cursor.com>
@changeset-bot

changeset-bot Bot commented Aug 26, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 2e3e69c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@truefoundry/trueforge-ui Minor
frontend Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@govindavashishtha
govindavashishtha enabled auto-merge (squash) August 26, 2026 11:56
@govindavashishtha
govindavashishtha merged commit 16feb29 into main Aug 26, 2026
7 checks passed
@govindavashishtha
govindavashishtha deleted the feat/custom-action-renderers branch August 26, 2026 12:19
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.

2 participants