diff --git a/apps/gui/src/components/config/ProviderInstancesConfig.tsx b/apps/gui/src/components/config/ProviderInstancesConfig.tsx
index f405581..ad84f2b 100644
--- a/apps/gui/src/components/config/ProviderInstancesConfig.tsx
+++ b/apps/gui/src/components/config/ProviderInstancesConfig.tsx
@@ -43,13 +43,7 @@ import {
CardTitle,
CardAction,
} from "@/components/ui/card";
-import {
- Item,
- ItemContent,
- ItemGroup,
- ItemTitle,
- ItemDescription,
-} from "@/components/ui/item";
+import { Item, ItemContent, ItemGroup, ItemTitle } from "@/components/ui/item";
import { Empty, EmptyTitle, EmptyDescription } from "@/components/ui/empty";
import { cn } from "@/lib/utils";
import { RefreshCwIcon } from "lucide-react";
@@ -200,14 +194,12 @@ export function ProviderInstancesConfig({
fetchModelsForExistingInstance(selectedInstanceId);
}
}
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, [selectedInstanceId, instances, availableProviders]);
// Re-fetch models when provider/key/endpoint changes on new instance form
useEffect(() => {
if (selectedInstanceId !== "new") return;
fetchModelsForNewInstance(editProvider, editKey, editEndpointUrl);
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, [editProvider, editKey, editEndpointUrl, selectedInstanceId]);
const handleProviderChange = (providerId: string | null) => {
diff --git a/apps/gui/src/components/play/HandoffModal.tsx b/apps/gui/src/components/play/HandoffModal.tsx
index c8186a4..55af187 100644
--- a/apps/gui/src/components/play/HandoffModal.tsx
+++ b/apps/gui/src/components/play/HandoffModal.tsx
@@ -126,66 +126,73 @@ export function HandoffModal({ entry, onClose }: HandoffModalProps) {
Memory Ledger Additions
- {chunks.map((chunk: any, index: number) => (
-
-
-
- {chunk.content}
-
-
- Importance: {chunk.importance}
-
-
-
- {chunk.quotes && chunk.quotes.length > 0 && (
-
- {chunk.quotes.map((quote: string, qIdx: number) => (
-
“{quote}”
- ))}
-
- )}
-
-
- {chunk.retainInBuffer ? (
+ {chunks.map(
+ (
+ chunk: { content: string; importance: number },
+ index: number,
+ ) => (
+
+
+
+ {chunk.content}
+
- Pinned in Buffer
-
- ) : (
-
- Pruned from Buffer
+ Importance: {chunk.importance}
+
+
+ {chunk.quotes && chunk.quotes.length > 0 && (
+
+ {chunk.quotes.map((quote: string, qIdx: number) => (
+
“{quote}”
+ ))}
+
)}
- {chunk.involvedEntityIds &&
- chunk.involvedEntityIds.length > 0 && (
-
- Entities:
- {chunk.involvedEntityIds.map((entId: string) => (
-
- {entId}
-
- ))}
-
+
+ {chunk.retainInBuffer ? (
+
+ Pinned in Buffer
+
+ ) : (
+
+ Pruned from Buffer
+
)}
+
+ {chunk.involvedEntityIds &&
+ chunk.involvedEntityIds.length > 0 && (
+
+ Entities:
+ {chunk.involvedEntityIds.map(
+ (entId: string) => (
+
+ {entId}
+
+ ),
+ )}
+
+ )}
+
-
- ))}
+ ),
+ )}
)}
diff --git a/apps/gui/src/components/play/InteractView.tsx b/apps/gui/src/components/play/InteractView.tsx
index 68ae954..503b484 100644
--- a/apps/gui/src/components/play/InteractView.tsx
+++ b/apps/gui/src/components/play/InteractView.tsx
@@ -17,13 +17,11 @@ import {
function IntentTag({
intent,
- isSelf,
playerAliases,
playerId,
entities,
}: {
intent: SimSnapshot["log"][number]["intents"][number];
- isSelf?: boolean;
playerAliases: Record;
playerId: string;
entities: SimSnapshot["entities"];
@@ -59,7 +57,10 @@ function IntentTag({
aliases: viewerAliasesMap,
};
- const textToDisplay = hydrate(intent.content, viewerEntityMock as any);
+ const textToDisplay = hydrate(
+ intent.content,
+ viewerEntityMock as unknown as Parameters[1],
+ );
const modifiersStr =
intent.modifiers && intent.modifiers.length > 0 ? (
@@ -147,7 +148,6 @@ function LogEntryCard({
{
if (!promptBreakdown) return [];
@@ -66,7 +66,7 @@ export function PromptModal({ entry, onClose }: PromptModalProps) {
return (