[GH-ISSUE #609] --no-browser flag? #286

Closed
opened 2026-11-04 01:41:40 +07:00 by bsakaguchi · 4 comments
Owner

Originally created by @mkultra333 on GitHub (Oct 3, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/609

I can't see any way to stop strata launching the browser chat, even though I'm using it with the Oh My Pi harness. I changed the open_browser line in
setup.py, but it'd be handy to do this with just a --no-browser flag in my launching command line.

def start(cfg_path: Path, port: int | None, gpu: int | list | None = None, open_browser=False, yes=False,
layer_split=None, keep=None) -> int:

Originally created by @mkultra333 on GitHub (Oct 3, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/609 I can't see any way to stop strata launching the browser chat, even though I'm using it with the Oh My Pi harness. I changed the open_browser line in setup.py, but it'd be handy to do this with just a --no-browser flag in my launching command line. def start(cfg_path: Path, port: int | None, gpu: int | list | None = None, open_browser=False, yes=False, layer_split=None, keep=None) -> int:
Author
Owner

@cat-love-7 commented on GitHub (Oct 3, 2026):

I think you can achieve this by removing the “--open” flag from the arguments in the server.py startup script.

<!-- gh-comment-id:5969235176 --> @cat-love-7 commented on GitHub (Oct 3, 2026): I think you can achieve this by removing the “--open” flag from the arguments in the server.py startup script.
Author
Owner

@frederikhors commented on GitHub (Oct 3, 2026):

The --open flag is misleading; it should be the other way around.

<!-- gh-comment-id:5971073802 --> @frederikhors commented on GitHub (Oct 3, 2026): The `--open` flag is misleading; it should be the other way around.
Author
Owner

@ahfkdy7 commented on GitHub (Oct 3, 2026):

It also seems to have a problem that locks the folder with having the whole browser as a child process on windows even after the main process gets terminated.

<!-- gh-comment-id:5971843123 --> @ahfkdy7 commented on GitHub (Oct 3, 2026): It also seems to have a problem that locks the folder with having the whole browser as a child process on windows even after the main process gets terminated.
Author
Owner

@Niko1221 commented on GitHub (Oct 4, 2026):

Added in 0.1.39: START-HERE.bat --no-browser (Linux: ./setup.sh --no-browser). It saves "open_browser": false in the model's strata-<model>.json, and from then on neither the start nor run-<model>.bat/.sh opens the chat page. --browser undoes it. It works on a start and at setup. A start script written earlier still has --open, but the server ignores it when the config says "open_browser": false, so editing that one key is enough too. Thanks also to cat-love-7 for the workaround.

<!-- gh-comment-id:5979960803 --> @Niko1221 commented on GitHub (Oct 4, 2026): Added in 0.1.39: `START-HERE.bat --no-browser` (Linux: `./setup.sh --no-browser`). It saves `"open_browser": false` in the model's `strata-<model>.json`, and from then on neither the start nor `run-<model>.bat`/`.sh` opens the chat page. `--browser` undoes it. It works on a start and at setup. A start script written earlier still has `--open`, but the server ignores it when the config says `"open_browser": false`, so editing that one key is enough too. Thanks also to cat-love-7 for the workaround.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#286
No description provided.