feat(server): allow concurrent hosts - #367
Merged
Merged
Conversation
ThinkRail-Todo: 01a05876-3776-74bb-a5e5-afa59b823d65/t_4ecac6e9b1f0
ThinkRail-Todo: 01a05876-3776-74bb-a5e5-afa59b823d65/t_828bfccc832a
Rinat S (rsolmano)
requested review from
Olga Lavrichenko (OLavrik),
Rustam Sadykov (SBOne-Kenobi) and
danyaberezun
as code owners
September 1, 2026 12:56
danyaberezun
approved these changes
Sep 1, 2026
Rinat S (rsolmano)
marked this pull request as draft
September 1, 2026 13:35
Rinat S (rsolmano)
marked this pull request as ready for review
September 1, 2026 13:35
github-merge-queue
Bot
removed this pull request from the merge queue due to no response for status checks
Sep 1, 2026
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.
Summary
Allow multiple ThinkRail hosts to start against the same canonical data directory. This removes the startup collision that prevented running
bun run devfrom the main checkout and feature workspaces at the same time while preserving each launcher's existing port selection and graceful shutdown.Changes
bootHostto retain process signal handling without lease lifecycle wrappingConcurrent hosts still have independent in-memory services and event streams. Shared persistence has no cross-process locking or convergence guarantee, so simultaneous writes may be last-writer-wins.
Testing
bun run check:deps— passedbun run check:boundaries— passedbun run check:seams— passedbun run lint— passed with 6 pre-existing unused-suppression warningsbun run typecheck— 14/14 tasks passedbun run test— 14/14 package tasks passed; server reported 871 tests passedbun run e2e— 316 tests passed across 8 shardsokfrom/health