Skip to content

fix(broadcast): omit absent optional receipt fields#5348

Merged
AceHack merged 3 commits into
mainfrom
claim/codex-b0213-receipt-optional-fields-fix-20260526
May 26, 2026
Merged

fix(broadcast): omit absent optional receipt fields#5348
AceHack merged 3 commits into
mainfrom
claim/codex-b0213-receipt-optional-fields-fix-20260526

Conversation

@AceHack
Copy link
Copy Markdown
Member

@AceHack AceHack commented May 26, 2026

Summary\n- restores the post-merge B-0213 TypeScript fix that was stranded on the original claim branch after PR #5344 merged at stale head 802bd59\n- omits optional receipt properties instead of setting them to undefined under exactOptionalPropertyTypes\n- releases the temporary claim in-branch before review\n\n## Checks\n- bun test tools/broadcast-local/schema.test.ts\n- bun --bun tsc --noEmit -p tsconfig.json\n- git diff --check origin/main...HEAD

Lior and others added 3 commits May 26, 2026 19:07
…ional fields

Co-Authored-By: Codex <noreply@openai.com>
Co-Authored-By: Codex <noreply@openai.com>
Copilot AI review requested due to automatic review settings May 26, 2026 23:08
@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@AceHack AceHack enabled auto-merge (squash) May 26, 2026 23:08
@AceHack AceHack merged commit 9302d14 into main May 26, 2026
33 checks passed
@AceHack AceHack deleted the claim/codex-b0213-receipt-optional-fields-fix-20260526 branch May 26, 2026 23: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

This PR fixes the local broadcast receipt builder so optional receipt fields are omitted rather than explicitly set to undefined, matching the repository’s exactOptionalPropertyTypes TypeScript configuration.

Changes:

  • Uses conditional object spreads for optional sourcePath and note receipt fields.
  • Updates the receipt test expectation to omit the absent note property.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
tools/broadcast-local/schema.ts Builds optional receipt fields only when values are present.
tools/broadcast-local/schema.test.ts Aligns expected receipt shape with omitted optional fields.

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