Skip to content

Commit 67fd95d

Browse files
committed
Note how to run desktop dev beside an installed app
1 parent e5bd092 commit 67fd95d

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

‎RUNNING.md‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,30 @@ develop on its `main`, publish a bump, then bump the dependency here. The
4040
The e2e globalsetup files are the source of truth for "how do I boot a
4141
working instance of X" — read them before inventing a boot path.
4242

43+
A desktop dev run collides with an INSTALLED Executor in three places, all of
44+
which look like something else. Give the dev run its own of each:
45+
46+
```
47+
HOME=/tmp/executor-dev-home \
48+
EXECUTOR_DESKTOP_USER_DATA=/tmp/executor-desktop-dev-userdata \
49+
EXECUTOR_DESKTOP_SETTINGS_DIR=/tmp/executor-desktop-dev-settings \
50+
bun run dev
51+
```
52+
53+
- **userData** holds Electron's single-instance lock, so the second process
54+
quits at startup with **exit code 0 and no message** — the log simply stops
55+
after "starting electron app".
56+
- **`~/.executor`** holds the sidecar's SQLite, taken by whoever opened it
57+
first; the app reports "Failed to open local SQLite data". `HOME` moves it,
58+
so symlink `.codex`, `.config` and friends into the fake home or anything
59+
reading them (Codex plugins included) loses its state.
60+
- **The port** comes from `settings.json` in the settings dir; write
61+
`{"server":{"port":<free>}}` there before the first launch.
62+
63+
Renderer edits inside a workspace package can be served from vite's dep
64+
cache rather than the source the package exports. If a change does not appear
65+
after a reload, delete `apps/desktop/node_modules/.vite` and restart.
66+
4367
## E2E: running, viewing, sharing
4468

4569
`e2e/AGENTS.md` covers writing scenarios. Operationally:

0 commit comments

Comments
 (0)