Guard nil confirm card in surface action dispatcher #173

Merged
weichen merged 1 commits from fix/surface-action-nil-card into main 2026-10-12 04:08:58 +00:00
Owner

Prevent nil deref on committed surface actions without confirm cards.

Prevent nil deref on committed surface actions without confirm cards.
weichen added 1 commit 2026-10-12 04:08:48 +00:00
Guard nil confirm card in surface action dispatcher
ci / vet-and-test (pull_request) Successful in 44s
4352f368cb
Why: Committed button actions with no HITL card panicked on
resp.Card.ID during prod acceptance (nil pointer).
Evidence: go test ./internal/app/ ./internal/surfacesvc/; prod panic stack
Impact: B-class help/intent and C-class submit return without crash.
Refs: GenUI prod deploy acceptance

Co-authored-by: Cursor <cursoragent@cursor.com>
weichen merged commit c7b30d2109 into main 2026-10-12 04:08:58 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: weichen/Agent-System-Backend#173