From 58733939e2c2bc94ab4b2ab6401050c08214e939 Mon Sep 17 00:00:00 2001 From: claude-v2-deploy-coordination Date: Thu, 21 May 2026 22:36:21 -0400 Subject: [PATCH] fix(runtime-status): strip sha256: prefix in stale comparison (was always-stale false positive) --- server.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server.js b/server.js index 37fe35b..436bafa 100644 --- a/server.js +++ b/server.js @@ -1333,7 +1333,8 @@ fastify.get('/api/v1/apps/:app/runtime-status', async (request, reply) => { state = parts[2] || null; health = parts[3] || null; } - const stale = !!expectedSha && !!running_image_sha && expectedSha !== running_image_sha; + const stripSha = (s) => (s || '').replace(/^sha256:/, ''); + const stale = !!expectedSha && !!running_image_sha && stripSha(expectedSha) !== stripSha(running_image_sha); if (stale) anyStale = true; out.push({ service: svc, container_id: containerId || null, expected_image_sha: expectedSha || null, running_image_sha, started_at, state, health, stale }); }