mirror of
https://github.com/lWolvesl/antigravity-usage-monitor.git
synced 2026-11-26 17:09:28 +08:00
feat(panel): add Native Swarm mode compatibility and distinct worker telemetry
- Guard conversation_parents against forked Swarm Workers (subagentSpec or trajectoryType != 22) and selectively decode CORTEX_STEP_TYPE_SYSTEM_MESSAGE (step_type = 101) for child trajectories only
- Parse swarm, post_message, read_board, and swarm_wait tool calls, split zero-human-turn worker trajectories on initial brief / @mention / cron wakeup boundaries, and downgrade swarm_wait parked workers from RUNNING to IDLE ('waiting') while surfacing killed workers ('killed')
- Scan brain/<id>/.system_generated/swarm/members.json with mtime+size memoization, sort workers chronologically, assign independent swarm_worker ordinals (蜂k / Wk) separate from standard subagents (子k / Sk) and side questions (问k / Qk), and preserve 100% of worker token/USD billing
- Render Swarm counts, titles, scrollable sorted live worker lists, and one-shot auto-focus when navigating host routes to /c/<worker-uuid>, backed by E2E and binary SQLite tests
This commit is contained in:
@@ -265,10 +265,29 @@
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
padding-top: 9px;
|
||||
padding-right: 4px;
|
||||
margin-top: 3px;
|
||||
margin-left: 18px;
|
||||
border-top: 1px dashed var(--border-hairline);
|
||||
min-width: 0;
|
||||
max-height: 196px;
|
||||
overflow-y: auto;
|
||||
overscroll-behavior: contain;
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: var(--border-subtle) transparent;
|
||||
}
|
||||
|
||||
.live-sub-list::-webkit-scrollbar {
|
||||
width: 4px;
|
||||
}
|
||||
|
||||
.live-sub-list::-webkit-scrollbar-track {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.live-sub-list::-webkit-scrollbar-thumb {
|
||||
background: var(--border-subtle);
|
||||
border-radius: 999px;
|
||||
}
|
||||
|
||||
.live-sub-row {
|
||||
@@ -286,6 +305,14 @@
|
||||
opacity: 0.72;
|
||||
}
|
||||
|
||||
.live-sub-row.is-waiting-sub {
|
||||
opacity: 0.86;
|
||||
}
|
||||
|
||||
.live-sub-row.is-killed-sub {
|
||||
opacity: 0.56;
|
||||
}
|
||||
|
||||
.live-sub-left {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
Reference in New Issue
Block a user