Skip to content

fix: send feedback _content params as dicts instead of JSON strings#276

Merged
maximelb merged 1 commit intocli-v2from
feedback-content-as-dict
Apr 12, 2026
Merged

fix: send feedback _content params as dicts instead of JSON strings#276
maximelb merged 1 commit intocli-v2from
feedback-content-as-dict

Conversation

@maximelb
Copy link
Copy Markdown
Contributor

Summary

  • Stop double-encoding _content parameters (approved_content, denied_content, acknowledged_content, timeout_content) in the feedback SDK — send the actual dict instead of json.dumps() output.
  • The ext-feedback backend now expects native JSON objects in these fields rather than JSON-encoded strings.
  • No CLI changes needed — the CLI already parses JSON strings from --*-content flags into dicts before passing them to the SDK.

Test plan

  • Send a request-approval with --approved-content and verify the extension receives a proper JSON object
  • Verify request-ack with --acknowledged-content works
  • Verify request-question with --timeout-content works

🤖 Generated with Claude Code

…dback

The ext-feedback extension now expects actual JSON objects in the
_content fields rather than double-encoded JSON strings.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@maximelb maximelb changed the base branch from master to cli-v2 April 12, 2026 01:53
@maximelb maximelb requested a review from dzimine-lc April 12, 2026 01:54
@maximelb maximelb marked this pull request as ready for review April 12, 2026 01:54
@maximelb maximelb merged commit 262e362 into cli-v2 Apr 12, 2026
1 check passed
@maximelb maximelb deleted the feedback-content-as-dict branch April 12, 2026 01:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant