mirror of
https://github.com/okieselbach/AutopilotMonitor.git
synced 2026-10-25 05:00:07 +00:00
fix ui event timeline bug for whiteglove sessions
This commit is contained in:
+1
-1
Submodule .claude/commands updated: 6f0a893dae...bc38f3db4b
@@ -631,8 +631,16 @@ export default function SessionDetailPage() {
|
||||
}
|
||||
}
|
||||
|
||||
// Single boot (pre-prov only, user hasn't enrolled yet): use whiteglove_complete
|
||||
return wgEvent?.sequence ?? -1;
|
||||
// Single boot (pre-prov only, user hasn't enrolled yet).
|
||||
// Include post-whiteglove cleanup events (local_admin_analysis, agent_shutdown)
|
||||
// by extending the split to the agent_shutdown that follows whiteglove_complete.
|
||||
if (wgEvent) {
|
||||
const shutdownAfterWg = events.find(e =>
|
||||
e.eventType === "agent_shutdown" && e.sequence > wgEvent.sequence
|
||||
);
|
||||
return shutdownAfterWg?.sequence ?? wgEvent.sequence;
|
||||
}
|
||||
return -1;
|
||||
}, [events, isWhiteGloveSession]);
|
||||
|
||||
// For WhiteGlove sessions: split filtered events into pre-provisioning and user-enrollment parts.
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user