refactor: remove stale Packer comment in hetzner.ts (#2878)

The reference to "Hetzner Packer" was removed in #2869.
Updated the comment to accurately describe the snapshot naming convention.

-- qa/code-quality

Co-authored-by: spawn-qa-bot <qa@openrouter.ai>
Co-authored-by: L <6723574+louisgv@users.noreply.github.com>
This commit is contained in:
A 2026-03-22 14:14:00 -07:00 committed by GitHub
parent 76afe9546b
commit 054a740e5a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -484,7 +484,7 @@ export async function findSpawnSnapshot(agentName: string): Promise<string | nul
const text = await hetznerApi("GET", "/images?type=snapshot&per_page=100", undefined, 1);
const data = parseJsonObj(text);
const allImages = toObjectArray(data?.images);
// Hetzner Packer sets snapshot_name → description field in the API
// Snapshots are named `spawn-{agent}-*` and stored in the description field
const images = allImages.filter((img) => isString(img.description) && img.description.startsWith(prefix));
if (images.length === 0) {
return null;