Skip to content

feat(composer): re-export canonical AgentComposer from sandbox-ui#156

Merged
drewstone merged 1 commit into
mainfrom
feat/composer-reexport
Jun 30, 2026
Merged

feat(composer): re-export canonical AgentComposer from sandbox-ui#156
drewstone merged 1 commit into
mainfrom
feat/composer-reexport

Conversation

@drewstone

Copy link
Copy Markdown
Contributor

Problem

agent-app ships its own chat-composer / agent-session-controls / provider-logo in web-react, which duplicate @tangle-network/sandbox-ui. Apps wanting the canonical, best-in-class composer had to wire sandbox-ui themselves.

Change

Add an opt-in @tangle-network/agent-app/composer entry that re-exports the canonical AgentComposer + AgentProfilePicker (plus the session-control, reasoning, and harness↔model snapping kit, and the ModelInfo/HarnessType types) from sandbox-ui. New UI should prefer this over the legacy web-react composer.

  • Blast-radius-minimal: a dedicated subpath, so @tangle-network/sandbox-ui stays an optional peer for every other consumer — only code importing /composer pulls it. The existing web-react composer is untouched (no breaking changes).
  • Bump the sandbox-ui floor ^0.44^0.59 (dep + peer) so AgentComposer resolves.

Why

This is the last leg of unifying the chat composer across the stack: sandbox-ui owns the one design (0.59), the sandbox marketing hero and tuner-agent now consume it, and this exposes it through the substrate every agent-app app already depends on. Follow-up (separate, higher-blast-radius): migrate agent-app's own web-react composer to delegate to AgentComposer and retire the duplicate.

Tests / proof

  • ESM + DTS build green; dist/composer/index.{js,d.ts} emit and re-export AgentComposer.

Add an opt-in `@tangle-network/agent-app/composer` entry that re-exports the
canonical AgentComposer + AgentProfilePicker (and the session-control / reasoning
/ snapping kit) from @tangle-network/sandbox-ui, so agent-app apps adopt the one
shared chat input box without each wiring sandbox-ui directly. New UI should
prefer this over the legacy web-react composer.

Additive and blast-radius-minimal: a dedicated subpath, so sandbox-ui stays an
optional peer for everyone else; the existing web-react composer is untouched.
Bump the sandbox-ui floor ^0.44 → ^0.59 (dep + peer) for AgentComposer.

ESM + DTS build green; the composer entry emits and re-exports AgentComposer.

@tangletools tangletools left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

✅ Auto-approved drewstone PR — c7604590

This PR was opened by the trusted drewstone account.
The full PR reviewer audit still runs separately and will publish findings if it detects issues.

tangletools · auto-approval · reason: drewstone_author · 2026-06-30T00:21:36Z

@drewstone drewstone merged commit 1b6a675 into main Jun 30, 2026
1 check 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.

2 participants