Issue-agent: verify screenshot publication before emitting preview links #118

Closed
opened 2026-04-27 09:49:03 -07:00 by nelsong6 · 0 comments
nelsong6 commented 2026-04-27 09:49:03 -07:00 (Migrated from github.com)

Problem

Issue-agent summaries can include Screenshot Previews with raw GitHub URLs even when screenshot publication did not actually land. In run 25006278644, the summary linked to .github/issue-agent-screenshots/... on main, but the files were missing and the previews 404ed until manually republished from the artifact.

Desired Outcome

Only emit inline screenshot preview links after the workflow has verified the published image URL exists. If publishing fails, the summary should omit the broken image preview and clearly point users to the artifact instead.

Acceptance Criteria

  • Screenshot publishing checks the gh api exit code/result before adding preview markdown.
  • The raw image URL is verified with a lightweight request or repository contents check before being emitted.
  • Failed publishing is surfaced in the job summary/comment as a warning, not silently swallowed.
  • Summaries never include broken image links.
  • Existing artifact links remain available as fallback evidence.
## Problem Issue-agent summaries can include `Screenshot Previews` with raw GitHub URLs even when screenshot publication did not actually land. In run 25006278644, the summary linked to `.github/issue-agent-screenshots/...` on `main`, but the files were missing and the previews 404ed until manually republished from the artifact. ## Desired Outcome Only emit inline screenshot preview links after the workflow has verified the published image URL exists. If publishing fails, the summary should omit the broken image preview and clearly point users to the artifact instead. ## Acceptance Criteria - Screenshot publishing checks the `gh api` exit code/result before adding preview markdown. - The raw image URL is verified with a lightweight request or repository contents check before being emitted. - Failed publishing is surfaced in the job summary/comment as a warning, not silently swallowed. - Summaries never include broken image links. - Existing artifact links remain available as fallback evidence.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
romaine-life/spirelens#118
No description provided.