Skip to content

Add bun run --filter=@inkeep/open-knowledge-desktop instances to…#312

Merged
inkeep-oss-sync[bot] merged 1 commit into
mainfrom
copybara/sync
Jun 26, 2026
Merged

Add bun run --filter=@inkeep/open-knowledge-desktop instances to…#312
inkeep-oss-sync[bot] merged 1 commit into
mainfrom
copybara/sync

Conversation

@inkeep-oss-sync

Copy link
Copy Markdown
Contributor

Add bun run --filter=@inkeep/open-knowledge-desktop instances to 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 via open -n so 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.

…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
@inkeep-oss-sync inkeep-oss-sync Bot requested a review from nick-inkeep as a code owner June 26, 2026 04:22

@inkeep-internal-ci inkeep-internal-ci Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@inkeep-oss-sync inkeep-oss-sync Bot merged commit b767d9e into main Jun 26, 2026
1 check passed
@inkeep-oss-sync inkeep-oss-sync Bot deleted the copybara/sync branch June 26, 2026 04:22
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