Skip to content

Add render UI button tool#572

Merged
jahooma merged 1 commit intomainfrom
jahooma/render-button-tool
Apr 30, 2026
Merged

Add render UI button tool#572
jahooma merged 1 commit intomainfrom
jahooma/render-button-tool

Conversation

@jahooma
Copy link
Copy Markdown
Contributor

@jahooma jahooma commented Apr 30, 2026

Summary

Add a render_ui tool with an initial button widget for opening links from the CLI. The tool schema is shared through common tool definitions, wired into agent runtime, exposed to base2, and rendered in the CLI with theme-aware primary/secondary variants plus a URL fallback if opening fails. The generated tool type helpers now preserve JSON Schema const values so widget discriminants remain literal types.

Validation

  • bun test cli/src/components/tools/__tests__/render-ui.test.tsx
  • bun run --cwd cli typecheck
  • bun run --cwd sdk typecheck
  • bun run --cwd packages/agent-runtime typecheck
  • bun run --cwd agents typecheck

Copy link
Copy Markdown
Contributor

@greptile-apps greptile-apps Bot left a comment

Choose a reason for hiding this comment

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

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

@jahooma jahooma force-pushed the jahooma/render-button-tool branch from 29ceaca to e1f128e Compare April 30, 2026 20:32
@jahooma jahooma merged commit b1f1bd8 into main Apr 30, 2026
34 checks passed
@jahooma jahooma deleted the jahooma/render-button-tool branch April 30, 2026 20:41
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