Skip to content

fix: add action buttons to json output#949

Open
jpagh wants to merge 1 commit into
jhpyle:masterfrom
jpagh:action-buttons-in-json
Open

fix: add action buttons to json output#949
jpagh wants to merge 1 commit into
jhpyle:masterfrom
jpagh:action-buttons-in-json

Conversation

@jpagh
Copy link
Copy Markdown
Contributor

@jpagh jpagh commented May 6, 2026

I was looking into using the API/json output, and realized that action buttons weren't being included. Upon investigation, it appears that this was due to a bug where the action buttons were created, but never appended to the additional_buttons key.

Copilot AI review requested due to automatic review settings May 6, 2026 22:10
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes JSON/API serialization so that action_buttons defined on a question are actually included in the additional_buttons field returned by as_data(), aligning the JSON output with what the UI formatter already renders from status.extras['action_buttons'].

Changes:

  • Append each processed action_buttons item into result['additional_buttons'] during as_data() serialization.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants