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 }); }