4 Commits
Author SHA1 Message Date
Adam Shiervani d84ff1b12a Enhance diagnostics logging with context-aware timeouts (#1138)
* Enhance diagnostics logging with context-aware timeouts

* Add full system diagnostics logging on supervisor crash

* Clear diagnostics context after logging to prevent memory leaks

* remove pr.txt
2026-01-07 15:25:53 +01:00
Adam Shiervani 81808b11ec Fix: Timeout Diagnostics (#1132)
* Enhance command execution with context timeout in diagnostics helper

- 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.

* Refactor diagnostics log retrieval to use async JSON-RPC calls

- 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.

* Fix lint

* Fix linter
2026-01-05 18:58:03 +01:00
Adam Shiervani 94fb5d1e8a Enhance diagnostics logging: add application log section, improve crash dump handling, and allow custom log output destination (#1081) 2025-12-18 19:29:45 +01:00
Adam Shiervani 55a17dd16b Implement diagnostics logging and download feature (#1078) 2025-12-18 11:59:21 +01:00