fix: don't cache transient errors in version negotiation
Replace sync.Once with sync.Mutex so that only successful version lookups are cached. Errors (context cancellation, network blips) are returned without caching, allowing subsequent calls to retry. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Signed-off-by: Guillaume Lours <glours@users.noreply.github.com>
G
Guillaume Lours committed
ef836856fe7b264d84a0593710a0b33573450a9d
Parent: c7d1a60
Committed by Nicolas De loof <nicolas.deloof@gmail.com>
on 3/31/2026, 12:39:37 PM