Spaces:
Running
Running
Commit History
18 days ago
-
fix: Approve/Reject buttons do nothing when 'waiting approval' shows
Root causes (verified in built state): A) patch_catch_up_fix_v3.py set every hydration guard to '_catchupDone ? false : ...'. After a session goes through catch-up, a NEW approval_required SSE never replaces stale UI parts -> the Approve/Reject buttons target tool_call_ids the backend already resolved -> silent no-op. The approval_required SSE branch has its own '_shouldSetC' guard (16-space indent) that the earlier patch_fix_approval_buttons.py draft MISSED (replace count=1). B) Upstream session.py already defines scalar auto_approval_enabled (default False); patch_agent_backend.py's dict insertion is a no-op because the substring 'self.auto_approval' already matches -> the scalar stays False -> auto-approval never engages on new sessions. C) Backend silently dropped approvals whose id had no live pending approval. Fixes in this patch: 1. session.py __init__ defaults auto_approval_enabled=True. 2. session_manager.py seed paths set scalar policy on restor…5afa055 -
Upload patch_fix_approval_buttons.py
Verified signaturede536ff