Skip to content

Fix sceneDropId handling to prevent matching unintended assets#15

Open
cpsiaki wants to merge 1 commit intomainfrom
hotfixes/drop-scene-id-retrieval
Open

Fix sceneDropId handling to prevent matching unintended assets#15
cpsiaki wants to merge 1 commit intomainfrom
hotfixes/drop-scene-id-retrieval

Conversation

@cpsiaki
Copy link

@cpsiaki cpsiaki commented Jan 23, 2026

All controllers now use the resolved sceneDropId from getDroppedAssetDataObject instead of directly using credentials.sceneDropId which could be empty.

  • getDroppedAssetDataObject now validates and returns the resolved sceneDropId
  • handleResetBoard uses resolved sceneDropId for queries and generateBoard calls
  • handleDropPiece uses resolved sceneDropId for asset queries
  • handlePlayerSelection uses resolved sceneDropId for asset queries

This prevents queries with empty sceneDropId from matching all assets in a world.

Summary

Summarize the changes that have been made to the platform.

What kind of change does this PR introduce?

New feature, docs update, etc.

Current Behavior

Tell us what is happening currently.

New Behavior

What new feature or update to existing feature are you introducing?

Does this PR introduce a breaking change?

If so, please provide specifics.

Detailed Description and Additional Information

Provide a detailed description of the change or addition you are proposing.

All controllers now use the resolved sceneDropId from getDroppedAssetDataObject
instead of directly using credentials.sceneDropId which could be empty.

- getDroppedAssetDataObject now validates and returns the resolved sceneDropId
- handleResetBoard uses resolved sceneDropId for queries and generateBoard calls
- handleDropPiece uses resolved sceneDropId for asset queries
- handlePlayerSelection uses resolved sceneDropId for asset queries

This prevents queries with empty sceneDropId from matching all assets in a world.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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