Skip to content

Pre-download trusted issue images into the triage worktree #1892

Closed

Description

@JacobStephens2

Parent

Part of #1695.

What to build

When triaging an existing GitHub issue (thirdshift triage <Issue> or a Triage Pass), screenshots and images attached in the trusted issue body or trusted comments cannot be fetched by the session itself when --read-machine sandboxes network access.

Before starting the triage session, thirdshift should:

  • Extract image URLs from Markdown ![...](url) and HTML <img ... src="url"> tags in the trusted issue body and trusted comments only (never from untrusted comments), restricted to https:// URLs on github.com or *.githubusercontent.com.
  • Download up to 10 unique images (at most 20 MiB per image, with a bounded timeout) on the host (using authenticated gh / HTTP requests as needed for private repository attachments) into .thirdshift-issue-images/ inside the throwaway triage worktree.
  • If an image download fails or exceeds the size/count bounds, log a warning and continue with the issue text rather than failing the Triage run.
  • Append a section to .thirdshift-issue.md listing each downloaded image's original URL and its local path under .thirdshift-issue-images/, and instruct the session in the prompt / thirdshift-triage skill to inspect downloaded images from .thirdshift-issue-images/.

Acceptance criteria

  • Image URLs in the trusted issue body and trusted comments (![...](url) and <img ... src="url">) on https://github.com/... and https://*.githubusercontent.com/... are extracted, while URLs in untrusted comments or non-GitHub/non-HTTPS hosts are ignored.
  • Up to 10 unique images (max 20 MiB each) are downloaded on the host into .thirdshift-issue-images/ in the triage worktree before the session starts (so they are readable inside the --read-machine sandbox).
  • .thirdshift-issue.md lists each downloaded image's original URL and local worktree path.
  • A failed or oversized image download logs a warning and allows the Triage run to proceed with the remaining content.
  • prompts/ and site/prompts/index.html are regenerated if prompt/skill text changes (cargo test prompts_page), and tests cover trusted vs untrusted image extraction, bounds, and download fallback.

Blocked by

Activity

  1. added
    enhancement
    ready-for-agent
    on Nov 9, 2026
  2. JacobStephens2 commented on Nov 10, 2026

    @JacobStephens2
    OwnerAuthor

    Closed by #1922, merged into issue-1695 by a thirdshift Ticket run with Self-merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementready-for-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions