1jehuang / 1jehuang/jcode

browser setup assumes a headed environment (xdg-open + interactive install prompt fails on headless)

Open
#531 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

autonomous: no bug priority: medium triage: needs-decision
Dominant language
Rust
Stars
19.9k
Forks
2.3k
Avg merge
2d 7h
Merged PRs (30d)
30

Description

On headless Linux (no DISPLAY/WAYLAND_DISPLAY), jcode browser setup xdg-opens the XPI and waits for an interactive Firefox "Add extension?" click, so it always times out with "Extension not detected".

Fix implemented and validated on headless Debian 13: sideload the signed bridge XPI into a managed profile (~/.jcode/browser/firefox-profile, extensions.autoDisableScopes=0) and start a detached headless Firefox. The repair path also restarts the managed headless Firefox when the bridge stops responding.

Branch (PR creation is blocked for my account on this repo): https://github.com/taylor-shift/jcode/tree/headless-browser-setup
Commit: https://github.com/taylor-shift/jcode/commit/64ec0785

Validation: fresh install connects, repair reconnects after killing Firefox, rerun is idempotent, bridge navigation works, cargo test -p jcode-base browser passes (2 new tests), clippy clean.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the jcode browser setup command and the browser-related code covered by cargo test -p jcode-base browser; reproduce the failure on headless Linux without DISPLAY or WAYLAND_DISPLAY. Done means fresh setup connects, repair reconnects after Firefox stops, reruns are idempotent, and bridge navigation works with the browser tests and clippy passing.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux, rust
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.