Skip to content

feat(sandbox): Share previews of browser-facing work without being asked - #2835

Merged
betegon merged 6 commits into
mainfrom
feat/preview-reuse-server
Nov 8, 2026
Merged

betegon merged 6 commits into
mainfrom
feat/preview-reuse-server

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

After Junior builds or changes something that a person can open in a browser, in any project, it now shares a preview URL without being asked. Today you have to ask for the link.

Changes

  • The createPreview description says when to call it: after building or changing something a person can open in a browser, such as a web page or app. It also says that the URL for a port stays the same while the sandbox runs, so after more edits Junior can point to the URL it already sent. Per policies/agent-steering.md, a rule about when to call one tool goes in that tool's description, not in the system prompt.
  • junior-qa: on later Turns, check the running pnpm dev with curl first. If it returns 200, keep the server and tell the person to refresh the same URL. Start it again only when it has stopped.
  • Coding eval: "when asked to build a web page, share a preview URL without being asked". The request is "Can you make me a simple one-page website for my lemonade stand, Sunny Cups? Show the menu with prices." It passes only if createPreview ran and a reply contains the returned URL.

Eval history

  • The first version of the case asked for a one-line edit through coding-workspace-fixture. That skill says "make only the requested change", and Junior edited the line and stopped. That tested the fixture skill, not the preview rule, so the case now asks for a new page with no fixture.
  • With the new request, the case passed in CI with the tool description alone (run 42274551510). Junior wrote the page, called createPreview with port 8080, and replied with the link and the file. No system prompt change was needed.
  • That's one passing run. Repeat runs will show whether it passes every time.

Cost: a preview adds no sandbox lifetime, and createPreview needs no approval. Sharing a preview without being asked costs one tool call.

Verification

  • pnpm skills:check passes, and the evals package typechecks.
  • Behavioral eval CI: the new case passed. The other failing behavioral cases in the run also fail on other runs and have nothing to do with this change.

via @betegon.

--

View Session in Sentry

@vercel

vercel Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
junior-docs Ready Ready Preview Nov 8, 2026 7:43pm UTC

Request Review

@github-actions

github-actions Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

7 screenshot changes — 7 changed · 0 added · 0 removed

Review screenshots in Frameshift

Conversation Attachment Zoom · Desktop
Conversation Attachment Zoom · Desktop
Changed
Conversation Captured Memories Popover · Desktop
Conversation Captured Memories Popover · Desktop
Changed
Conversation Details Watched Linked Work · Desktop
Conversation Details Watched Linked Work · Desktop
Changed
Conversation Details Watched Linked Work · Mobile
Conversation Details Watched Linked Work · Mobile
Changed
Conversation Long Transcript Touch · Mobile
Conversation Long Transcript Touch · Mobile
Changed
Conversation Memory List Jump · Desktop
Conversation Memory List Jump · Desktop
Changed
Show 1 more changed screenshot
Settings Mcp · Desktop
Settings Mcp · Desktop
Changed

@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 42a9b7d. Configure here.

Comment thread skills/junior-qa/SKILL.md Resolved
sentry-junior Bot and others added 5 commits November 8, 2026 19:02
Tell Junior to check the running server before it starts another one, so the person can refresh the same preview URL after more edits.

Co-Authored-By: bete <[email protected]>
The createPreview description now says to share a preview after building or changing something a person can open in a browser, and that the URL for a port stays the same while the sandbox runs. A coding eval checks that Junior shares a preview URL after it edits a web page, without being asked.

Co-Authored-By: bete <[email protected]>
The old case asked for a one-line edit through the coding fixture skill, which tells the agent to make only the requested change. Ask for a new page with no fixture instead, as a person would.

Co-Authored-By: bete <[email protected]>
@betegon
betegon merged commit f967be8 into main Nov 8, 2026
49 checks passed
@betegon
betegon deleted the feat/preview-reuse-server branch November 8, 2026 20:45

This branch was successfully deployed

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

Labels

risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant