Skip to content

fix(agents): sync okstratr embed light/dark with Switchbay theme - #11

Merged
benjsmith merged 4 commits into
mainfrom
fix/agents-theme-sync
Oct 3, 2026
Merged

benjsmith merged 4 commits into
mainfrom
fix/agents-theme-sync

Conversation

@benjsmith

@benjsmith benjsmith commented Sep 29, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Remap okstratr observer CSS tokens on the proxied Agents mount from Switchbay :root[data-theme=light|dark] so desk/DAG match SPA chrome.
  • Accents use Switchbay mint (#2f9874 light / #6be8b3 dark), not Tokyo-night blue.
  • Light .chip remap no longer wipes .chip.running / .chip.idle (green/amber).
  • Theme toggle flips Agents live (CSS attribute selectors; no reload).
  • Depends on okstratr #30 for canvas DAG labels (fillStyle is not CSS-recolorable). Until that lands and is installed upstream of this mount, light-canvas labels stay unproven in a live Agents view.

Test plan

  • CSS unit: PYTHONPATH=src pytest tests/unit/test_agents_theme_sync_css.py — mint accents + status chip selectors
  • okstratr #30: pytest tests/test_observer_theme_canvas_colors.py — light #1a1d22 / dark #c0caf5 label resolution
  • Live Agents light+dark with okstratr #30 installed: readable DAG labels, green/amber status chips, mint accents

Proven / unproven

  • Proven (unit): Switchbay CSS accents + chip rules; okstratr theme color helper for light and dark.
  • Unproven (live UI): side-by-side Agents screenshots / checked paint with both themes in a running Switchbay+okstratr stack.

Observer CSS hard-codes Omarchy dark tokens on :root. Under same-document
embed those bleed into Switchbay light chrome (dark desk/DAG panels). Remap
okstratr vars on the proxied mount from :root[data-theme], so Agents matches
SPA tokens and the footer theme toggle flips without reload.

Signed-off-by: benjsmith <[email protected]>
Match Switchbay accents (#2f9874 / #6be8b3) on the okstratr mount.
Stop light-theme .chip !important from wiping .chip.running / .chip.idle.
Canvas DAG labels need okstratr fix/observer-theme-canvas-labels (#30).

Signed-off-by: benjsmith <[email protected]>
Placeholder rows use .desk-obj--standing, not .chip.idle. Keep that
badge on --warn in light and dark so a blanket color: var(--text)
cannot wash it gray.

Signed-off-by: benjsmith <[email protected]>
Windows CI uses cp1252 for Path.read_text() and dies on the UTF-8
arrow in index.css (byte 0x90). Assertions are unchanged.

Signed-off-by: benjsmith <[email protected]>
@benjsmith
benjsmith force-pushed the fix/agents-theme-sync branch from f13b8dc to 9872072 Compare October 3, 2026 09:15
@benjsmith
benjsmith merged commit 6caf4c1 into main Oct 3, 2026
7 checks passed
@benjsmith
benjsmith deleted the fix/agents-theme-sync branch October 3, 2026 10:55
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