Skip to content

feat: allow images on issues opened with /feature and /bug - #542

Closed
cannonsh wants to merge 2 commits into
dev-null-sh:productionfrom
cannonsh:feat/composer-skill-images
Closed

cannonsh wants to merge 2 commits into
dev-null-sh:productionfrom
cannonsh:feat/composer-skill-images

Conversation

@cannonsh

Copy link
Copy Markdown
Contributor

What

The composer already accepts images, but the picker was hidden once a draft became an issue with `/feature` or `/bug`, and issues were text only. This lets issues carry up to 3 images, with the same limits and validation as commits (JPEG, PNG or WebP, 10 MB each, no poll).

GitHub's API has no image upload for apps, so the images are stored here and linked from the issue body as markdown.

  • `CreateIssueRequest` takes the commit image rules.
  • `CreateIssue` re-encodes the images as WebP (metadata dropped), stores them under `issue-images/`, appends `description` to the body, and deletes them again if GitHub does not open the issue.
  • `IssueImageController` serves them publicly at `issue-images/{uuid}`, since GitHub has to load them. No table: the files are not tied to a record.
  • The composer shows the image picker in issue mode (poll stays hidden), no longer ignores `/bug` when images are already attached, and requires text for an issue.

For maintainers to weigh in on

Hosting the images on dev-null.sh needs a decision:

  • Images are public to anyone with the link, with no expiry.
  • Nothing deletes them when an issue is closed or deleted.
  • If dev-null.sh storage is lost, the issue shows broken images.
  • The existing limit of 5 issues an hour caps a user at 15 images an hour, but the image route itself is not throttled.
  • Alternative: give the GitHub App `contents: write` and commit the images to a repo or branch instead.

Testing

  • `IssueControllerTest`: images are linked from the body and served publicly, removed when GitHub fails, and capped at three.
  • Not run: the full Pest suite and the frontend unit tests. No frontend test covers the new picker behaviour.

🤖 Generated with Claude Code

@hbenabdallah

Copy link
Copy Markdown
Contributor

Duplicate of #501 (images on /bug and /feature issues).

@nunomaduro

Copy link
Copy Markdown
Member

Closing as a duplicate of #501. Thanks for the work on this!

@nunomaduro nunomaduro closed this Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants