fix: reuse installed agent when update check fails - #91
Conversation
314aeb8 to
6852e9d
Compare
|
Rebased onto v0.1.46 (a4c9972). The three POSIX copies and three PowerShell copies remain byte-identical by platform; shell syntax, PowerShell AST parsing, and git diff --check pass. Ready for maintainer workflow approval/review. |
6852e9d to
64e8a0f
Compare
|
Rebased onto current |
Reuse an installed agent when the update endpoint is unavailable only if its current SHA-256 still matches the stored checksum. Keep all shipped script copies aligned and add Unix/Windows corruption regressions.
64e8a0f to
7273945
Compare
|
Closing as already shipped — your fix was ported into the plugin via monk-agent's ENG-422 work (commit Correct diagnosis and correct fix; that's recorded in triage. Thanks. |
Summary
monk-agentwhen update discovery is temporarily unavailableWhy
The ensure scripts currently fetch the remote archive checksum before consulting the installed binary and checksum sidecar. A cold start therefore aborts during any transient DNS, TLS, captive-portal, network, or
get.monk.iofailure, even after a successful prior installation.The fallback only applies when the target is non-empty and the existing sidecar contains a valid 64-character SHA-256 value. An unavailable update endpoint still causes a hard failure when no previously checksummed local installation exists.
Validation
.github/workflows/install-e2e.ymland rangit diff --checkFixes #90