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

vercelBot commented Jun 10, 2026

Copy link
Copy Markdown

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

ProjectDeploymentActionsUpdated (UTC)
specBuildingBuildingPreview, CommentJun 10, 2026 2:32am

Request Review

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@os-zhuang