Clickable HTML approval pages for UI fixes in terminal agents
approvalui command not foundInstall the package:
pip install approvalui
Or, if running from the repo:
pip install -e ".[dev]"
The "screenshot" path in the JSON spec is passed directly to the <img src> attribute. Make sure the path is relative to the generated HTML file or an absolute URL.
{
"screenshot": "screenshot.png"
}
Open the browser console and check for JavaScript errors. The most common cause is an invalid items structure. Run approvalui from the command line — it validates the spec and prints a clear error.
ApprovalUI requires:
title string.items list with at least one object.id (string or integer) and a title (string).Optional fields must be strings if provided.