Skip to content

Feat/prototype agents; feature flagged#432

Merged
matthewlouisbrockman merged 20 commits into
mainfrom
feat/prototype-agents
Jun 19, 2026
Merged

Feat/prototype agents; feature flagged#432
matthewlouisbrockman merged 20 commits into
mainfrom
feat/prototype-agents

Conversation

@matthewlouisbrockman

@matthewlouisbrockman matthewlouisbrockman commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

/agents starter page links to /sbx/new and passes template and command

barebones for now, just lists templates and directs to /sbx/new?template=foo&command=bar

@vercel

vercel Bot commented Jun 17, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
web Ready Ready Preview, Comment Jun 19, 2026 12:53am

Request Review

@cursor

cursor Bot commented Jun 17, 2026

Copy link
Copy Markdown

PR Summary

Medium Risk
Creates sandboxes and runs user-editable shell commands after confirmation; changes affect auth redirects and terminal URL resolution across several entry points.

Overview
Adds an agentsEnabled server feature flag and a team /dashboard/[teamSlug]/agents page (404 when the flag is off) that lists Codex, Claude, and OpenCode cards linking to /sbx/new?template=…&command=….

/sbx/new now requires a normalized template (no longer hardcodes base), preserves query on sign-in returnTo, creates the sandbox from that template, and redirects to the sandbox terminal with template and optional command query params.

Terminal routing passes command into SandboxTerminalView / DashboardTerminal. The standalone /dashboard/terminal page can open with template-only (no sandbox id); resolving an existing sandbox now returns template alias/id from the infra GET response. The pre-run command dialog uses an editable textarea and confirmPendingLaunch takes the trimmed command from that step.

Reviewed by Cursor Bugbot for commit 119c72d. Bugbot is set up for automated code reviews on this repo. Configure here.

Comment thread src/features/dashboard/agents/agents-list.tsx
Comment thread src/app/dashboard/[teamSlug]/sandboxes/[sandboxId]/terminal/page.tsx Outdated
Comment thread src/features/dashboard/sandbox/terminal/view.tsx Outdated

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 96116bb3cb

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/features/dashboard/sandbox/terminal/view.tsx Outdated
Comment thread src/features/dashboard/sandbox/terminal/view.tsx

@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 1c387c8. Configure here.

Comment thread src/features/dashboard/agents/agents-list.tsx
@matthewlouisbrockman matthewlouisbrockman changed the title Feat/prototype agents Feat/prototype agents; feature flagged Jun 18, 2026
# Conflicts:
#	src/features/dashboard/terminal/dashboard-terminal.tsx
Comment on lines +36 to +42
const sandboxTemplateId = sandboxInfo?.templateID
const launchTarget = {
sandboxId,
template: sandboxTemplateId,
}
const launchTarget = useMemo(
() => ({
command,
sandboxId,
template: template ?? sandboxTemplateId,
}),

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nit: please use sandboxInfo.alias ?? .templateID here

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

kk, fixed both here and in the display

@matthewlouisbrockman matthewlouisbrockman merged commit e8e6577 into main Jun 19, 2026
14 checks passed
@matthewlouisbrockman matthewlouisbrockman deleted the feat/prototype-agents branch June 19, 2026 00:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants