feat: make mode creation preview-only and cache-safe

This commit is contained in:
Miayui
2026-09-20 19:32:03 +08:00
parent bfff1b515c
commit 89707a42e2
28 changed files with 1375 additions and 165 deletions
@@ -2150,6 +2150,13 @@ class SeatDemoService(ModeScheduleServiceMixin):
vehicle_profile = self.vehicle_profiles.get(vehicle_id)
control_plane_request = self.is_mode_profile_configuration_request(utterance)
if control_plane_request:
# Mode creation is a configuration workflow, never a vehicle
# execution request. Enforce this at the public preview boundary
# even when a browser is currently set to hardware mode.
if parse_mode_profile_create(utterance) is not None:
execution_mode = "dry_run"
approval_token = None
hardware_client_id = None
result = self.process(
utterance,
provider=provider,