Skip to content

feat(service-ai): consistent agent narration when builds auto-publish#1672

Merged
os-zhuang merged 1 commit into
mainfrom
feat/ai-auto-publish-narration
Jun 10, 2026
Merged

feat(service-ai): consistent agent narration when builds auto-publish#1672
os-zhuang merged 1 commit into
mainfrom
feat/ai-auto-publish-narration

Conversation

@os-zhuang

Copy link
Copy Markdown
Contributor

What

The metadata agent couldn't see whether an environment auto-publishes AI builds, so it hedged ("staged for review / publish to make it live") even after a build went live — contradicting the UI's Published state.

buildSystemMessages now reads context.autoPublishAiBuilds: when on, the agent is told a finished whole-app build is live immediately and to say so. Absent/false keeps the conservative framing. The chat (objectui) passes the runtime flag in the chat context.

This is the optional polish on top of the auto-publish "magic moment" — the UI panel was already the source of truth; this makes the model's prose agree with it.

Changes

  • AgentChatContext: add autoPublishAiBuilds?: boolean
  • buildSystemMessages: append a "Publishing in this environment" note when on
  • tests: instruction present when on; silent when off/absent (service-ai suite 333 green)

🤖 Generated with Claude Code

…tent narration)

The metadata agent couldn't see whether an environment auto-publishes AI
builds, so it hedged ("staged for review / publish to make it live") even when
a build had already gone live — contradicting the UI's "Published" state.

buildSystemMessages now reads `context.autoPublishAiBuilds`: when the client
reports auto-publish is on, the agent is told a finished whole-app build is
live immediately and to say so (not "publish it to make it live"). Absent/false
keeps the conservative framing. Pairs with the chat (objectui) passing the
runtime flag in the chat context.

- AgentChatContext: add `autoPublishAiBuilds?: boolean`
- buildSystemMessages: append a "Publishing in this environment" note when on
- tests: instruction present when on; silent when off/absent

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@vercel

vercel Bot commented Jun 10, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
spec Building Building Preview, Comment Jun 10, 2026 2:32am

Request Review

@os-zhuang os-zhuang merged commit ef5478b into main Jun 10, 2026
9 of 11 checks passed
@os-zhuang os-zhuang deleted the feat/ai-auto-publish-narration branch June 10, 2026 02:32
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.

1 participant