Skip to content

Tiny Sunny: the chat on useBase44Chat (preview) - #81

Closed
amitbardos wants to merge 7 commits into
mainfrom
amitb/tiny-sunny-hook-preview
Closed

amitbardos wants to merge 7 commits into
mainfrom
amitb/tiny-sunny-hook-preview

Conversation

@amitbardos

Copy link
Copy Markdown
Contributor

Draft. Depends on base44/javascript-sdk#315 (@base44/platform/react's useBase44Chat). package.json still says @base44/platform@^0.1.0, which has no /react entry. Run it against #315's preview build:

npm install --no-save -w @base44/white-label-minimal "@base44/platform@npm:@base44-preview/platform@0.2.0-pr.315.49e926c"

Pin a published version here once #315 ships.

What

Tiny Sunny's chat moves from its own useLiveChat hook to the SDK's useBase44Chat.

  • useLiveChat.ts is gone. The SDK hook now owns the live socket, the merge of snapshot and events, and turning tool calls into questions.
  • Chat.tsx draws chat.items. A sent prompt shows at once as pending, and Tiny's status line follows status and connection. Send is off while the builder is busy, until the queue lands.
  • ToolQuestion.tsx draws each kind with the actions already bound to its tool call.
  • server/base44.ts passes Base44's socket-session body through unchanged, as the hook expects.
  • A new app with no preview yet is no longer reported as an error.

Stacked on top: base44/base44-platform-starter#80 moves the same chat onto Base44ChatProvider.

🤖 Generated with Claude Code

amitbardos and others added 7 commits October 16, 2026 16:49
…ocal preview)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The chat no longer remounts per app, so the first prompt survives create.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Base44 holds both requests open for the whole turn, and Next.js runs one
server action at a time, so every later prompt, answer and listApps waited
for the build to end and Base44's queue was never used. socketUrl follows the
hook's LiveSession.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ater

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…hook expects

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…cted or disconnected

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A new app has no latest preview until its first build gives it a slug, and
Base44 answers embed-url with 400 app_has_no_slug until then. getPreviewUrl
now returns null for that code, so the preview waits quietly instead of
logging an error that Next.js shows as a Console Error in development.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@netlify

netlify Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for base44-platform-starter ready!

Name Link
🔨 Latest commit 8df6afb
🔍 Latest deploy log https://app.netlify.com/projects/base44-platform-starter/deploys/6ad48e149b40c9be8ff49a97
😎 Deploy Preview https://deploy-preview-81--base44-platform-starter.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

❌ Deploy Preview for sunny44-builder failed.

Name Link
🔨 Latest commit 8df6afb
🔍 Latest deploy log https://app.netlify.com/projects/sunny44-builder/deploys/6ad48e14e58a0ec8c757b6f8

@amitbardos

Copy link
Copy Markdown
Contributor Author

Superseded by #79: the hook shipped in @base44/platform 0.3.0, so the preview build is no longer needed.

@amitbardos amitbardos closed this Oct 20, 2026
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