From dec6a6eb7542bd08ecd68fae3fc6603e1bcd8931 Mon Sep 17 00:00:00 2001 From: SuperDooper <37051355+superdooper86@users.noreply.github.com> Date: Fri, 8 May 2026 20:55:40 +0200 Subject: [PATCH] debug: save raw bootstrap JSON to DebugInfo to diagnose plan label --- windows/UsageViewModel.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/windows/UsageViewModel.cs b/windows/UsageViewModel.cs index 3929bff..210774f 100644 --- a/windows/UsageViewModel.cs +++ b/windows/UsageViewModel.cs @@ -178,7 +178,12 @@ public class UsageViewModel : INotifyPropertyChanged if (!bootstrapResp.IsSuccessStatusCode) throw new Exception($"Bootstrap failed ({(int)bootstrapResp.StatusCode})."); - var (email, orgId, planLabel) = ParseBootstrap(await bootstrapResp.Content.ReadAsStringAsync()); + var bootstrapJson = await bootstrapResp.Content.ReadAsStringAsync(); + // Save raw bootstrap for diagnostics — lets us see if 'capabilities' is returned + AppSettings.Default.DebugInfo = bootstrapJson.Length > 2000 + ? bootstrapJson.Substring(0, 2000) : bootstrapJson; + AppSettings.Default.Save(); + var (email, orgId, planLabel) = ParseBootstrap(bootstrapJson); if (string.IsNullOrEmpty(orgId)) orgId = await FetchOrgIdFromListAsync(http);