Skip to content

fix(console): clear stale k8s status text on a successful reload (studio#119) - #124

Merged
brettchien merged 1 commit into
mainfrom
fix/deploy-status-staleness-119
Aug 28, 2026
Merged

fix(console): clear stale k8s status text on a successful reload (studio#119)#124
brettchien merged 1 commit into
mainfrom
fix/deploy-status-staleness-119

Conversation

@brettchien

Copy link
Copy Markdown
Contributor

Summary

Item 4 of #119's runbook. loadK8sNamespaces() / loadK8sContexts() in console/src/deploy.ts only ever wrote to identityStatusEl in the catch path — nothing cleared it on success. A failed attempt against one context (e.g. the ambient current-context, before the user picks a different one from the dropdown) left its error text on screen even after a later load against a different context succeeded — which reads as "still broken" when it isn't.

This was live-debugged with Brett as part of #119's investigation: it's part of why the orbstack namespace-listing failure looked confusing to diagnose in the moment (the real root cause turned out to be #120's rustls panic, but this staleness bug muddied the signal while narrowing it down).

Fix

Both functions now call setStatus(identityStatusEl, "") right after a successful reload, clearing any leftover error text from a prior attempt.

Verification

  • npm run typecheck clean, npm test 106/106 passing, npm run build succeeds.

Ref #119.

🤖 Generated with Claude Code

…dio#119)

loadK8sNamespaces() / loadK8sContexts() only ever wrote to
identityStatusEl in the catch path — nothing cleared it on success. A
failed attempt against one context (e.g. the ambient current-context
before the user picks a different one) left its error text on screen even
after a later load against a different context succeeded, which read as
"still broken" when it wasn't. Live-debugged with Brett: this is part of
why the orbstack namespace-listing failure looked confusing at first.

Ref #119.
@brettchien
brettchien merged commit 023cba6 into main Aug 28, 2026
2 checks passed
@brettchien
brettchien deleted the fix/deploy-status-staleness-119 branch August 28, 2026 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant