Flatten surface action data into command params #174

Merged
weichen merged 1 commits from fix/surface-action-flatten-data into main 2026-10-12 04:16:41 +00:00
Owner

Expose action data keys at top-level params so system.intent can validate text from button actions.

Expose action data keys at top-level params so system.intent can validate text from button actions.
weichen added 1 commit 2026-10-12 04:16:35 +00:00
Flatten surface action data into command params
ci / vet-and-test (pull_request) Successful in 47s
ed443ed3f6
Why: system.intent ParamsSchema requires top-level text, but
SubmitAction only nested values under data, so button intent always
rejected missing text during prod acceptance.
Evidence: go test ./internal/surfacesvc/ -run TestSubmitActionFlattensDataIntoParams
Impact: B-class intent and other schema-required params work via actions;
submit still receives nested data.
Refs: GenUI prod deploy acceptance; fix track

Co-authored-by: Cursor <cursoragent@cursor.com>
weichen merged commit 52d75fd931 into main 2026-10-12 04:16:41 +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#174