From 5329ae652938bed594318dc0ce52670df0119d22 Mon Sep 17 00:00:00 2001 From: danielhanchen Date: Sun, 19 Jul 2026 09:18:03 +0000 Subject: [PATCH] Studio: keep the plan review mounted through approval Keying PlanReview on planRevision remounted it mid-approve when updateResearchPlan bumped the revision, resetting the local pending flag and re-enabling Start research while the approve was still in flight, which allowed a duplicate approve. Key on runId only. --- .../src/features/chat/components/research-activity-panel.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/studio/frontend/src/features/chat/components/research-activity-panel.tsx b/studio/frontend/src/features/chat/components/research-activity-panel.tsx index 4990c50dbe..0bed4beb94 100644 --- a/studio/frontend/src/features/chat/components/research-activity-panel.tsx +++ b/studio/frontend/src/features/chat/components/research-activity-panel.tsx @@ -902,7 +902,10 @@ export function ResearchActivityPanel({ ) : null} - + {/* Key on runId only: keying on planRevision remounted PlanReview mid-approve + (updateResearchPlan bumps the revision), resetting local `pending` and + re-enabling "Start research" during the in-flight approve. */} +