Repository navigation
Render HTML files and URLs in overlays - #659
Merged
Merged
Conversation
…me behind the page
…fresh-split check
…, keep keys beside a pane ask - refuse a --cwd naming the page file itself: WebKit widens a single-file grant to its folder - a user-clicked http(s) link opens in the default browser whatever frame or window it targets, target=_blank included; script-opened windows stay blocked - a click on a session-wide page beside a pane ask selects the uncovered pane, so a later refocus no longer hands the keys back to the ask - HtmlOverlayTheme.stylesheet is internal - predicate docs name coverOverlayActive as the input question
The description and triggers name HTML artifacts so the skill loads when an agent is asked to show a page it generated, the command summary lists open --html, reload and navigate, and a new section covers writing the file, the --cwd grant, --navigation, leaving the page up and reading its state. reference.md and commands.html now state the overlay result refusal for a page.
…he page overlay model and control surface
…oads and show load errors
…ion host acceptance test
…p URL pages browser-styled
…d qualify the file-page backing
… pages in the browser app
…p it cannot cover
…ame the destination origin
…limits and untrusted page text
Deploying agterm with
|
| Latest commit: |
e98855c
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://0415ef6e.agterm.pages.dev |
| Branch Preview URL: | https://html-overlay.agterm.pages.dev |
nickalie
added a commit
to nickalie/agterm-linux
that referenced
this pull request
Sep 29, 2026
Upstream umputun#659 and umputun#663 on GTK. libagterm-webkit.so is the one library linked against WebKitGTK 6.0; the app dlopens it, so it runs without WebKitGTK and refuses only --html/--url, naming the package. A file grant is served by a private URI scheme that answers only under --cwd, each page gets an ephemeral network session, and page JavaScript stays off unless --js. WebKitGTK names no target frame, so the main frame's origin is pinned on its response. Claude-Session: https://claude.ai/code/session_01Phfsdpubm1RJGzh7EtShyn
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
session overlay open --html FILEand--url URLfor generated reports, charts, explainers and running dev servers. Pages use the existing session-wide, floating and per-pane overlay slots, and close with Cmd-W, the close button oroverlay close.Every page sits under an app-drawn strip that names its file or origin, never its title, with the close button.
--navigationadds back, forward, reload and open in browser.overlay reloadloads the original file or URL;--currentreloads the displayed page.overlay navigate back|forward|browsercontrols history and opening in the browser.treereports page metadata and load state, and load failures appear in the panel. The overlay's result, copy and text commands refuse pages.Local HTML is loaded as text with no file access unless
--cwd DIRgrants access to an asset directory;/and the home directory are refused as grants. URL pages keep browser styling and allow same-origin main-frame navigation; an off-origin redirect during a load nobody clicked fails visibly. Each overlay has its own in-memory browser storage and retains page state through session switches, pane moves and the close-undo window. Pages render on the serving Mac; opening one is refused while another Mac presents the session.A page runs no JavaScript of its own unless opened with
--js; the theme script agterm injects runs either way. Page-initiated browser opens require confirmation. Declining suppresses further prompts until the user clicks or types in the page. The toolbar andoverlay navigate browserskip confirmation and use the default browser app; file overlays open their original file. Dropping or pasting file references is refused. Theme scripts run only at document start. The skill tells agents to treattitle,pageanderrorintreeas untrusted text.File pages use the terminal theme by default and reload when it changes. Both sources expose CSS variables for background, foreground and the 16 ANSI colors; URL pages receive theme updates on their next load. The bundled skill teaches agents to create HTML explainers and reports as static HTML, CSS and SVG, display them in an overlay and build them from those variables, passing
--jsonly when the requested interaction or web app requires JavaScript. The command reference and user guide document both modes.Also resets the fresh-split test fixture and records another occurrence of the existing session-host attribution issue in its backlog item.