fix(admin): surface partial Antigravity refresh warnings

Return the updated account alongside partial refresh warnings so the admin UI can keep its state current and tell operators when project ID retrieval must retry.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Shen-AnandClaude Sonnet 5 committed 2026-09-12 15:19:19 +08:00
1 parent 4726bdd08b
commit c6727ed4c9
4 files changed
+41 -10

No files matched your search

@@ -1545,6 +1545,7 @@ func (h *AccountHandler) Refresh(c *gin.Context) {
if warning == "missing_project_id_temporary" {
response.Success(c, gin.H{
"account": h.buildAccountResponseWithRuntime(c.Request.Context(), updatedAccount),
"message": "Token refreshed successfully, but project_id could not be retrieved (will retry automatically)",
"warning": "missing_project_id_temporary",
})