Skip to content

feat(acp)!: mount ACP in every Junior app - #1678

Merged
gricha merged 4 commits into
mainfrom
t3code/acp-plugin
Aug 25, 2026
Merged

gricha merged 4 commits into
mainfrom
t3code/acp-plugin

Conversation

@gricha

@gricha gricha commented Aug 24, 2026 •

Copy link
Copy Markdown
Member

Every createApp() instance now mounts GET, POST, and DELETE /api/acp.
ACP needs no experimental flag, adapter, plugin, or separate package setup. The
implementation now lives in packages/junior/src/api/acp and directly reuses
Junior's state, API Turn mailbox, queue, Conversation access, and event paths.
It initializes lazily on the first ACP request. Dashboard-enabled apps advertise
Google browser authentication. Apps without the dashboard still expose ACP but
advertise no authentication methods.

This removes the public @sentry/junior-acp package, acpAdapter(),
createApp({ adapters }), and the generic app-adapter types. Existing apps must
remove that dependency, import, and option; /api/acp remains available without
replacement config. Personal tokens remain rejected.

The official ACP SDK smoke client completed browser authorization, two Turns,
and a reconnect with session/load through the real local route. The example
app also produced a valid Vercel Nitro bundle with the ACP SDK included.

@vercel

vercel Bot commented Aug 24, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
junior-docs Ready Ready Preview Aug 25, 2026 5:30pm

Request Review

@github-actions

github-actions Bot commented Aug 25, 2026 •

Copy link
Copy Markdown
Contributor

Dashboard visual evidence

Mode: path-selected
Selected: gallery-index

Triggered by:

  • packages/junior-dashboard/src/app.ts
  • packages/junior-dashboard/src/authenticated-routes.ts
  • packages/junior-dashboard/tests/dashboard-routes.test.ts

Component gallery index · desktop

Component gallery index · desktop

Full-page screenshots from the mock dashboard. Not a pixel-diff gate.

@gricha
gricha marked this pull request as ready for review August 25, 2026 00:55
@github-actions github-actions Bot added the risk: high PR risk score: high label Aug 25, 2026

@cursor cursor Bot 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.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 4fab223. Configure here.

Comment thread packages/junior/src/api/acp/route.ts Resolved
@gricha
gricha requested a review from dcramer August 25, 2026 01:00
gricha and others added 4 commits August 25, 2026 10:24
Let route plugins register host-authenticated User routes and use app metadata, Conversation operations, and plugin-scoped durable state. This defines the small host boundary needed to move protocol transports such as ACP out of createApp adapters.

Co-Authored-By: Codex <[email protected]>
Use plain route object types and the existing PluginState contract. Remove the route-specific lease and list types while preserving the capabilities needed to move ACP into a plugin.

Co-Authored-By: Codex <[email protected]>
Represent host authentication as an optional field on PluginRoute. Pass the resolved User as an optional handler argument instead of defining a second public route type.

Co-Authored-By: Codex <[email protected]>
@gricha
gricha force-pushed the t3code/acp-plugin branch from 4fab223 to fd2390e Compare August 25, 2026 17:29
@gricha
gricha merged commit 515d459 into main Aug 25, 2026
37 checks passed
@gricha
gricha deleted the t3code/acp-plugin branch August 25, 2026 17:36

This branch was successfully deployed

1 active deployment
Preview – junior-docs — fd2390e5 Deployed Aug 25, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: high PR risk score: high

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants