Root cause: VS Code commands (acceptAgentStep, terminalCommand.run etc) return undefined silently but don't actually accept WAITING steps. LS requires HTTPS + CSRF token for RPC calls. New approach: Phase 1 tries SDK rawRPC (has CSRF auth) with HandleCascadeUserInteraction + ResolveOutstandingSteps. Phase 2 tries all VS Code commands as fallback. All results logged to bridge/extension.log for debugging. Also removed stall detection (fundamentally broken — stepCount keeps incrementing from other tool calls during WAITING).
28 KiB
28 KiB