Skip to content

Added BYOS Hanami URI delivery mode#52

Merged
ikraamg merged 1 commit intomainfrom
support-new-versions-of-terminus
Apr 14, 2026
Merged

Added BYOS Hanami URI delivery mode#52
ikraamg merged 1 commit intomainfrom
support-new-versions-of-terminus

Conversation

@ikraamg
Copy link
Copy Markdown
Collaborator

@ikraamg ikraamg commented Apr 14, 2026

Terminus 0.52.0 removed base64 payload support, so the add-on needs a way to hand Terminus a URL it can fetch. URI mode sends the add-on's screenshot endpoint URL and lets Terminus pull the image itself.

Legacy base64 mode is preserved as an opt-in for Terminus ≤ 0.51.0 users. A delivery-mode selector in the BYOS schedule config defaults to data so existing schedules keep working unchanged until users opt in to URI mode.

Includes supporting pieces for the feature:

  • addon_base_url + ByosDeliveryMode added to the BYOS config
  • BYOS_DEFAULT_DELIVERY_MODE constant shared by UI and extractor
  • Screenshot URL builder threads url query param in generic mode so Terminus fetches hit the screenshot handler, not the UI HTML
  • Device preset selection auto-fills crop dimensions from viewport
  • Webhook format tests restructured by mode (URI / data / explicit)
Screenshot 2026-04-14 at 17 37 37

Terminus 0.52.0 removed base64 payload support, so the add-on
needs a way to hand Terminus a URL it can fetch. URI mode sends
the add-on's screenshot endpoint URL and lets Terminus pull the
image itself.

Legacy base64 mode is preserved as an opt-in for Terminus ≤ 0.51.0
users. A delivery-mode selector in the BYOS schedule config
defaults to `data` so existing schedules keep working unchanged
until users opt in to URI mode.

Includes supporting pieces for the feature:
- `addon_base_url` + `ByosDeliveryMode` added to the BYOS config
- `BYOS_DEFAULT_DELIVERY_MODE` constant shared by UI and extractor
- Screenshot URL builder threads `url` query param in generic mode
  so Terminus fetches hit the screenshot handler, not the UI HTML
- Device preset selection auto-fills crop dimensions from viewport
- Webhook format tests restructured by mode (URI / data / explicit)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@ikraamg ikraamg marked this pull request as ready for review April 14, 2026 16:40
@ikraamg ikraamg merged commit a7641f0 into main Apr 14, 2026
8 checks passed
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.

1 participant