The miler app resolves a rider's service profile (hyperlocal vs logistics, which decides whether the Start-delivery button renders) from the tenant NAME in preference to the raw tenantid. Neither verify-pin nor GET /miler/profile returned a tenant name — the field the app keys off did not exist. Add resolveTenantName and include tenantname (+ tenantid) on both responses. Including it on GET /miler/profile lets the app refresh tenantname at launch without forcing a re-login after this rollout. This is the precondition for safely enabling MILER_COLLECTED_STATE_ENABLED: without tenantname, any tenant whose id the app hasn't mapped falls back to the logistics profile (no Start-delivery button) and would strand collected hyperlocal parcels. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WRaFH5hMRqmUQvVPQsyjZD
50 KiB
50 KiB