Skip to content

fix(worker): retain Modal app and profile in motion receipts - #126

Merged
austinjiann merged 1 commit into
mainfrom
codex/motion-receipt-owner
Nov 21, 2026
Merged

austinjiann merged 1 commit into
mainfrom
codex/motion-receipt-owner

Conversation

@austinjiann

Copy link
Copy Markdown
Collaborator

A reconstruction recovery was directed at the wrong Modal profile because its durable receipt did not record the launching app or credential alias. Save appId and the SDK-selected modalProfile before submission, then preserve them with the function-call ID through every result/cancellation path. Environment credential overrides leave the profile unknown; a local profile alias is never presented as proof of workspace ownership.

Existing receipts still prevent resubmission. Metadata is not forwarded as inference arguments. No models, resources, retries or quality gates change; unbounded invocation behavior is unchanged. This does not retroactively repair historical receipts or establish scene quality.

Validation: 255 offline tests covering receipt persistence, actual CLI profile precedence, environment override ambiguity, legacy no-resubmission, resource registration and paid-stage identity; Ruff, repository formatting and diff checks passed. Implemented and tested in an isolated worktree while a separate bounded city recovery runs on unchanged main.

@austinjiann
austinjiann merged commit 051cf20 into main Nov 21, 2026
5 checks passed
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.

1 participant