Skip to content

Conversation

@adamshiervani
Copy link
Contributor

Summary

  • Use new API callJSONRPC methods
  • Implement timeouts out the diagnostic calls

Checklist

  • Ran make test_e2e locally and passed
  • Linked to issue(s) above by issue number (e.g. Closes #<issue-number>)
  • One problem per PR (no unrelated changes)
  • Lints pass; CI green
  • Tricky parts are commented in code

- Updated `runCmdLog` and `runShellLog` methods to use `exec.CommandContext` with a timeout, improving command execution reliability.
- Introduced a default command timeout constant to manage execution duration effectively.
- Replaced the synchronous JSON-RPC call in `FailSafeModeOverlay` and `SettingsAdvancedRoute` with an asynchronous approach using `callJsonRpc`.
- Improved error handling for diagnostics retrieval, ensuring user notifications are displayed for both success and failure cases.
- Updated the `rpcDataChannel` closure handling in `KvmIdRoute` to set the state correctly upon closure.
@adamshiervani adamshiervani merged commit 81808b1 into dev Jan 5, 2026
3 checks passed
@adamshiervani adamshiervani deleted the fix/diagnostics branch January 5, 2026 17:58
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.

2 participants