Skip to content

fix(inbox): omit initial_permission_mode when no adapter is selected#1740

Merged
tatoalo merged 1 commit intomainfrom
fix/inbox-cloud-task-initial-permission-mode
Apr 20, 2026
Merged

fix(inbox): omit initial_permission_mode when no adapter is selected#1740
tatoalo merged 1 commit intomainfrom
fix/inbox-cloud-task-initial-permission-mode

Conversation

@tatoalo
Copy link
Copy Markdown
Contributor

@tatoalo tatoalo commented Apr 20, 2026

Problem

Inbox-initiated cloud tasks (signal reports) fail with a 400:

{"type":"validation_error","code":"invalid_input",
 "detail":"This field requires runtime_adapter to be set.",
 "attr":"initial_permission_mode"}

Changes

Only include initialPermissionMode when an adapter is actually selected. If the user hasn't picked an adapter, let the server apply its default run config (same shape the inbox sent before #1690).

Inbox-initiated cloud tasks don't pass an adapter, but the saga was still
sending a fallback initial_permission_mode. The server rejects that combo
with 'This field requires runtime_adapter to be set.' Only send the mode
when an adapter is actually selected.
@tatoalo tatoalo self-assigned this Apr 20, 2026
@tatoalo tatoalo requested a review from a team April 20, 2026 15:13
@tatoalo tatoalo enabled auto-merge (squash) April 20, 2026 15:15
@tatoalo tatoalo merged commit 2149edd into main Apr 20, 2026
15 of 16 checks passed
@tatoalo tatoalo deleted the fix/inbox-cloud-task-initial-permission-mode branch April 20, 2026 15:22
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.

4 participants