litellm/tests/unit/integrations/lens
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
..
fixtures feat(lens): send the calling agent's framework, task and session on gateway traces (#53186) 2026-11-20 21:31:02 +00:00
proxy fix(lens): use the dashboard session in embedded Lens (#54248) 2026-11-25 14:45:07 -08:00
__init__.py
test_config.py feat(lens): add key and team tracing controls (#53191) 2026-11-23 17:59:37 +00:00
test_exporter.py feat(lens): add key and team tracing controls (#53191) 2026-11-23 17:59:37 +00:00
test_otlp_http.py
test_policy.py feat(lens): add key and team tracing controls (#53191) 2026-11-23 17:59:37 +00:00
test_queries.py
test_receiver.py
test_remote.py feat(lens): add key and team tracing controls (#53191) 2026-11-23 17:59:37 +00:00
test_storage.py