Add bun run --filter=@inkeep/open-knowledge-desktop instances to…#312
Merged
Conversation
…p (#2170) Adds `bun run --filter=@inkeep/open-knowledge-desktop instances` (script packages/desktop/scripts/launch-instances.mjs) to start multiple isolated desktop instances at once. Each name=project gets its own --user-data-dir (its own single-instance lock plus isolated storage), opens its project by pre-seeding that instance's state.json lastOpenedProject, and is launched detached via `open -n` so it survives the launching process. This is the path that works for agent/automated launches, where dev-mode windows do not (they need a Vite dev server on a port and self-quit when detached). Launches stagger on each project's server.lock to avoid a same-millisecond boot race that drops one project to the Navigator. Documents both this packaged path and the existing dev-only OK_INSTANCE flag in the desktop README. GitOrigin-RevId: 9dac7ebd35033323e3279ac5877fd2436833b771
Contributor
There was a problem hiding this comment.
Automated approval from agents-private public-mirror-sync (run: https://github.com/inkeep/agents-private/actions/runs/28216888134). Source of truth is the monorepo; direct edits on inkeep/open-knowledge are overwritten on next sync.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add
bun run --filter=@inkeep/open-knowledge-desktop instancesto launch multiple isolated desktop instances in parallel from the packaged app. Each<name>=<project>gets its own--user-data-dir(own single-instance lock + storage), opens its project, and is launched detached viaopen -nso it survives the launching process — the path that works for agent/automated launches, where dev-mode windows don't. Launches are staggered to avoid a boot race. Script:packages/desktop/scripts/launch-instances.mjs.