feat: build session dashboard with resilient live state handling#20
Merged
Conversation
The macOS control center needed a dashboard that could stay useful while the daemon reconnects and workloads churn, but the existing monitoring view did not preserve ordering or selection when an agent was rekeyed and it surfaced too little session context to replace the TUI overview. This change anchors selection to the session when possible, preserves the existing workload order while appending new entries, enriches the session rows and detail pane with daemon-backed identifiers and lifecycle data, adds regression coverage for workload rekeys and order preservation, and includes MonitoringStore.swift in the checked-in Xcode project so the app build stays green.
The session dashboard branch still had a few review issues after the main implementation landed. The workload ordering helper had become harder to reason about, the highlights panel could show pid 0 for pending work, and the fallback ordering branches were not covered by a focused regression test. This change splits retained-order handling from new-workload sorting, collapses the duplicated event merge path, normalizes pending pid display in the highlights panel, and adds a regression test that exercises the attention, kind, spawn time, and id ordering rules for newly discovered workloads.
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
MonitoringStore.swiftin the checked-in Xcode projectContext
Task:
ts-b020a0This turns the monitoring home screen into a more credible native replacement for the TUI overview by making live state churn less disruptive and by exposing more of the daemon-backed session context directly in the list and detail panes.
Remaining verification gap: I did not validate against a real active-session churn scenario locally because there were no safe live sessions to monitor without spawning unrelated worker activity.