🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
fix(trace-ui): store trace tree width in local storage (#9757)
Nimar69915ae39251
diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex fa7c2124e9..4b97d6e62e 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -58,7 +58,7 @@ importers:version: 15.5.4(@babel/[email protected])(@opentelemetry/[email protected])(@playwright/[email protected])([email protected])([email protected]([email protected]))([email protected])next-auth:specifier: ^4.24.11- version: 4.24.11(patch_hash=cczsf6i6qe2m2htirvgxjtoclu)([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected]([email protected]))([email protected])+ version: 4.24.11(patch_hash=cczsf6i6qe2m2htirvgxjtoclu)([email protected](@babel/[email protected])(@opentelemetry/[email protected])(@playwright/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected]([email protected]))([email protected])nodemailer:specifier: ^7.0.9version: 7.0.9@@ -247,7 +247,7 @@ importers:version: 4.1.1next-auth:specifier: ^4.24.11- version: 4.24.11(patch_hash=cczsf6i6qe2m2htirvgxjtoclu)([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected]([email protected]))([email protected])+ version: 4.24.11(patch_hash=cczsf6i6qe2m2htirvgxjtoclu)([email protected](@babel/[email protected])(@opentelemetry/[email protected])(@playwright/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected]([email protected]))([email protected])nodemailer:specifier: ^7.0.9version: 7.0.9@@ -641,7 +641,7 @@ importers:version: 15.5.4(@babel/[email protected])(@opentelemetry/[email protected])(@playwright/[email protected])([email protected])([email protected]([email protected]))([email protected])next-auth:specifier: ^4.24.11- version: 4.24.11(patch_hash=cczsf6i6qe2m2htirvgxjtoclu)([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected]([email protected]))([email protected])+ version: 4.24.11(patch_hash=cczsf6i6qe2m2htirvgxjtoclu)([email protected](@babel/[email protected])(@opentelemetry/[email protected])(@playwright/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected]([email protected]))([email protected])next-query-params:specifier: ^5.1.0version: 5.1.0([email protected](@babel/[email protected])(@opentelemetry/[email protected])(@playwright/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected]([email protected]([email protected]))([email protected]))@@ -697,8 +697,8 @@ importers:specifier: ^10.1.0version: 10.1.0(@types/[email protected])([email protected])react-resizable-panels:- specifier: ^3.0.5+ specifier: ^3.0.6react-responsive:specifier: ^10.0.1version: 10.0.1([email protected])@@ -6627,9 +6627,6 @@ packages:resolution: {integrity: sha512-AlcaJBi/pqqJBIQ8U9Mcpc9i8Aqxn88Skv5d+xBX006BY5u8N3mGLHa5Lgppa7L/HfwgwLgZ6NYs+Ag6uUmJRA==}- resolution: {integrity: sha512-z4rE2Gxh7tvshQ4hluIT7XcFrgLIQaw9X3A+kTTRdovCz5PMukm/0QC/BKSYPj3omF5Qfypn9O/c5kgpmvYUCw==}-resolution: {integrity: sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==}@@ -11349,8 +11346,8 @@ packages:'@types/react':optional: true- resolution: {integrity: sha512-3z1yN25DMTXLg2wfyFrW32r5k4WEcUa3F7cJ2EgtNK07lnOs4mpM8yWLGunCpkhcQRwJX4fqoLcIh/pHPxzlmQ==}+ resolution: {integrity: sha512-b3qKHQ3MLqOgSS+FRYKapNkJZf5EQzuf6+RLiq1/IlTHw99YrZ2NJZLk4hQIzTnnIkRg2LUqyVinu6YWWpUYew==}peerDependencies:react: ^16.14.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rcreact-dom: ^16.14.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc@@ -13728,31 +13725,31 @@ snapshots:'@aws-sdk/util-endpoints': 3.821.0'@aws-sdk/util-user-agent-browser': 3.821.0'@aws-sdk/util-user-agent-node': 3.825.0- '@smithy/config-resolver': 4.3.3- '@smithy/core': 3.17.0- '@smithy/fetch-http-handler': 5.3.4- '@smithy/hash-node': 4.2.3- '@smithy/invalid-dependency': 4.2.3- '@smithy/middleware-content-length': 4.2.3- '@smithy/middleware-endpoint': 4.3.4- '@smithy/middleware-retry': 4.4.4- '@smithy/middleware-serde': 4.2.3- '@smithy/middleware-stack': 4.2.3- '@smithy/node-config-provider': 4.3.3- '@smithy/node-http-handler': 4.4.2- '@smithy/protocol-http': 5.3.3- '@smithy/smithy-client': 4.9.0- '@smithy/types': 4.8.0- '@smithy/url-parser': 4.2.3- '@smithy/util-base64': 4.3.0- '@smithy/util-body-length-browser': 4.2.0- '@smithy/util-body-length-node': 4.2.1- '@smithy/util-defaults-mode-browser': 4.3.3- '@smithy/util-defaults-mode-node': 4.2.4- '@smithy/util-endpoints': 3.2.3- '@smithy/util-middleware': 4.2.3- '@smithy/util-retry': 4.2.3- '@smithy/util-utf8': 4.2.0+ '@smithy/config-resolver': 4.1.4+ '@smithy/core': 3.5.3+ '@smithy/fetch-http-handler': 5.0.4+ '@smithy/hash-node': 4.0.4+ '@smithy/invalid-dependency': 4.0.4+ '@smithy/middleware-content-length': 4.0.4+ '@smithy/middleware-endpoint': 4.1.11+ '@smithy/middleware-retry': 4.1.12+ '@smithy/middleware-serde': 4.0.8+ '@smithy/middleware-stack': 4.0.4+ '@smithy/node-config-provider': 4.1.3+ '@smithy/node-http-handler': 4.0.6+ '@smithy/protocol-http': 5.1.2+ '@smithy/smithy-client': 4.4.3+ '@smithy/types': 4.3.1+ '@smithy/url-parser': 4.0.4+ '@smithy/util-base64': 4.0.0+ '@smithy/util-body-length-browser': 4.0.0+ '@smithy/util-body-length-node': 4.0.0+ '@smithy/util-defaults-mode-browser': 4.0.19+ '@smithy/util-defaults-mode-node': 4.0.19+ '@smithy/util-endpoints': 3.0.6+ '@smithy/util-middleware': 4.0.4+ '@smithy/util-retry': 4.0.5+ '@smithy/util-utf8': 4.0.0tslib: 2.8.1transitivePeerDependencies:- aws-crt@@ -13877,17 +13874,17 @@ snapshots:dependencies:'@aws-sdk/types': 3.821.0'@aws-sdk/xml-builder': 3.821.0- '@smithy/core': 3.17.0- '@smithy/node-config-provider': 4.3.3+ '@smithy/core': 3.5.3+ '@smithy/node-config-provider': 4.1.3'@smithy/property-provider': 4.0.4- '@smithy/protocol-http': 5.3.3+ '@smithy/protocol-http': 5.1.2'@smithy/signature-v4': 5.1.2- '@smithy/smithy-client': 4.9.0- '@smithy/types': 4.8.0- '@smithy/util-base64': 4.3.0- '@smithy/util-body-length-browser': 4.2.0- '@smithy/util-middleware': 4.2.3- '@smithy/util-utf8': 4.2.0+ '@smithy/smithy-client': 4.4.3+ '@smithy/types': 4.3.1+ '@smithy/util-base64': 4.0.0+ '@smithy/util-body-length-browser': 4.0.0+ '@smithy/util-middleware': 4.0.4+ '@smithy/util-utf8': 4.0.0fast-xml-parser: 4.4.1tslib: 2.8.1@@ -13920,7 +13917,7 @@ snapshots:'@aws-sdk/core': 3.825.0'@aws-sdk/types': 3.821.0'@smithy/property-provider': 4.0.4- '@smithy/types': 4.8.0+ '@smithy/types': 4.3.1tslib: 2.8.1'@aws-sdk/[email protected]':@@ -13948,12 +13945,12 @@ snapshots:dependencies:'@aws-sdk/core': 3.825.0'@aws-sdk/types': 3.821.0- '@smithy/fetch-http-handler': 5.3.4- '@smithy/node-http-handler': 4.4.2+ '@smithy/fetch-http-handler': 5.0.4+ '@smithy/node-http-handler': 4.0.6'@smithy/property-provider': 4.0.4- '@smithy/protocol-http': 5.3.3- '@smithy/smithy-client': 4.9.0- '@smithy/types': 4.8.0+ '@smithy/protocol-http': 5.1.2+ '@smithy/smithy-client': 4.4.3+ '@smithy/types': 4.3.1'@smithy/util-stream': 4.2.2tslib: 2.8.1@@ -14002,7 +13999,7 @@ snapshots:'@smithy/credential-provider-imds': 4.0.6'@smithy/property-provider': 4.0.4'@smithy/shared-ini-file-loader': 4.0.4- '@smithy/types': 4.8.0+ '@smithy/types': 4.3.1tslib: 2.8.1transitivePeerDependencies:- aws-crt@@ -14093,7 +14090,7 @@ snapshots:'@aws-sdk/types': 3.821.0'@smithy/property-provider': 4.0.4'@smithy/shared-ini-file-loader': 4.0.4- '@smithy/types': 4.8.0+ '@smithy/types': 4.3.1tslib: 2.8.1'@aws-sdk/[email protected]':@@ -14127,7 +14124,7 @@ snapshots:'@aws-sdk/types': 3.821.0'@smithy/property-provider': 4.0.4'@smithy/shared-ini-file-loader': 4.0.4- '@smithy/types': 4.8.0+ '@smithy/types': 4.3.1tslib: 2.8.1transitivePeerDependencies:- aws-crt@@ -14160,7 +14157,7 @@ snapshots:'@aws-sdk/nested-clients': 3.825.0'@aws-sdk/types': 3.821.0'@smithy/property-provider': 4.0.4- '@smithy/types': 4.8.0+ '@smithy/types': 4.3.1tslib: 2.8.1transitivePeerDependencies:- aws-crt@@ -14181,7 +14178,7 @@ snapshots:dependencies:'@aws-sdk/types': 3.821.0'@smithy/eventstream-codec': 4.0.4- '@smithy/types': 4.8.0+ '@smithy/types': 4.3.1tslib: 2.8.1'@aws-sdk/[email protected](@aws-sdk/[email protected])':@@ -14208,8 +14205,8 @@ snapshots:'@aws-sdk/[email protected]':dependencies:'@aws-sdk/types': 3.821.0- '@smithy/protocol-http': 5.3.3- '@smithy/types': 4.8.0+ '@smithy/protocol-http': 5.1.2+ '@smithy/types': 4.3.1tslib: 2.8.1'@aws-sdk/[email protected]':@@ -14243,8 +14240,8 @@ snapshots:'@aws-sdk/[email protected]':dependencies:'@aws-sdk/types': 3.821.0- '@smithy/protocol-http': 5.3.3- '@smithy/types': 4.8.0+ '@smithy/protocol-http': 5.1.2+ '@smithy/types': 4.3.1tslib: 2.8.1'@aws-sdk/[email protected]':@@ -14269,7 +14266,7 @@ snapshots:'@aws-sdk/[email protected]':dependencies:'@aws-sdk/types': 3.821.0- '@smithy/types': 4.8.0+ '@smithy/types': 4.3.1tslib: 2.8.1'@aws-sdk/[email protected]':@@ -14288,8 +14285,8 @@ snapshots:'@aws-sdk/[email protected]':dependencies:'@aws-sdk/types': 3.821.0- '@smithy/protocol-http': 5.3.3- '@smithy/types': 4.8.0+ '@smithy/protocol-http': 5.1.2+ '@smithy/types': 4.3.1tslib: 2.8.1'@aws-sdk/[email protected]':@@ -14372,9 +14369,9 @@ snapshots:'@aws-sdk/core': 3.825.0'@aws-sdk/types': 3.821.0'@aws-sdk/util-endpoints': 3.821.0- '@smithy/core': 3.17.0- '@smithy/protocol-http': 5.3.3- '@smithy/types': 4.8.0+ '@smithy/core': 3.5.3+ '@smithy/protocol-http': 5.1.2+ '@smithy/types': 4.3.1tslib: 2.8.1'@aws-sdk/[email protected]':@@ -14401,31 +14398,31 @@ snapshots:'@aws-sdk/util-endpoints': 3.821.0'@aws-sdk/util-user-agent-browser': 3.821.0'@aws-sdk/util-user-agent-node': 3.825.0- '@smithy/config-resolver': 4.3.3- '@smithy/core': 3.17.0- '@smithy/fetch-http-handler': 5.3.4- '@smithy/hash-node': 4.2.3- '@smithy/invalid-dependency': 4.2.3- '@smithy/middleware-content-length': 4.2.3- '@smithy/middleware-endpoint': 4.3.4- '@smithy/middleware-retry': 4.4.4- '@smithy/middleware-serde': 4.2.3- '@smithy/middleware-stack': 4.2.3- '@smithy/node-config-provider': 4.3.3- '@smithy/node-http-handler': 4.4.2- '@smithy/protocol-http': 5.3.3- '@smithy/smithy-client': 4.9.0- '@smithy/types': 4.8.0- '@smithy/url-parser': 4.2.3- '@smithy/util-base64': 4.3.0- '@smithy/util-body-length-browser': 4.2.0- '@smithy/util-body-length-node': 4.2.1- '@smithy/util-defaults-mode-browser': 4.3.3- '@smithy/util-defaults-mode-node': 4.2.4- '@smithy/util-endpoints': 3.2.3- '@smithy/util-middleware': 4.2.3- '@smithy/util-retry': 4.2.3- '@smithy/util-utf8': 4.2.0+ '@smithy/config-resolver': 4.1.4+ '@smithy/core': 3.5.3+ '@smithy/fetch-http-handler': 5.0.4+ '@smithy/hash-node': 4.0.4+ '@smithy/invalid-dependency': 4.0.4+ '@smithy/middleware-content-length': 4.0.4+ '@smithy/middleware-endpoint': 4.1.11+ '@smithy/middleware-retry': 4.1.12+ '@smithy/middleware-serde': 4.0.8+ '@smithy/middleware-stack': 4.0.4+ '@smithy/node-config-provider': 4.1.3+ '@smithy/node-http-handler': 4.0.6+ '@smithy/protocol-http': 5.1.2+ '@smithy/smithy-client': 4.4.3+ '@smithy/types': 4.3.1+ '@smithy/url-parser': 4.0.4+ '@smithy/util-base64': 4.0.0+ '@smithy/util-body-length-browser': 4.0.0+ '@smithy/util-body-length-node': 4.0.0+ '@smithy/util-defaults-mode-browser': 4.0.19+ '@smithy/util-defaults-mode-node': 4.0.19+ '@smithy/util-endpoints': 3.0.6+ '@smithy/util-middleware': 4.0.4+ '@smithy/util-retry': 4.0.5+ '@smithy/util-utf8': 4.0.0tslib: 2.8.1transitivePeerDependencies:- aws-crt@@ -14485,10 +14482,10 @@ snapshots:'@aws-sdk/[email protected]':dependencies:'@aws-sdk/types': 3.821.0- '@smithy/node-config-provider': 4.3.3- '@smithy/types': 4.8.0+ '@smithy/node-config-provider': 4.1.3+ '@smithy/types': 4.3.1'@smithy/util-config-provider': 4.0.0- '@smithy/util-middleware': 4.2.3+ '@smithy/util-middleware': 4.0.4tslib: 2.8.1'@aws-sdk/[email protected]':@@ -14552,9 +14549,9 @@ snapshots:'@aws-sdk/core': 3.825.0'@aws-sdk/nested-clients': 3.825.0'@aws-sdk/types': 3.821.0- '@smithy/property-provider': 4.2.3- '@smithy/shared-ini-file-loader': 4.3.3- '@smithy/types': 4.8.0+ '@smithy/property-provider': 4.0.4+ '@smithy/shared-ini-file-loader': 4.0.4+ '@smithy/types': 4.3.1tslib: 2.8.1transitivePeerDependencies:- aws-crt@@ -14613,8 +14610,8 @@ snapshots:'@aws-sdk/[email protected]':dependencies:'@aws-sdk/types': 3.821.0- '@smithy/types': 4.8.0- '@smithy/util-endpoints': 3.2.3+ '@smithy/types': 4.3.1+ '@smithy/util-endpoints': 3.0.6tslib: 2.8.1'@aws-sdk/[email protected]':@@ -14646,7 +14643,7 @@ snapshots:'@aws-sdk/[email protected]':dependencies:'@aws-sdk/types': 3.821.0- '@smithy/types': 4.8.0+ '@smithy/types': 4.3.1bowser: 2.11.0tslib: 2.8.1@@ -14654,7 +14651,7 @@ snapshots:dependencies:'@aws-sdk/types': 3.910.0'@smithy/types': 4.8.0- bowser: 2.12.1+ bowser: 2.11.0tslib: 2.8.1'@aws-sdk/[email protected]':@@ -14669,8 +14666,8 @@ snapshots:dependencies:'@aws-sdk/middleware-user-agent': 3.825.0'@aws-sdk/types': 3.821.0- '@smithy/node-config-provider': 4.3.3- '@smithy/types': 4.8.0+ '@smithy/node-config-provider': 4.1.3+ '@smithy/types': 4.3.1tslib: 2.8.1'@aws-sdk/[email protected]':@@ -14688,7 +14685,7 @@ snapshots:'@aws-sdk/[email protected]':dependencies:- '@smithy/types': 4.8.0+ '@smithy/types': 4.3.1tslib: 2.8.1'@aws-sdk/[email protected]':@@ -16559,7 +16556,7 @@ snapshots:'@next-auth/[email protected](@prisma/[email protected]([email protected]([email protected]))([email protected]))([email protected](patch_hash=cczsf6i6qe2m2htirvgxjtoclu)([email protected](@babel/[email protected])(@opentelemetry/[email protected])(@playwright/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected]([email protected]))([email protected]))':dependencies:- next-auth: 4.24.11(patch_hash=cczsf6i6qe2m2htirvgxjtoclu)([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected]([email protected]))([email protected])+ next-auth: 4.24.11(patch_hash=cczsf6i6qe2m2htirvgxjtoclu)([email protected](@babel/[email protected])(@opentelemetry/[email protected])(@playwright/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected]([email protected]))([email protected])'@next/[email protected]':dependencies:@@ -18640,7 +18637,7 @@ snapshots:'@smithy/[email protected]':dependencies:- '@smithy/types': 4.8.0+ '@smithy/types': 4.3.1tslib: 2.8.1'@smithy/[email protected]':@@ -18667,10 +18664,10 @@ snapshots:'@smithy/[email protected]':dependencies:- '@smithy/node-config-provider': 4.3.3- '@smithy/types': 4.8.0+ '@smithy/node-config-provider': 4.1.3+ '@smithy/types': 4.3.1'@smithy/util-config-provider': 4.0.0- '@smithy/util-middleware': 4.2.3+ '@smithy/util-middleware': 4.0.4tslib: 2.8.1'@smithy/[email protected]':@@ -18709,14 +18706,14 @@ snapshots:'@smithy/[email protected]':dependencies:- '@smithy/middleware-serde': 4.2.3- '@smithy/protocol-http': 5.3.3- '@smithy/types': 4.8.0- '@smithy/util-base64': 4.3.0- '@smithy/util-body-length-browser': 4.2.0- '@smithy/util-middleware': 4.2.3+ '@smithy/middleware-serde': 4.0.8+ '@smithy/protocol-http': 5.1.2+ '@smithy/types': 4.3.1+ '@smithy/util-base64': 4.0.0+ '@smithy/util-body-length-browser': 4.0.0+ '@smithy/util-middleware': 4.0.4'@smithy/util-stream': 4.2.2- '@smithy/util-utf8': 4.2.0+ '@smithy/util-utf8': 4.0.0tslib: 2.8.1'@smithy/[email protected]':@@ -18729,10 +18726,10 @@ snapshots:'@smithy/[email protected]':dependencies:- '@smithy/node-config-provider': 4.3.3+ '@smithy/node-config-provider': 4.1.3'@smithy/property-provider': 4.0.4- '@smithy/types': 4.8.0- '@smithy/url-parser': 4.2.3+ '@smithy/types': 4.3.1+ '@smithy/url-parser': 4.0.4tslib: 2.8.1'@smithy/[email protected]':@@ -18753,7 +18750,7 @@ snapshots:'@smithy/[email protected]':dependencies:'@aws-crypto/crc32': 5.2.0- '@smithy/types': 4.8.0+ '@smithy/types': 4.3.1'@smithy/util-hex-encoding': 4.0.0tslib: 2.8.1@@ -18766,7 +18763,7 @@ snapshots:'@smithy/[email protected]':dependencies:'@smithy/eventstream-serde-universal': 4.0.4- '@smithy/types': 4.8.0+ '@smithy/types': 4.3.1tslib: 2.8.1'@smithy/[email protected]':@@ -18776,7 +18773,7 @@ snapshots:'@smithy/[email protected]':dependencies:- '@smithy/types': 4.8.0+ '@smithy/types': 4.3.1tslib: 2.8.1'@smithy/[email protected]':@@ -18788,7 +18785,7 @@ snapshots:'@smithy/[email protected]':dependencies:'@smithy/eventstream-serde-universal': 4.0.4- '@smithy/types': 4.8.0+ '@smithy/types': 4.3.1tslib: 2.8.1'@smithy/[email protected]':@@ -18800,7 +18797,7 @@ snapshots:'@smithy/[email protected]':dependencies:'@smithy/eventstream-codec': 4.0.4- '@smithy/types': 4.8.0+ '@smithy/types': 4.3.1tslib: 2.8.1'@smithy/[email protected]':@@ -18813,10 +18810,10 @@ snapshots:'@smithy/[email protected]':dependencies:- '@smithy/protocol-http': 5.3.3+ '@smithy/protocol-http': 5.1.2'@smithy/querystring-builder': 4.0.4- '@smithy/types': 4.8.0- '@smithy/util-base64': 4.3.0+ '@smithy/types': 4.3.1+ '@smithy/util-base64': 4.0.0tslib: 2.8.1'@smithy/[email protected]':@@ -18843,9 +18840,9 @@ snapshots:'@smithy/[email protected]':dependencies:- '@smithy/types': 4.8.0+ '@smithy/types': 4.3.1'@smithy/util-buffer-from': 4.0.0- '@smithy/util-utf8': 4.2.0+ '@smithy/util-utf8': 4.0.0tslib: 2.8.1'@smithy/[email protected]':@@ -18868,7 +18865,7 @@ snapshots:'@smithy/[email protected]':dependencies:- '@smithy/types': 4.8.0+ '@smithy/types': 4.3.1tslib: 2.8.1'@smithy/[email protected]':@@ -18918,8 +18915,8 @@ snapshots:'@smithy/[email protected]':dependencies:- '@smithy/protocol-http': 5.3.3- '@smithy/types': 4.8.0+ '@smithy/protocol-http': 5.1.2+ '@smithy/types': 4.3.1tslib: 2.8.1'@smithy/[email protected]':@@ -18940,13 +18937,13 @@ snapshots:'@smithy/[email protected]':dependencies:- '@smithy/core': 3.17.0- '@smithy/middleware-serde': 4.2.3- '@smithy/node-config-provider': 4.3.3+ '@smithy/core': 3.5.3+ '@smithy/middleware-serde': 4.0.8+ '@smithy/node-config-provider': 4.1.3'@smithy/shared-ini-file-loader': 4.0.4- '@smithy/types': 4.8.0- '@smithy/url-parser': 4.2.3- '@smithy/util-middleware': 4.2.3+ '@smithy/types': 4.3.1+ '@smithy/url-parser': 4.0.4+ '@smithy/util-middleware': 4.0.4tslib: 2.8.1'@smithy/[email protected]':@@ -18974,13 +18971,13 @@ snapshots:'@smithy/[email protected]':dependencies:- '@smithy/node-config-provider': 4.3.3- '@smithy/protocol-http': 5.3.3+ '@smithy/node-config-provider': 4.1.3+ '@smithy/protocol-http': 5.1.2'@smithy/service-error-classification': 4.0.5- '@smithy/smithy-client': 4.9.0- '@smithy/types': 4.8.0- '@smithy/util-middleware': 4.2.3- '@smithy/util-retry': 4.2.3+ '@smithy/smithy-client': 4.4.3+ '@smithy/types': 4.3.1+ '@smithy/util-middleware': 4.0.4+ '@smithy/util-retry': 4.0.5tslib: 2.8.1uuid: 9.0.1@@ -19003,8 +19000,8 @@ snapshots:'@smithy/[email protected]':dependencies:- '@smithy/protocol-http': 5.3.3- '@smithy/types': 4.8.0+ '@smithy/protocol-http': 5.1.2+ '@smithy/types': 4.3.1tslib: 2.8.1'@smithy/[email protected]':@@ -19020,7 +19017,7 @@ snapshots:'@smithy/[email protected]':dependencies:- '@smithy/types': 4.8.0+ '@smithy/types': 4.3.1tslib: 2.8.1'@smithy/[email protected]':@@ -19039,7 +19036,7 @@ snapshots:dependencies:'@smithy/property-provider': 4.0.4'@smithy/shared-ini-file-loader': 4.0.4- '@smithy/types': 4.8.0+ '@smithy/types': 4.3.1tslib: 2.8.1'@smithy/[email protected]':@@ -19060,9 +19057,9 @@ snapshots:'@smithy/[email protected]':dependencies:'@smithy/abort-controller': 4.0.4- '@smithy/protocol-http': 5.3.3+ '@smithy/protocol-http': 5.1.2'@smithy/querystring-builder': 4.0.4- '@smithy/types': 4.8.0+ '@smithy/types': 4.3.1tslib: 2.8.1'@smithy/[email protected]':@@ -19080,7 +19077,7 @@ snapshots:'@smithy/[email protected]':dependencies:- '@smithy/types': 4.8.0+ '@smithy/types': 4.3.1tslib: 2.8.1'@smithy/[email protected]':@@ -19095,7 +19092,7 @@ snapshots:'@smithy/[email protected]':dependencies:- '@smithy/types': 4.8.0+ '@smithy/types': 4.3.1tslib: 2.8.1'@smithy/[email protected]':@@ -19111,7 +19108,7 @@ snapshots:'@smithy/[email protected]':dependencies:- '@smithy/types': 4.8.0+ '@smithy/types': 4.3.1'@smithy/util-uri-escape': 4.0.0tslib: 2.8.1@@ -19128,7 +19125,7 @@ snapshots:'@smithy/[email protected]':dependencies:- '@smithy/types': 4.8.0+ '@smithy/types': 4.3.1tslib: 2.8.1'@smithy/[email protected]':@@ -19142,7 +19139,7 @@ snapshots:'@smithy/[email protected]':dependencies:- '@smithy/types': 4.8.0+ '@smithy/types': 4.3.1'@smithy/[email protected]':dependencies:@@ -19155,7 +19152,7 @@ snapshots:'@smithy/[email protected]':dependencies:- '@smithy/types': 4.8.0+ '@smithy/types': 4.3.1tslib: 2.8.1'@smithy/[email protected]':@@ -19177,12 +19174,12 @@ snapshots:'@smithy/[email protected]':dependencies:'@smithy/is-array-buffer': 4.0.0- '@smithy/protocol-http': 5.3.3- '@smithy/types': 4.8.0+ '@smithy/protocol-http': 5.1.2+ '@smithy/types': 4.3.1'@smithy/util-hex-encoding': 4.0.0- '@smithy/util-middleware': 4.2.3+ '@smithy/util-middleware': 4.0.4'@smithy/util-uri-escape': 4.0.0- '@smithy/util-utf8': 4.2.0+ '@smithy/util-utf8': 4.0.0tslib: 2.8.1'@smithy/[email protected]':@@ -19207,11 +19204,11 @@ snapshots:'@smithy/[email protected]':dependencies:- '@smithy/core': 3.17.0- '@smithy/middleware-endpoint': 4.3.4- '@smithy/middleware-stack': 4.2.3- '@smithy/protocol-http': 5.3.3- '@smithy/types': 4.8.0+ '@smithy/core': 3.5.3+ '@smithy/middleware-endpoint': 4.1.11+ '@smithy/middleware-stack': 4.0.4+ '@smithy/protocol-http': 5.1.2+ '@smithy/types': 4.3.1'@smithy/util-stream': 4.2.2tslib: 2.8.1@@ -19246,7 +19243,7 @@ snapshots:'@smithy/[email protected]':dependencies:'@smithy/querystring-parser': 4.0.4- '@smithy/types': 4.8.0+ '@smithy/types': 4.3.1tslib: 2.8.1'@smithy/[email protected]':@@ -19264,7 +19261,7 @@ snapshots:'@smithy/[email protected]':dependencies:'@smithy/util-buffer-from': 4.0.0- '@smithy/util-utf8': 4.2.0+ '@smithy/util-utf8': 4.0.0tslib: 2.8.1'@smithy/[email protected]':@@ -19340,8 +19337,8 @@ snapshots:'@smithy/[email protected]':dependencies:'@smithy/property-provider': 4.0.4- '@smithy/smithy-client': 4.9.0- '@smithy/types': 4.8.0+ '@smithy/smithy-client': 4.4.3+ '@smithy/types': 4.3.1bowser: 2.11.0tslib: 2.8.1@@ -19364,12 +19361,12 @@ snapshots:'@smithy/[email protected]':dependencies:- '@smithy/config-resolver': 4.3.3+ '@smithy/config-resolver': 4.1.4'@smithy/credential-provider-imds': 4.0.6- '@smithy/node-config-provider': 4.3.3+ '@smithy/node-config-provider': 4.1.3'@smithy/property-provider': 4.0.4- '@smithy/smithy-client': 4.9.0- '@smithy/types': 4.8.0+ '@smithy/smithy-client': 4.4.3+ '@smithy/types': 4.3.1tslib: 2.8.1'@smithy/[email protected]':@@ -19390,8 +19387,8 @@ snapshots:'@smithy/[email protected]':dependencies:- '@smithy/node-config-provider': 4.3.3- '@smithy/types': 4.8.0+ '@smithy/node-config-provider': 4.1.3+ '@smithy/types': 4.3.1tslib: 2.8.1'@smithy/[email protected]':@@ -19419,7 +19416,7 @@ snapshots:'@smithy/[email protected]':dependencies:- '@smithy/types': 4.8.0+ '@smithy/types': 4.3.1tslib: 2.8.1'@smithy/[email protected]':@@ -19436,7 +19433,7 @@ snapshots:'@smithy/[email protected]':dependencies:'@smithy/service-error-classification': 4.0.5- '@smithy/types': 4.8.0+ '@smithy/types': 4.3.1tslib: 2.8.1'@smithy/[email protected]':@@ -19458,13 +19455,13 @@ snapshots:'@smithy/[email protected]':dependencies:- '@smithy/fetch-http-handler': 5.3.4- '@smithy/node-http-handler': 4.4.2- '@smithy/types': 4.8.0- '@smithy/util-base64': 4.3.0+ '@smithy/fetch-http-handler': 5.0.4+ '@smithy/node-http-handler': 4.0.6+ '@smithy/types': 4.3.1+ '@smithy/util-base64': 4.0.0'@smithy/util-buffer-from': 4.0.0'@smithy/util-hex-encoding': 4.0.0- '@smithy/util-utf8': 4.2.0+ '@smithy/util-utf8': 4.0.0tslib: 2.8.1'@smithy/[email protected]':@@ -20994,8 +20991,6 @@ snapshots:- [email protected]: {}-dependencies:balanced-match: 1.0.2@@ -25705,7 +25700,7 @@ snapshots:dependencies:type-fest: 2.19.0- [email protected](patch_hash=cczsf6i6qe2m2htirvgxjtoclu)([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected]([email protected]))([email protected]):+ [email protected](patch_hash=cczsf6i6qe2m2htirvgxjtoclu)([email protected](@babel/[email protected])(@opentelemetry/[email protected])(@playwright/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected]([email protected]))([email protected]):dependencies:'@babel/runtime': 7.26.0'@panva/hkdf': 1.1.1@@ -26753,7 +26748,7 @@ snapshots:optionalDependencies:'@types/react': 19.2.2dependencies:react: 19.2.0react-dom: 19.2.0([email protected])diff --git a/web/package.json b/web/package.jsonindex df220948eb..ea83c231f3 100644--- a/web/package.json+++ b/web/package.json@@ -143,7 +143,7 @@"react-hook-form": "^7.62.0","react-icons": "^5.5.0","react-markdown": "^10.1.0",- "react-resizable-panels": "^3.0.5",+ "react-resizable-panels": "^3.0.6","react-responsive": "^10.0.1","react18-json-view": "^0.2.8-canary.6","recharts": "^2.15.2",diff --git a/web/src/components/table/peek/peek-observation-detail.tsx b/web/src/components/table/peek/peek-observation-detail.tsxindex 94dd582bc6..88b57d8d44 100644--- a/web/src/components/table/peek/peek-observation-detail.tsx+++ b/web/src/components/table/peek/peek-observation-detail.tsx@@ -40,6 +40,7 @@ export const PeekViewObservationDetail = ({observations={trace.data.observations}selectedTab={selectedTab}setSelectedTab={setSelectedTab}+ context="peek"/>);};diff --git a/web/src/components/table/peek/peek-trace-detail.tsx b/web/src/components/table/peek/peek-trace-detail.tsxindex 3edfbf8853..d9ab00f1ef 100644--- a/web/src/components/table/peek/peek-trace-detail.tsx+++ b/web/src/components/table/peek/peek-trace-detail.tsx@@ -32,6 +32,7 @@ export const PeekViewTraceDetail = ({ projectId }: { projectId: string }) => {observations={trace.data.observations}selectedTab={selectedTab}setSelectedTab={setSelectedTab}+ context="peek"/>);};diff --git a/web/src/components/trace/hooks/usePanelState.ts b/web/src/components/trace/hooks/usePanelState.tsindex a763eec5dd..cf33099906 100644--- a/web/src/components/trace/hooks/usePanelState.ts+++ b/web/src/components/trace/hooks/usePanelState.ts@@ -1,126 +1,57 @@-import {- useState,- useCallback,- useLayoutEffect,- useEffect,- useRef,-} from "react";-import useLocalStorage from "@/src/components/useLocalStorage";+import { useState, useLayoutEffect } from "react";interface PanelState {- sizes: number[]; // [leftPanelSize, rightPanelSize]minSize: number;maxSize: number;}export function usePanelState(- containerRef: React.RefObject<HTMLDivElement | null>,+ panelGroupId: string,viewType: "timeline" | "tree",) {- const previousViewTypeRef = useRef<string>(viewType);+ const MIN_WIDTH_PX = 355;+ const MAX_TREE_WIDTH_PX = 700;- const [timelineSizes, setTimelineSizes] = useLocalStorage(- "trace-detail-timeline",- [30, 70],- );- const [treeSizes, setTreeSizes] = useLocalStorage(- "trace-detail-tree",- [30, 70],- );-- const [panelState, setPanelState] = useState<PanelState>(() => {- const savedSizes = viewType === "timeline" ? timelineSizes : treeSizes;-- return {- sizes: savedSizes,- minSize: 25, // Will be updated by ResizeObserver- maxSize: viewType === "timeline" ? 80 : 70, // Will be updated by ResizeObserver- };+ const [panelState, setPanelState] = useState<PanelState>({+ minSize: 10, // Start with low default, will be updated by ResizeObserver+ maxSize: viewType === "timeline" ? 80 : 70,});- // Handle view switching- useEffect(() => {- if (previousViewTypeRef.current !== viewType) {- const newSizes = viewType === "timeline" ? timelineSizes : treeSizes;-- setPanelState((prev) => ({- ...prev,- sizes: newSizes,- maxSize: viewType === "timeline" ? 80 : 70,- }));-- previousViewTypeRef.current = viewType;- }- }, [viewType, timelineSizes, treeSizes]);+ // Handle PanelGroup width changes+ useLayoutEffect(() => {+ const panelGroup = document.querySelector(+ `[data-panel-group-id="${panelGroupId}"]`,+ );+ if (!panelGroup) return;- const updateConstraints = useCallback(- (containerWidth: number) => {- const MIN_WIDTH_PX = 380;- const MAX_TREE_WIDTH_PX = 700;+ const resizeObserver = new ResizeObserver(() => {+ const width = panelGroup.getBoundingClientRect().width;- if (containerWidth <= 0) return;+ if (width <= 0) return;- const minSize = Math.max(- 10,- Math.min(60, (MIN_WIDTH_PX / containerWidth) * 100),- );+ const minSize = Math.max(10, Math.min(60, (MIN_WIDTH_PX / width) * 100));const maxSize =viewType === "timeline"? 80- : Math.max(- 25,- Math.min(70, (MAX_TREE_WIDTH_PX / containerWidth) * 100),- );+ : Math.max(25, Math.min(70, (MAX_TREE_WIDTH_PX / width) * 100));setPanelState((prev) => {if (prev.minSize !== minSize || prev.maxSize !== maxSize) {- return { ...prev, minSize, maxSize };+ return { minSize, maxSize };}return prev;});- },- [viewType],- );-- const onLayout = useCallback(- (sizes: number[]) => {- if (viewType === "timeline") {- setTimelineSizes(sizes);- } else {- setTreeSizes(sizes);- }-- setPanelState((prev) => ({ ...prev, sizes }));- },- [viewType, setTimelineSizes, setTreeSizes],- );-- // Handle container width changes- useLayoutEffect(() => {- const container = containerRef.current;- if (!container) return;-- const resizeObserver = new ResizeObserver((entries) => {- const entry = entries[0];- if (entry) {- updateConstraints(entry.contentRect.width);- }});- // Initial calculation- updateConstraints(container.offsetWidth);-- resizeObserver.observe(container);+ resizeObserver.observe(panelGroup);return () => {resizeObserver.disconnect();};- }, [updateConstraints, containerRef]);+ }, [panelGroupId, viewType]);return {- sizes: panelState.sizes,minSize: panelState.minSize,maxSize: panelState.maxSize,- onLayout,};}diff --git a/web/src/components/trace/index.tsx b/web/src/components/trace/index.tsxindex a440066d63..52a2f63f44 100644--- a/web/src/components/trace/index.tsx+++ b/web/src/components/trace/index.tsx@@ -37,6 +37,7 @@ import {ResizablePanelGroup,ResizablePanel,ResizableHandle,+ type ImperativePanelHandle,} from "@/src/components/ui/resizable";const getNestedObservationKeys = (@@ -64,6 +65,7 @@ export function Trace(props: {scores: APIScoreV2[];projectId: string;viewType?: "detailed" | "focused";+ context?: "peek" | "fullscreen"; // are we in peek or fullscreen mode?isValidObservationId?: boolean;defaultMinObservationLevel?: ObservationLevelType;selectedTab?: string;@@ -73,6 +75,7 @@ export function Trace(props: {) => void;}) {const viewType = props.viewType ?? "detailed";+ const context = props.context ?? "fullscreen";const isValidObservationId = props.isValidObservationId ?? true;const capture = usePostHogClientCapture();const [currentObservationId, setCurrentObservationId] = useQueryParam(@@ -92,12 +95,11 @@ export function Trace(props: {] = useLocalStorage("colorCodeMetricsOnObservationTree", true);const [showComments, setShowComments] = useLocalStorage("showComments", true);const [showGraph, setShowGraph] = useLocalStorage("showGraph", true);- const [isTreePanelCollapsed, setIsTreePanelCollapsed] = useLocalStorage(- "traceTreePanelCollapsed",- false,- );const [collapsedNodes, setCollapsedNodes] = useState<string[]>([]);+ // Use imperative panel API for collapse/expand+ const treePanelRef = useRef<ImperativePanelHandle>(null);+// TODO: remove, kinda hacky// when user clicks Log View, we want to show them that you can collapse the tree panelconst [shouldPulseToggle, setShouldPulseToggle] = useState(false);@@ -129,11 +131,17 @@ export function Trace(props: {const containerRef = useRef<HTMLDivElement>(null);const [searchQuery, setSearchQuery] = useState("");+ const panelGroupId = `trace-panel-group-${context}`;const panelState = usePanelState(- containerRef,+ panelGroupId,props.selectedTab?.includes("timeline") ? "timeline" : "tree",);+ const TREE_DEFAULT_WIDTH = 30;++ // Derive collapsed state from actual panel size (single source of truth = autoSaveId)+ // This avoids cross-tab sync issues from storing collapsed state separately+ const [isTreePanelCollapsed, setIsTreePanelCollapsed] = useState(false);const isAuthenticatedAndProjectMember = useIsAuthenticatedAndProjectMember(props.projectId,);@@ -536,28 +544,41 @@ export function Trace(props: {{/* Desktop: Horizontal resizable panels */}<div className="hidden md:block md:h-full"><ResizablePanelGroup+ id={panelGroupId}direction="horizontal"className="flex-1 md:h-full"- onLayout={panelState.onLayout}+ autoSaveId={+ context === "peek"+ ? "trace-layout-peek"+ : "trace-layout-fullscreen"+ }><ResizablePanel- defaultSize={isTreePanelCollapsed ? 0 : panelState.sizes[0]}- minSize={isTreePanelCollapsed ? 0 : panelState.minSize}- maxSize={isTreePanelCollapsed ? 0 : panelState.maxSize}+ ref={treePanelRef}+ id="trace-tree-panel"+ order={1}+ defaultSize={TREE_DEFAULT_WIDTH}+ minSize={panelState.minSize}+ maxSize={panelState.maxSize}+ collapsible={true}+ collapsedSize={3}+ onResize={(size) => {+ // Derive collapsed state from actual panel size+ // This is the ONLY source of truth (autoSaveId handles persistence)+ const collapsed = size <= 5;+ if (collapsed !== isTreePanelCollapsed) {+ setIsTreePanelCollapsed(collapsed);+ }+ }}className="md:flex md:h-full md:flex-col md:overflow-hidden"- style={- isTreePanelCollapsed- ? { flex: "0 0 48px", minWidth: "48px", maxWidth: "48px" }- : undefined- }>{isTreePanelCollapsed ? (- <div className="flex h-full w-12 items-start justify-center border-r pt-1">+ <div className="flex h-full w-full items-start justify-center border-r pt-1"><Buttonvariant="ghost"size="icon"onClick={() => {- setIsTreePanelCollapsed(false);+ treePanelRef.current?.resize(TREE_DEFAULT_WIDTH);capture("trace_detail:tree_panel_toggle", {collapsed: false,});@@ -720,10 +741,13 @@ export function Trace(props: {variant="ghost"size="icon"onClick={() => {- const newCollapsedState = !isTreePanelCollapsed;- setIsTreePanelCollapsed(newCollapsedState);+ if (isTreePanelCollapsed) {+ treePanelRef.current?.resize(TREE_DEFAULT_WIDTH);+ } else {+ treePanelRef.current?.collapse();+ }capture("trace_detail:tree_panel_toggle", {- collapsed: newCollapsedState,+ collapsed: !isTreePanelCollapsed,});}}title={@@ -871,7 +895,12 @@ export function Trace(props: {<ResizableHandle className="relative w-px bg-border transition-colors duration-200 after:absolute after:inset-y-0 after:left-0 after:w-1 after:-translate-x-px after:bg-blue-200 after:opacity-0 after:transition-opacity after:duration-200 hover:after:opacity-100 data-[resize-handle-state='drag']:after:opacity-100" />- <ResizablePanel className="min-w-56 overflow-hidden md:h-full">+ <ResizablePanel+ id="trace-preview-panel"+ order={2}+ defaultSize={70}+ className="min-w-56 overflow-hidden md:h-full"+ ><div className="h-full pl-3">{previewContent}</div></ResizablePanel></ResizablePanelGroup>diff --git a/web/src/components/ui/resizable.tsx b/web/src/components/ui/resizable.tsxindex cf033eaa8a..0a37a87ff0 100644--- a/web/src/components/ui/resizable.tsx+++ b/web/src/components/ui/resizable.tsx@@ -43,3 +43,4 @@ const ResizableHandle = ({);export { ResizablePanelGroup, ResizablePanel, ResizableHandle };+export type { ImperativePanelHandle } from "react-resizable-panels";