feat(#7): concurrent sidecar session management#20
Merged
Conversation
- Add BuildSession and BuildSessions types to src/lib/build.ts - Extend Rust backend with BuildSidecarState (map of session ID → process), sidecar_start_build, sidecar_stop_build, sidecar_list_builds commands, and MAX_CONCURRENT_BUILDS = 3 constant; each build session emits events on sidecar://token/<sessionId> and sidecar://complete/<sessionId> channels - Add useBuildSessions hook with startBuild/stopBuild/selectSession operations and automatic status updates via sidecar://build/status Tauri events - Update useBuildStream to accept optional sessionId param for scoped channels - Update BuildStreamPanel to render session tab bar when multiple builds active - Update WaveSidebar to render ActiveBuildSelector when multiple builds active - 18 new tests across useBuildSessions, useBuildStream, BuildStreamPanel, and WaveSidebar; all 258 tests pass with ESLint --max-warnings 0 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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
BuildSidecarState(map of session ID → child process), three new Tauri commands (sidecar_start_build,sidecar_stop_build,sidecar_list_builds), and aMAX_CONCURRENT_BUILDS = 3constant; each build sidecar emits events on session-scoped channels (sidecar://token/<sessionId>,sidecar://complete/<sessionId>)useBuildSessionshook manages concurrent build sessions withstartBuild(org, repo),stopBuild(sessionId), andselectSession(sessionId)operations; subscribes tosidecar://build/statusevents for automatic status updatesuseBuildStreamupdated to accept an optionalsessionIdparameter for scoped event channels (falls back to global channels when omitted)BuildStreamPanelupdated with a session tab bar (shown when multiple sessions are active), backed bySessionStreamsub-component that scopesuseBuildStreamto the selected sessionWaveSidebarupdated withActiveBuildSelectortab bar at the top of the content area (shown whensessions.length > 1andonSelectSessionis provided)BuildSessionandBuildSessionstypes added tosrc/lib/build.tsTest plan
pnpm test)--max-warnings 0(pnpm lint)pnpm format:check)BuildStreamPanelandWaveSidebarCloses #7
🤖 Generated with Claude Code