Skip to content

fix: agent panel renders unstyled (missing Tailwind import)#18

Merged
master5d merged 1 commit into
mainfrom
fix/agent-panel-styling
Jun 14, 2026
Merged

fix: agent panel renders unstyled (missing Tailwind import)#18
master5d merged 1 commit into
mainfrom
fix/agent-panel-styling

Conversation

@master5d

Copy link
Copy Markdown
Owner

Problem

The Agent Bridge panel rendered as an invisible/blank window in any properly-served build. Root cause: src/agent-panel/main.tsx imported only i18n, not App.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.exe is expected: debug builds load the UI from the Vite dev server at 127.0.0.1:1420. Use npm run tauri dev or 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 entry

Verification

Reliable CDP DOM inspection (GDI screenshots are unreliable for transparent GPU webviews):

  • dist/src/agent-panel/index.html now links /assets/App-*.css
  • Panel DOM with an active question: display: flex, background: oklch(0.21…) (zinc-900), light text, 3 buttons, live countdown, Cyrillic question intact.

🤖 Generated with Claude Code

…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>
@master5d master5d merged commit 4ac0b02 into main Jun 14, 2026
3 checks passed
@master5d master5d deleted the fix/agent-panel-styling branch June 14, 2026 07:57
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