feat(webui): add isolated website previews and link actions
This commit is contained in:
1 parent
05bee21b10
commit
fccf415283
19 files changed
+626
-13
No files matched your search
@@ -438,6 +438,42 @@ private, trusted network.
|
||||
|
||||
## Troubleshooting
|
||||
|
||||
### Links and website previews
|
||||
|
||||
HTTP(S) links in replies have a **Link actions** menu: right-click the link,
|
||||
press Shift+F10 while it is focused, or use its ellipsis button. You can copy the
|
||||
link, open it in a browser tab, or preview it beside the current conversation.
|
||||
Ordinary clicks still open links in a browser tab. File and session links keep
|
||||
their own behavior.
|
||||
|
||||
The sidebar shares space with file previews and has refresh, external-open and
|
||||
close controls. Escape closes it when focus is in the nanobot page, unless a
|
||||
menu or dialog handles Escape first. Once focus is inside a third-party page,
|
||||
use the sidebar's close button. The opened address and width are remembered
|
||||
per session for this app connection, not written to browser storage. Returning
|
||||
to a session reloads the original address; it does not preserve the website's
|
||||
DOM, navigation history or forms. The header shows the **original link**, not a
|
||||
live address bar for navigation inside the embedded page.
|
||||
|
||||
This is a restricted preview, not a full browser. It requires browser support
|
||||
for credentialless iframes and is disabled in the native host until a separate
|
||||
untrusted-content boundary is available. Unsupported browsers can still copy
|
||||
links and open new tabs. Previews use an opaque-origin sandbox with scripts
|
||||
but without same-origin access, forms, popups, downloads or top navigation.
|
||||
No gateway token, host bridge or parent storage is passed into the frame.
|
||||
|
||||
Sites may refuse embedding via CSP or X-Frame-Options, and sign-in or some
|
||||
interactive features may not work. Use **Open in browser** if the frame is blank
|
||||
or reports a failure. The browser does not reliably expose an embedding failure
|
||||
to nanobot, so a frame load event is not presented as a success signal. Nanobot
|
||||
does not proxy pages or bypass their headers. Same-origin nanobot URLs and
|
||||
HTTP pages embedded from an HTTPS WebUI are not previewed.
|
||||
|
||||
`localhost` and loopback addresses refer to the device running your browser,
|
||||
not a remote nanobot gateway. This feature does not forward remote ports.
|
||||
|
||||
### Connection checks
|
||||
|
||||
If the page does not open, check these in order:
|
||||
|
||||
1. `nanobot agent -m "Hello!"` works in the same Python environment.
|
||||
|
||||
Reference in new issue
Block a user