Panelize
Panelize copied to clipboard
Support Meta Muse (muse.ai) as an optional provider
Summary
Add support for Meta Muse (https://muse.ai/) as an optional AI provider in Panelize so users can compare Muse responses side-by-side alongside existing providers.
Feasibility & Technical Notes (Probed 2026-11-11)
1. Entry URLs & Routing
- Base / Login-safe URL:
https://muse.ai/(topLevelUrl: https://muse.ai/)- Unauthenticated
GET https://muse.ai/returnsHTTP/2 200with the login UI, whereas unauthenticatedGET https://muse.ai/thread/newreturns rawHTTP/2 401 {"error":"Authentication required"}. Keephttps://muse.ai/as the default panelurl.
- Unauthenticated
- Conversation Semantics:
/(alias/thread/main) is a persistent singleton Main Chat stream backed by the user's Muse Secure VM./thread/new(-> /thread/:sessionId) opens a fresh Side Chat thread when authenticated; use/thread/new(or the in-page New Thread control) when triggering New Chat in an authenticated session.
- Query Prefill:
https://muse.ai/?prompt=<encoded>is natively recognized.
2. Permissions & declarativeNetRequest Framing Headers
- Register as an Optional Provider (
optional_host_permissions+OPTIONAL_PROVIDER_CONFIGSinmodules/optional-provider-access.js) so existing Chrome Web Store installations are not disabled on update. - Recommended
optionalOrigins:https://muse.ai/*https://auth.muse.ai/*(OIDC callback / session refresh subdomain)- Verify whether
https://agent.meta.ai/*(SSO broker origin) is also required during live testing.
- Framing Headers:
https://muse.ai/responds withx-frame-options: SAMEORIGINandcontent-security-policy: ... frame-ancestors 'self'. StrippingX-Frame-OptionsandContent-Security-Policyonsub_frameviacreateFrameRuleenables panel embedding. Trusted Types are not enforced.
3. Authentication & Streaming Transport
- Top-Level Login Required: Meta OIDC (
https://muse.ai/api/oidc/start->https://auth.meta.com/oidc) setsSameSite=Laxcookies andauth.meta.comsendsx-frame-options: DENY, so initial SSO login must be completed in a top-level browser tab via Panelize's "Open in new tab" button. - Passkey Note:
muse.aisendspermissions-policy: publickey-credentials-get=(self); if in-panel passkey login is desired,<iframe allow="...">inmulti-panel/multi-panel.jswould needpublickey-credentials-get. - WebSocket Streaming: CSP
connect-srclistswss://gateway.meta.ai,wss://edge-chat-latest.meta.ai,wss://edge-chat.meta.ai, andwss://shortwave.meta.ai. Verify live in an authenticated session whether WS connections authenticate via explicit token or cookies inside an extension subframe.
4. Composer, Submit & Privacy Mode
- Composer: Next.js (React 19) app supporting Lexical (
div[contenteditable="true"][data-lexical-editor="true"]viadocument.execCommand('insertText')) and<textarea data-slot="textarea">(via prototype value setter +inputevent); verify exact authenticated composer DOM priority during implementation. - Submit & Stop Guard: Supports
Enterkey submit and Send button click; exclude[aria-label*="Stop" i]/[aria-label*="Cancel" i]inButtonFinderUtilsso streaming responses are not cancelled on send. - Privacy / Temporary Chat: Not supported by
muse.ai(all interactions run in the persistent Muse Secure VM without an incognito/temporary mode), so omit fromTEMP_CHAT_SUPPORTED_PROVIDERS.
Closing as completed via #106 (shipped in v2.2.0), which added custom Web UI provider support with runtime origin permissions, dynamic framing header rules, and the generic custom provider driver (including Lexical editor support). https://muse.ai/ can now be added directly as a custom AI website in Options.