#4285·semaphore

Feature: Make URLs in task output clickable

Author: Tejaswita1203Created Sep 26, 2026Updated Sep 26, 2026
Labelsfeature

Related to

Web-Frontend (what users interact with)

Impact

better user experience

Missing Feature

When a task's Ansible output (e.g. from a debug task) contains a plain URL like https://my-bucket.s3.amazonaws.com/report.html, it's rendered as inert text in the task output panel, it's not clickable, and there's no way from the playbook side to make it clickable (no markdown, no HTML tag, nothing gets parsed). I'd like the output viewer to detect URLs in log lines and render them as actual links.

Implementation

Right now, when Semaphore shows the output of a task, it just prints out each line as plain text, even if that line contains a full URL. What I'd like is for Semaphore to notice when a line of output contains a link (starting with http:// or https://) and turn just that part into a real, clickable link, the same way apps like Slack or Discord do when you paste a URL into a chat.

This would purely be a change to how the output is displayed in the browser. Nothing about how tasks run, what Ansible sends back, or how output is stored needs to change. It's just: when you're about to show this line of text to the user, check if there's a URL hiding in it, and wrap that part in a normal link tag, something like "", instead of showing it as plain text.

Design

The main challenge is figuring out exactly where a URL starts and ends inside a line of text, since a URL usually isn't wrapped in any special markers, it just sits between regular words and punctuation, so a simple approach is to match anything starting with "http://" or "https://" and keep reading until hitting a space, quote, or a </> character, which avoids accidentally grabbing a trailing period (like in "Report is ready: https://example.com/report.html.") or a closing bracket or quote that was really just part of the surrounding sentence rather than the link itself. This detection also needs to happen at the right point relative to Semaphore's existing output coloring (e.g. red text for errors), so that turning a URL into a link doesn't break the coloring or get stripped out by it. It should behave the same way whether someone is watching a task's output live while it's still running or looking back at a finished task's output later, so the link isn't only clickable in one of those views. And it should only affect how output is displayed in the browser, not the raw log itself, so downloading or copying the plain-text output stays exactly as it is today.