From 86542c641081c2c4edde274b259fd90efaf64be5 Mon Sep 17 00:00:00 2001 From: chihlasm Date: Sat, 14 Feb 2026 18:42:32 -0500 Subject: [PATCH] fix: resolve tree_structure type compatibility for shared session views - Use TreeStructure & Record intersection for JSONB flexibility - Add explicit cast in SharedSessionTreePreview for recursive node rendering Co-Authored-By: Claude Opus 4.6 --- frontend/src/components/session/SharedSessionTreePreview.tsx | 2 +- frontend/src/pages/SharedSessionPage.tsx | 2 +- frontend/src/types/session.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/session/SharedSessionTreePreview.tsx b/frontend/src/components/session/SharedSessionTreePreview.tsx index 1bbb0dbc..5887ad05 100644 --- a/frontend/src/components/session/SharedSessionTreePreview.tsx +++ b/frontend/src/components/session/SharedSessionTreePreview.tsx @@ -80,7 +80,7 @@ export function SharedSessionTreePreview({

Tree Structure

- + } depth={0} pathTaken={pathTaken} />
) diff --git a/frontend/src/pages/SharedSessionPage.tsx b/frontend/src/pages/SharedSessionPage.tsx index 1d81187b..7eeed622 100644 --- a/frontend/src/pages/SharedSessionPage.tsx +++ b/frontend/src/pages/SharedSessionPage.tsx @@ -232,7 +232,7 @@ export function SharedSessionPage() {
path_taken: string[] decisions: DecisionRecord[] custom_steps: CustomStep[]