Skip to content

displayio: send iPadOS traffic as device.os "iOS" - #144

Merged
fushouli merged 1 commit into
msp-2506from
displayio-ipados-as-ios
Oct 5, 2026
Merged

fushouli merged 1 commit into
msp-2506from
displayio-ipados-as-ios

Conversation

@zwl-williamzha

Copy link
Copy Markdown

Display.io reported that MSP sends "os": "iPadOS" for iPad traffic and asked for it to arrive as "iOS".

Change

MakeRequests maps device.os "iPadOS" → "iOS" on a copy of the Device, set on the per-imp request copy it already builds. The shared request keeps "iPadOS": it is also handed to MakeBids, other bidders read the same Device pointer, and the adapter test harness fails on mutation.

osv, make and model pass through unchanged, so iPads stay distinguishable by model. Every other OS value is sent as before.

Test

New displayiotest/supplemental/ipados-os.json asserts the outgoing body carries "os": "iOS" with the rest of the device untouched. It fails without the change; go test ./adapters/displayio/ passes with it.

🤖 Generated with Claude Code

Display.io reported receiving "os": "iPadOS" for iPad traffic and asked for it
to arrive as "iOS". MakeRequests now swaps the OS on a copy of the Device, so
the shared request (also handed to MakeBids, and to other bidders) keeps
"iPadOS". osv, make and model pass through unchanged, so iPads stay
distinguishable by model.

New supplemental fixture ipados-os.json fails without the change.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@fushouli
fushouli merged commit a2115f7 into msp-2506 Oct 5, 2026
1 check passed
@fushouli
fushouli deleted the displayio-ipados-as-ios branch October 5, 2026 17:55
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