fix(agents): share runtimes across connection sessions
This commit is contained in:
1 parent
1280450b98
commit
67541232a2
67 files changed
+2904
-354
No files matched your search
@@ -0,0 +1,11 @@
|
||||
import type { DriverRuntimeInfo } from "@/lib/backend/tauri";
|
||||
|
||||
export function driverRuntimeProtocolLabel(runtime: Pick<DriverRuntimeInfo, "protocol_mode" | "active_sessions">): string | null {
|
||||
if (runtime.protocol_mode === "multi_session") {
|
||||
return `Multi-session · ${runtime.active_sessions ?? 0} sessions`;
|
||||
}
|
||||
if (runtime.protocol_mode === "legacy") {
|
||||
return "Legacy";
|
||||
}
|
||||
return null;
|
||||
}
|
||||
Reference in new issue
Block a user