WIP: Paul/feat/t3 cockpit#3200
Conversation
Greptile SummaryThis PR adds a packaged React cockpit and a reconnecting WebTransport relay path from robot streams to browser viewers.
Confidence Score: 3/5The stale cockpit state and broken release wheel smoke path should be fixed before merging. Robot removal leaves the previous manifest visible in the cockpit, and clean cibuildwheel validation now raises because its workflow does not generate the newly mandatory cockpit distribution. Files Needing Attention: web/cockpit/src/session/session.ts, setup.py, .github/workflows/release-build-check.yml Important Files Changed
Sequence DiagramsequenceDiagram
participant CLI as dimos run
participant Bridge as RelayBridgeModule
participant Relay as Deno Relay
participant Cockpit as Browser Cockpit
CLI->>Bridge: compose --local-relay/--relay-url
Bridge->>Relay: robot hello + manifest
Cockpit->>Relay: viewer hello + watch + subscriptions
Relay-->>Bridge: subscription snapshots
Bridge->>Relay: subscribed robot frames
Relay-->>Cockpit: reliable/latest data streams
Relay-->>Cockpit: robot-list and manifest updates
|
| case "robots": { | ||
| const pick = pickAutoWatch(msg.robots); | ||
| this.status.update({ robot: pick, robotCount: msg.robots.length }); | ||
| if (pick !== null && pick.id !== watched) { | ||
| watched = pick.id; | ||
| await send({ t: "watch", robotId: pick.id }); | ||
| } | ||
| break; |
There was a problem hiding this comment.
Stale manifest survives robot removal
When the watched robot disconnects and the relay publishes an empty robot list, this branch clears the selected robot but retains the previous manifest and channels, causing the cockpit to report "no robot" while continuing to display the disconnected robot's stale channel table.
Codecov Report❌ Patch coverage is @@ Coverage Diff @@
## paul/feat/t2-relay #3200 +/- ##
======================================================
+ Coverage 74.33% 74.42% +0.08%
======================================================
Files 1108 1113 +5
Lines 105309 106061 +752
Branches 9598 9652 +54
======================================================
+ Hits 78283 78932 +649
- Misses 24316 24411 +95
- Partials 2710 2718 +8
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 3 files with indirect coverage changes 🚀 New features to boost your workflow:
|
86d81f8 to
0ee126a
Compare
1464b40 to
962eaef
Compare
Contribution path
Problem
Solution
How to Test
AI assistance
Checklist