fix(web): open artifacts outside the installed app context
This commit is contained in:
@@ -8,6 +8,30 @@ test, or a code change without a capture, is `partial` at best.
|
||||
|
||||
Status legend: `todo` · `partial` (some of it works) · `done` (working + captured).
|
||||
|
||||
### Artifact browser hand-off (2026-10-20)
|
||||
|
||||
Artifact opens now use one validated navigation helper across gallery/list,
|
||||
verdict, audit/session/repair, search, viewer and chat links. Android standalone
|
||||
apps request an explicit browser-family VIEW intent: an implicit HTTPS intent or
|
||||
`_blank` alone can be captured by the current WebAPK. Browser packages are fixed
|
||||
by the known browser family, never supplied by artifact/model text; other
|
||||
environments retain native `_blank` links with external/noopener/noreferrer.
|
||||
Copy/Share keep ordinary HTTP(S) URLs. No code replaces the app's own location.
|
||||
Markdown root-relative artifact links are clickable; executable/local URLs remain
|
||||
unlinked. The viewer has an explicit **Open in browser** link and wrapping mobile
|
||||
actions. All file types open in the browser by default; **Preview in app** is an
|
||||
explicit secondary gallery/list action for media and Markdown/text. On touch
|
||||
screens these actions are visible, separate from Open, and at least 44px.
|
||||
|
||||
`test/artifact-browser-probe.mjs` verifies an actual new browser target while the
|
||||
app URL/history remain unchanged, then inspects Android standalone hand-offs for
|
||||
tiles (HTML/Markdown/image), list, search, chat, session and viewer controls. Copy retains HTTP, unsafe links stay
|
||||
inert, and actions fit at 390/420px. Captures are in the approved OpenCode temporary
|
||||
`artifact-browser-captures/` directory. **Android's actual OS/browser launch and
|
||||
Back behavior require the user's phone check**; the desktop test does not claim
|
||||
to reproduce an installed Android WebAPK. Shell cache version is bumped so the
|
||||
new navigation modules refresh on the next app reload.
|
||||
|
||||
### List miniature follow-up (2026-10-20)
|
||||
|
||||
Workflow and run miniatures now share the existing graph layout, right-aligned
|
||||
|
||||
Reference in New Issue
Block a user