peregrine/app/components
pyr0ball a8b08f3a45
Some checks failed
CI / test (push) Failing after 20s
fix: prevent Vue-nav reload loop when running without Caddy proxy
sync_ui_cookie() was calling window.parent.location.reload() on every
render when user.yaml has ui_preference=vue, but no Caddy is in the
traffic path (test instances, bare Docker). This caused an infinite
reload loop because the reload just came back to Streamlit.

Gate the reload on PEREGRINE_CADDY_PROXY=1. Without it, the cookie is
still written silently but no reload is attempted. Add the env var to
compose.yml and compose.cloud.yml (both are behind Caddy); omit from
compose.test-cfcore.yml so test instances stay stable.
2026-04-01 08:21:15 -07:00
..
paste_image_ui feat: paste/drag-drop image component, remove server-side Playwright capture button 2026-03-03 14:40:47 -08:00
__init__.py feat(linkedin): add shared LinkedIn import Streamlit widget 2026-03-13 10:32:23 -07:00
demo_toolbar.py fix(demo): remove reload antipattern, fix label consistency in demo_toolbar tests 2026-03-22 16:27:20 -07:00
linkedin_import.py fix(linkedin): update selectors for 2025 public DOM; surface login-wall limitation in UI 2026-03-13 19:47:21 -07:00
paste_image.py feat: paste/drag-drop image component, remove server-side Playwright capture button 2026-03-03 14:40:47 -08:00
ui_switcher.py fix: prevent Vue-nav reload loop when running without Caddy proxy 2026-04-01 08:21:15 -07:00