Skip to content

fix(studio): Build chat on a playground says AI is left out, not unreachable - #122

Merged
Madraka merged 1 commit into
mainfrom
fix/playground-build-chat
Oct 23, 2026
Merged

Madraka merged 1 commit into
mainfrom
fix/playground-build-chat

Conversation

@Madraka

@Madraka Madraka commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

What

On try.cloudhal.com, the Build page said "This deployment can't reach Workers AI". The playground leaves AI out by design (RFC-0036 §5), so that read like a broken deployment. On a playground, Build chat now says "Available in your own install" ("Build with AI" runs on Workers AI, which the playground leaves out) and links to deploying Cloudhal (features.playground.deployUrl), like the other screens a playground leaves out.

  • BuildChat's waiting states (loading, playground, unreachable, off) move into BuildChatOff. BuildChat goes from 209 to 200 lines (size baseline updated).
  • One new string, build.chat.playgroundHint. The 18 other languages are AI drafts awaiting review, added through pnpm i18n:export / i18n:import, and each uses that language's existing name for "Build with AI".
  • build-chat.test.tsx: the fetch mock now answers /api/instance, and a new test covers the playground case.

This is the Workers AI half of the playground item. The other half, the broken demo image, is fixed in cloudhal-dev/try#6. Studio's sandboxed preview sends no session cookie, so the playground answered /media/… with a redirect. The try repo also needs the version bump once this ships.

Checklist

  • Studio typecheck and its whole suite (79 files, 1275 tests), Biome, design:lint, size check and the i18n tests pass locally
  • Contract change? No
  • Changeset added (@cloudhal/cli patch, which ships Studio)
  • Commits are signed off
  • Docs: none needed

🤖 Generated with Claude Code

…achable

The playground blocks AI by design (RFC-0036 §5), so Build chat showed
"This deployment can't reach Workers AI" there. It now shows
"Available in your own install" with a deploy link. The empty states
move into BuildChatOff (BuildChat shrinks under the size limit).
Translations are AI drafts awaiting review.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Madraka <8898640+Madraka@users.noreply.github.com>
@Madraka
Madraka merged commit d466690 into main Oct 23, 2026
4 checks passed
@Madraka
Madraka deleted the fix/playground-build-chat branch October 23, 2026 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant