feat(mcp): notify users website CDN deployment can take up to 5 minutes - #664
Merged
Conversation
Kody Review CompleteGreat news! 🎉 Keep up the excellent work! 🚀 Kody Guide: Usage and ConfigurationInteracting with Kody
Current Kody ConfigurationReview OptionsThe following review options are enabled or disabled:
|
pcfreak30
marked this pull request as ready for review
September 1, 2026 22:34
Code Coverage ReportTotal Coverage: 50.1% Generated from commit: cc2200f |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Guides the agent to tell users that after publishing or updating a website, the site can take up to 5 minutes to fully deploy to the CDN and may not resolve at its URL immediately.
Carried on all three
publish_websitedomain branches (platform subdomain, explicit label, custom domain) and theupdate_websiteflow, plus the website onboarding/update prompt templates. Platform-domain validation remains instant — the notice covers CDN deployment only.Summary
This PR updates the MCP (Model Context Protocol) agent guide and onboarding/update prompt templates to notify users that website CDN deployment can take up to 5 minutes after publishing or updating a site.
Changes
1. CDN deployment notice added to agent guide (
internal/mcp/agent_guide.go)A new
cdnDeployNoticeClausewas introduced and appended to all website publish paths (generic platform subdomain, explicit label, custom domain) and the website update flow. The notice instructs the agent to inform the user that a newly published or updated site can take up to 5 minutes to fully deploy to the CDN, so it may not be reachable at its URL immediately even though create/validation succeeded. This clarifies that CDN deployment is independent of validation (platform-domain validation is instant).2. Notice added to prompt templates (
internal/mcp/prompttemplates/website_onboarding.tmpl)3. Test coverage (
internal/mcp/agent_guide_test.go)Added a new test (
TestAgentGuideCDNDeployNotice) that verifies:update_websiteflow also carries the CDN deploy notice for all platform profilesPurpose
This change sets user expectations appropriately: after publishing or updating a website, users should be aware that the site may not be immediately reachable at its URL due to CDN deployment lag (up to 5 minutes), even when creation or validation succeeds instantly. This prevents confusion when users try to access the site right after deployment.