litellm/tests/unit/integrations/lens/proxy
tin-berri 1ad2dcb256
fix(lens): use the dashboard session in embedded Lens (#54248)
* fix(lens): reuse the dashboard login for embedded sessions

* fix(lens): keep the later-expiring login and explain account changes

Keep whichever valid dashboard token expires later so a stale stored
token cannot shorten the Lens session, resolve the session URL against
the page, and show a reload prompt when the dashboard account changed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(lens): follow the dashboard login instead of reconciling cookies

Lens now takes whatever valid login the dashboard holds: the handoff
validates the dashboard's token and writes it as the Lens cookie. This
drops the expiry comparison and the account-conflict branch, so Lens
expires exactly when the dashboard does. Resolve the session URL
against the page so a relative base cannot throw.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(lens): preserve the current login during dashboard handoff

* fix(lens): authenticate embedded UI with dashboard bearer

* fix(lens): remove cookie reconciliation from embedded sessions

* fix(lens): bind frame credentials to the mounted dashboard session

* fix(lens): follow the dashboard authorized session

* test(lens): cover competing dashboard session cookies

* fix(lens): preserve embedding for older Lens builds

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 14:45:07 -08:00
..
__init__.py
test_adapter.py feat(lens): add key and team tracing controls (#53191) 2026-11-23 17:59:37 +00:00
test_buffering.py feat(lens): show the Lens UI served by the connected Lens in the dashboard (#53473) 2026-11-21 19:55:54 -08:00
test_model_gateway.py feat(lens): provision a model key for embedded Lens (#53900) 2026-11-23 18:18:53 -08:00
test_pages.py fix(lens): use the dashboard session in embedded Lens (#54248) 2026-11-25 14:45:07 -08:00
test_tracing_endpoints.py feat(lens): add key and team tracing controls (#53191) 2026-11-23 17:59:37 +00:00