Skip to content

Tiny Sunny: show why Base44 refused live updates - #53

Closed
amitbardos wants to merge 1 commit into
mainfrom
fix/socket-session-reason
Closed

amitbardos wants to merge 1 commit into
mainfrom
fix/socket-session-reason

Conversation

@amitbardos

Copy link
Copy Markdown
Contributor

After #52, tiny.sunny44.com still pauses live updates with "needs a workspace key with the apps:watch scope", even with the scope added.

POST /api/service/socket-sessions returns 403 for three reasons (apper backend/app/whitelabel_sockets/api.py):

  • scope_required: the key lacks apps:watch
  • whitelabel_sockets_disabled: the workspace doesn't have both base44-for-platforms and whitelabel-websockets
  • app_not_allowed: the key isn't granted the app (watch is an app-targeted scope)

The example mapped every 401/403 to the scope message, and the chat showed only "Live updates paused". It now passes Base44's error.message through, and the chat shows it when it comes from our server. Socket errors keep the generic message.

Unit tests, typecheck and the 22 Playwright tests pass.

🤖 Generated with Claude Code

Opening a socket session can be refused for a missing apps:watch scope,
a workspace without white-label sockets, or an app the key isn't granted.
The example reported all of them as a missing scope and the UI showed a
generic message; it now passes Base44's reason through to the chat.

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

netlify Bot commented Oct 4, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for base44-platform-starter ready!

Name Link
🔨 Latest commit 5b96b0f
🔍 Latest deploy log https://app.netlify.com/projects/base44-platform-starter/deploys/6ac2628ce88c900008546b10
😎 Deploy Preview https://deploy-preview-53--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 4, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for sunny44-builder ready!

Name Link
🔨 Latest commit 5b96b0f
🔍 Latest deploy log https://app.netlify.com/projects/sunny44-builder/deploys/6ac2628ca804550008969049
😎 Deploy Preview https://deploy-preview-53--sunny44-builder.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.

@amitbardos

Copy link
Copy Markdown
Contributor Author

The files this changes (useBuilderSocket.ts, socket-session.ts) are no longer on main; Tiny Sunny's live updates now go through the SDK (#79).

@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