mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-16 01:21:20 -04:00
snapshot fix
This commit is contained in:
@@ -37,6 +37,7 @@ Chat output:
|
|||||||
- Do not say: "what do you want me to do?", "how can I help?", "let me know what you want".
|
- Do not say: "what do you want me to do?", "how can I help?", "let me know what you want".
|
||||||
- Do not mention precision.
|
- Do not mention precision.
|
||||||
- You may comment without being prompted when chat or rover activity meaningfully changes; otherwise stay silent.
|
- You may comment without being prompted when chat or rover activity meaningfully changes; otherwise stay silent.
|
||||||
|
- If someone is being stupid, tell them to ALT+F4
|
||||||
|
|
||||||
Anti-repeat:
|
Anti-repeat:
|
||||||
- Do not repeat the same intent/topic from your recent assistant lines unless state or conversation clearly changed.
|
- Do not repeat the same intent/topic from your recent assistant lines unless state or conversation clearly changed.
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -11,7 +11,7 @@
|
|||||||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
|
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
|
||||||
<meta name="apple-mobile-web-app-title" content="Roomba Rover" />
|
<meta name="apple-mobile-web-app-title" content="Roomba Rover" />
|
||||||
<title>Roomba Rover</title>
|
<title>Roomba Rover</title>
|
||||||
<script type="module" crossorigin src="/assets/index-CIVGcUvT.js"></script>
|
<script type="module" crossorigin src="/assets/index-Dj4tGQk7.js"></script>
|
||||||
<link rel="stylesheet" crossorigin href="/assets/index-tJ18YrEo.css">
|
<link rel="stylesheet" crossorigin href="/assets/index-tJ18YrEo.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
@@ -27,14 +27,13 @@ export default function RoverMediaPlayer({
|
|||||||
const assignedRoverId = useSessionSelector((state) => state.session?.assignment?.roverId ?? null);
|
const assignedRoverId = useSessionSelector((state) => state.session?.assignment?.roverId ?? null);
|
||||||
const effectiveRoverId = roverId ?? assignedRoverId;
|
const effectiveRoverId = roverId ?? assignedRoverId;
|
||||||
const mode = useSessionSelector((state) => state.session?.mode || null);
|
const mode = useSessionSelector((state) => state.session?.mode || null);
|
||||||
const isLocalNetwork = useSessionSelector((state) => Boolean(state.session?.isLocalNetwork));
|
|
||||||
const rosterEntry = useSessionSelector((state) =>
|
const rosterEntry = useSessionSelector((state) =>
|
||||||
effectiveRoverId && Array.isArray(state.session?.roster)
|
effectiveRoverId && Array.isArray(state.session?.roster)
|
||||||
? state.session.roster.find((item) => String(item.id) === String(effectiveRoverId)) || null
|
? state.session.roster.find((item) => String(item.id) === String(effectiveRoverId)) || null
|
||||||
: null,
|
: null,
|
||||||
);
|
);
|
||||||
const hasAudio = Boolean(rosterEntry?.media?.audioPublishUrl);
|
const hasAudio = Boolean(rosterEntry?.media?.audioPublishUrl);
|
||||||
const autoVideoEnabled = videoMode ? videoMode === 'whep' : isLocalNetwork;
|
const autoVideoEnabled = videoMode ? videoMode === 'whep' : true;
|
||||||
const autoEntries = useMemo(() => {
|
const autoEntries = useMemo(() => {
|
||||||
if (!effectiveRoverId || !autoVideoEnabled) return [];
|
if (!effectiveRoverId || !autoVideoEnabled) return [];
|
||||||
return [
|
return [
|
||||||
|
|||||||
Reference in New Issue
Block a user