Merged
Conversation
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
kptkin
reviewed
Feb 9, 2026
kptkin
approved these changes
Feb 10, 2026
…_multi-run_workspace
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.
Description
W&B LEET — Multi-Run Workspace
Quick start
By default, LEET opens the workspace and selects the latest run. Set
startup_modetosingle_run_latestin the config to go straight into single-run view instead. Providing a path always opens single-run view.What's new?
LEET now opens into a workspace view by default — a multi-run experience with three panels:
Press
Enterto drill into a single run,Escto return. The workspace keeps all watchers and heartbeats alive in the background, so returning is instant.New key bindings (workspace)
Spaceselect/deselect run •ppin run •[ / ]toggle sidebars •Tab / Shift+Tabcycle sidebar focus •/filter metrics •Enteropen run •Escback •hhelpArchitecture notes (for reviewers)
## Model hierarchy Model (top-level) owns a Workspace (always alive) and optionally a Run (created on Enter, cleaned up on Esc). Message routing: help overlay → active sub-model → mode transitions. Non-input messages are forwarded to the workspace even while viewing a single run, keeping directory watchers and heartbeats current.Workspace data path
Directory watcher: polls wandb/ for run directories, emits WorkspaceRunDirsMsg.
Per-run readers: each selected run gets its own WandbReader + WatcherManager, keyed by run directory name. Batched records are tagged with WorkspaceChunkedBatchMsg / WorkspaceBatchedRecordsMsg to route to the correct run.
Overview preloader: unselected runs get lightweight preloads (just the RunRecord) for the overview sidebar, capped at maxConcurrentPreloads.
Shared heartbeat: a single HeartbeatManager + channel serves all live workspace runs.
Multi-series metrics grid
The existing MetricsGrid / EpochLineChart now support multiple series per chart. Each run's data is keyed by its .wandb file path. PromoteSeriesToTop ensures the pinned run renders last (on top). Color assignment uses a stable hash of the run path into the active palette.
Run selection & pinning
selectedRuns map[string]bool tracks which runs contribute data to the metrics grid. pinnedRun (at most one) gets visual priority: its series draws on top and its list entry shows ▶. Deselecting the pinned run auto-unpins it.
###Sidebar layout
Both sidebars use AnimationState for smooth expand/collapse. When both sidebars are visible, widths use SidebarWidthRatioBoth (≈ 0.236, derived from φ); when only one is visible, SidebarWidthRatio (≈ 0.382). Focus management: exactly one sidebar receives keyboard input at a time, resolved by resolveSidebarFocus.