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
fix: pass basePermissionMode through protocol to correctly restore permission after plan mode exit
The frontend computes effectivePermissionMode='plan' when in UI Plan mode,
erasing the user's actual permission preference. The backend saved the stale
config value (often 'default') as the restore target, causing unexpected
permission prompts after exit_plan_mode.
Now the frontend sends the raw user preference as basePermissionMode alongside
the effective mode. applyPermissionOverrides uses it to correctly populate
permissionModeBeforePlan, ensuring Full Access is properly restored on exit.
Co-authored-by: Cursor <cursoragent@cursor.com>
0 commit comments