Skip to content

Fix browser - #14

Merged
juzaweb merged 3 commits into
mainfrom
fix-browser
Oct 11, 2026
Merged

juzaweb merged 3 commits into
mainfrom
fix-browser

Conversation

@juzaweb

@juzaweb juzaweb commented Oct 11, 2026

Copy link
Copy Markdown
Contributor

No description provided.

- Headless Chrome renders no native context menu, so suppress the
  browser default and surface our own with copy, paste, select all,
  back, forward, and reload actions.
- Keep the right button untouched in onPointerDown so the contextmenu
  event still fires while left/middle presses keep suppressing focus.
- Close the menu on outside click, Escape, resize, and scroll, and
  clamp its position within the viewport.
- Add en/vi labels for the new menu entries.
- Add POST /browser/inspect that starts the agent-browser DevTools proxy
  and returns its loopback frontend URL, rejecting non-local hosts.
- Make the shared runner return command output so callers can parse it.
- Open the DevTools tab synchronously to keep the click a user gesture,
  then redirect it once the async URL arrives.
- Expose GET /projects/{id}/agent-sessions merging in-app chat
  conversations and host CLI agent sessions, newest first
- Read OpenCode sessions read-only from its local SQLite database,
  matched by launch directory (project or worktree)
- Add resume_args to agent specs and a validated resolve_resume_launch
  so the terminal WS can reopen a CLI session via ?session=<id>
- Add a Sessions tab to the right panel (desktop and mobile) that
  lists sessions and resumes chats or CLI terminals on click

The session id comes from the client and is typed into a shell line,
so only a conservative character set is accepted.
@juzaweb
juzaweb merged commit 20e2ba8 into main Oct 11, 2026
3 checks passed
@juzaweb
juzaweb deleted the fix-browser branch October 11, 2026 14:49
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