feat(sessions): keep full plan accessible after approval#2133
Draft
posthog[bot] wants to merge 2 commits into
Draft
feat(sessions): keep full plan accessible after approval#2133posthog[bot] wants to merge 2 commits into
posthog[bot] wants to merge 2 commits into
Conversation
added 2 commits
May 13, 2026 20:56
The offline-prompt fix (#1971) added a second `useConnectivity()` call that re-declared `isOnline`, breaking typecheck. Drop the redundant declaration; the one at the top of the component is sufficient. Generated-By: PostHog Code Task-Id: fa647642-8b10-4bf8-a05d-896f5e355489
Once a plan was approved or rejected, the full plan markdown was unmounted and only the "Plan approved" line remained — making it impossible to revisit the plan when handing work off to a parallel or master agent. The plan text is still carried on `toolCall.rawInput.plan`; add a `show plan` / `hide plan` toggle next to the status line so the full plan stays accessible (collapsed by default to avoid dominating the turn view). Generated-By: PostHog Code Task-Id: fa647642-8b10-4bf8-a05d-896f5e355489
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Once a plan was approved (or rejected), the full plan markdown was unmounted and only the "Plan approved — proceeding with implementation" line remained. This made it impossible to revisit the plan after the fact — a gap Cory flagged when teeing up parallel agents or a master agent to plan what's next.
The plan text itself is already carried on the tool call's
rawInput.plan; the renderer was just hiding it. This PR adds ashow plan/hide plantoggle next to the status line so the full plan stays one click away (collapsed by default to avoid dominating the turn view).Changes
PlanApprovalView.tsx— after approval/rejection, render the status line with a caret +· show planaffordance. Click expands the existing<PlanContent>(full markdown, scrollable, fullscreen button) inline. Pre-approval behavior is unchanged.SessionView.tsx— drive-by fix: the offline-prompt PR (fix(sessions): preserve prompt when sending while offline #1971) added a duplicateuseConnectivity()call that broke typecheck onmain. Removed the redundant declaration. Filed as its own commit on this branch.Behavior
Test plan
Created with PostHog Code