Skip to content

survival: surface resource check diagnostics#330

Open
jovial-liu wants to merge 1 commit into
Conway-Research:mainfrom
jovial-liu:codex/resource-check-diagnostics
Open

survival: surface resource check diagnostics#330
jovial-liu wants to merge 1 commit into
Conway-Research:mainfrom
jovial-liu:codex/resource-check-diagnostics

Conversation

@jovial-liu

Copy link
Copy Markdown

Summary

  • add resource-check diagnostics for failed Conway credits, USDC balance, and sandbox health checks
  • show failed balance checks as unknown (...) in resource reports instead of presenting fallback zero values as confirmed balances
  • record sandbox health failure details for thrown errors and non-zero health command exits
  • add focused tests for diagnostic reporting

Why

Several open issues report confusing credit/topup states where balances appear to be zero or unavailable. The runtime previously swallowed resource-check errors and defaulted balances to 0, making transient API/RPC failures look like confirmed empty balances. This keeps the existing survival-tier fallback behavior while surfacing the underlying failure reason.

Related symptoms: #292, #297, #302, #303, #314.

Validation

  • npm test src/__tests__/resource-monitor.test.ts
  • npm run typecheck
  • npx pnpm@10.28.1 build

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