Skip to content

fix(mcp): restore inline widget (Claude-safe) + graceful ChatGPT fallback - #138

Merged
windoze95 merged 1 commit into
mainfrom
fix/mcp-widget-restore-inline
Jul 8, 2026
Merged

fix(mcp): restore inline widget (Claude-safe) + graceful ChatGPT fallback#138
windoze95 merged 1 commit into
mainfrom
fix/mcp-widget-restore-inline

Conversation

@windoze95

Copy link
Copy Markdown
Owner

Cleanup after the ChatGPT-widget investigation. ChatGPT's sandbox won't run our widget's script (inline or external), so:

  • Revert the externalization (fix(mcp): serve widget JS externally (ChatGPT sandbox) #137) back to the inline script (protects the Claude widget, which works) and drop /mcp-widget.js, app.js, and the CSP/route changes.
  • Graceful fallback: replace the perpetual Warming up the kitchen… with a small branded static card, so ChatGPT (tools-first there) shows a clean card instead of a stuck spinner.
  • Remove the temp diagnostic; keep a clean window.openai delivery-poll as groundwork for a future Apps-SDK build.

Build/vet/test pass; JS syntax-checked.

🤖 Generated with Claude Code

…back

ChatGPT's widget sandbox won't execute our widget's script (inline or external), so the externalization (#137) didn't help and risked regressing the Claude widget, which renders fine. This reverts the externalization (back to the inline script + drops /mcp-widget.js, app.js, and the CSP/route changes) to protect Claude.

- Replace the perpetual 'Warming up the kitchen…' loading note with a graceful branded static fallback (Sb · SaltyBytes), so ChatGPT (where the script can't run and the tools narrate the recipe in text) shows a clean card, not a stuck spinner.

- Remove the temporary debug diagnostic; keep a clean window.openai delivery-poll as groundwork for a future ChatGPT Apps-SDK build.

Tools work in both hosts; the interactive widget renders in Claude. ChatGPT = tools-first.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@windoze95
windoze95 merged commit abefab7 into main Jul 8, 2026
1 check passed
@windoze95
windoze95 deleted the fix/mcp-widget-restore-inline branch July 8, 2026 00:14
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