You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The SDK has a full Plan API (session.Rpc.Plan.Read/Update/Delete) and plan events (SessionPlanChangedEvent, ExitPlanModeRequestedEvent) — all completely unused. When agents create plans (in plan mode), PolyPilot has no way to show them to the user or let users edit them.
PR #116 (stale, from Feb 15) attempted to add plan display in the chat area but was never merged and is now heavily conflicted.
Problem
The SDK has a full Plan API (
session.Rpc.Plan.Read/Update/Delete) and plan events (SessionPlanChangedEvent,ExitPlanModeRequestedEvent) — all completely unused. When agents create plans (in plan mode), PolyPilot has no way to show them to the user or let users edit them.PR #116 (stale, from Feb 15) attempted to add plan display in the chat area but was never merged and is now heavily conflicted.
SDK APIs Available
RPC:
session.Rpc.Plan.ReadAsync()— returnsExists,Content,Pathsession.Rpc.Plan.UpdateAsync(content)— write/update plansession.Rpc.Plan.DeleteAsync()— delete planEvents:
SessionPlanChangedEvent— plan file updated (operation: create/update/delete)ExitPlanModeRequestedEvent— agent wants to exit plan mode (includesPlanContent)ExitPlanModeCompletedEvent— plan mode exit completedMode:
session.Rpc.Mode.SetAsync(SessionModeGetResultMode.Plan)— switch to plan modeSessionModeChangedEvent— mode changedWhat to Change
SessionPlanChangedEventto detect when agent creates/updates a planPlan.ReadAsync()to get plan contentPlan.UpdateAsync()to save changesExitPlanModeRequestedEventto transition UI out of plan modeContext