From 6bf9e7e710430605672cd94da0a3608c862ea467 Mon Sep 17 00:00:00 2001 From: robbond Date: Thu, 20 Aug 2026 06:26:35 +0100 Subject: [PATCH] test(ui): explore branch as workspace context --- components/reasoning-workspace.jsx | 20 +++++++++++-- components/scenario-form.jsx | 46 ++++++++++++++++++------------ 2 files changed, 45 insertions(+), 21 deletions(-) diff --git a/components/reasoning-workspace.jsx b/components/reasoning-workspace.jsx index 7c27bc7..15636fb 100644 --- a/components/reasoning-workspace.jsx +++ b/components/reasoning-workspace.jsx @@ -521,6 +521,7 @@ export default function ReasoningWorkspace({ onAnswerSubmit, lastSubmittedAnswer, onRestart, + branchContext, }) { const [investigationHistory, setInvestigationHistory] = useState([]); const turnCounter = useRef(0); @@ -823,6 +824,21 @@ export default function ReasoningWorkspace({
{/* ── Left lane: active conversation & notebook ───────── */}
+ {/* Active branch context (experiment RTO.25D) */} + {branchContext && hasGraph && ( +
+

+ Current branch +

+

{branchContext.label}

+ {branchContext.origin && ( +

+ Trying to understand: {branchContext.origin} +

+ )} +
+ )} + {/* ── Open questions (case workspace) — no ranking bias ── */} {(() => { const openNodes = graph.nodes.filter( @@ -1104,9 +1120,9 @@ export default function ReasoningWorkspace({ {hasCurrentSummaryCondition && ( <> - {/* ── Experiment 12: progress panel A / B / C toggle (temporary experimental UI) ── */} + {/* ── Experiment 12: progress panel A / B / C toggle (temporary experimental UI) — de-emphasised by branch-as-context experiment RTO.25D */} {hasGraph && ( -
+
{/* Branch switcher (1/4 sidebar) */}