fix: agent panel renders unstyled (missing Tailwind import)#18
Merged
Conversation
…entry The agent-panel Vite entry only imported i18n, not App.css (which carries `@import "tailwindcss"` + theme). Tailwind is bundled per-entry, so the panel shipped with zero CSS: every utility class (bg-zinc-900, flex, ...) was dead and the panel rendered as invisible dark text on its transparent window — looked "broken/blank" in any properly-served build. Fix: import "@/App.css" in agent-panel/main.tsx (same source the main app uses). Also normalize index.html script src to an absolute path, matching the proven overlay entry. Verified via CDP DOM inspection (GDI screenshots are unreliable for transparent GPU webviews): panel now renders flex layout, zinc-900 bg, light text, 3 buttons, live countdown, Cyrillic question intact. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The Agent Bridge panel rendered as an invisible/blank window in any properly-served build. Root cause:
src/agent-panel/main.tsximported only i18n, notApp.css(which carries@import "tailwindcss"+ theme). Vite bundles CSS per entry, so the panel shipped with no stylesheet at all — every Tailwind utility class was dead and the content was invisible dark text on the window's transparent background.(Separately, the "page with only a refresh button" seen when launching the bare
target/debug/echo.exeis expected: debug builds load the UI from the Vite dev server at127.0.0.1:1420. Usenpm run tauri devor a release build.)Fix
agent-panel/main.tsx:import "@/App.css"(same Tailwind/theme source the main app uses)agent-panel/index.html: normalize script src to an absolute path, matching the proven overlay entryVerification
Reliable CDP DOM inspection (GDI screenshots are unreliable for transparent GPU webviews):
dist/src/agent-panel/index.htmlnow links/assets/App-*.cssdisplay: flex,background: oklch(0.21…)(zinc-900), light text, 3 buttons, live countdown, Cyrillic question intact.🤖 Generated with Claude Code