mirror of
https://github.com/rommapp/romm.git
synced 2026-11-30 18:42:34 +01:00
Per-platform slot capabilities were duplicated across the frontend store's hardcoded platformCapabilities() map and the backend's pydantic Field bounds, independent of the broker's own ceiling. Consolidate the RomM-side knowledge into one _PLATFORM_CAPABILITIES table in the streaming endpoint: - /config now ships each container's capabilities, and the frontend selector reads them instead of keeping its own copy. - The SaveState/LoadState request bounds derive from the table, and the routes validate the exact per-platform ceiling before calling the broker (clean 422 instead of a broker 502). The broker remains the ultimate enforcer; RomM no longer keeps two independent hardcoded copies of its slot semantics. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>