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
asyncdef_wait_for_user_approval(self, plan_id: Optional[str] =None) ->Optional[messages.PlanApprovalResponse]: # plan_id will not be optional in future
108
+
asyncdef_wait_for_user_approval(self, plan_dot_id: Optional[str] =None) ->Optional[messages.PlanApprovalResponse]: # plan_id will not be optional in future
110
109
"""Wait for user approval response."""
111
-
# Temporarily use console input for approval - will switch to WebSocket or API in future
112
-
# response = input("\nApprove this execution plan? [y/n]: ").strip().lower()
113
-
# if response in ['y', 'yes']:
114
-
# return messages.PlanApprovalResponse(approved=True, plan_id=plan_id if plan_id else "input")
115
-
# elif response in ['n', 'no']:
116
-
# return messages.PlanApprovalResponse(approved=False, plan_id=plan_id if plan_id else "input")
117
-
# else:
118
-
# print("Invalid input. Please enter 'y' for yes or 'n' for no.")
119
-
# return await self._wait_for_user_approval()
120
-
# In future, implement actual waiting for WebSocket or API response here
0 commit comments