Skip to content

feat: Added a hooks systemOs multivec#116

Merged
tkellogg merged 2 commits into
mainfrom
os-multivec
May 13, 2026
Merged

feat: Added a hooks systemOs multivec#116
tkellogg merged 2 commits into
mainfrom
os-multivec

Conversation

@tkellogg
Copy link
Copy Markdown
Owner

No description provided.

tkellogg added 2 commits May 13, 2026 12:17
Each UI widget card now has ◀ and ▶ buttons in its titlebar alongside
reload / minimize / maximize. They navigate the iframe's own session
history via contentWindow.history.back()/forward(), which works through
error pages because the iframe retains history regardless of HTTP
status — exactly the escape-hatch case where in-page back links 404.

Sandbox attribute already includes allow-same-origin, so contentWindow
is reachable. Back also has a fallback: if contentWindow throws
(detached / cross-origin), it reloads the plugin root URL so the user
always has a way out.

Forward is a strict no-op when there's nothing in forward history,
matching browser back/forward semantics.

Tests:
- existing test_plugin_titlebar_has_reload_button updated for new order
- new test_plugin_titlebar_has_back_forward_buttons verifies all three:
  buttons present, history calls wired, root-URL fallback present
@tkellogg tkellogg merged commit 87132a0 into main May 13, 2026
@tkellogg tkellogg deleted the os-multivec branch May 13, 2026 22:58
@strix-tkellogg strix-tkellogg mentioned this pull request May 16, 2026
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant