fix: build errors - TS unused var and useEffect return type

This commit is contained in:
2026-01-29 03:40:23 +00:00
parent a765bf74b1
commit 41e7fe6b54
2 changed files with 4 additions and 3 deletions

View File

@@ -291,8 +291,8 @@ export function TaskDetailPanel({ task, onClose, onStatusChange, onTaskUpdated,
} }
}; };
// Legacy single-field save kept for non-draft fields if needed // Legacy single-field save available if needed
const handleFieldSave = async (field: string, value: string) => { const _handleFieldSave = async (field: string, value: string) => {
if (!hasToken) return; if (!hasToken) return;
setSaving(true); setSaving(true);
try { try {
@@ -304,6 +304,7 @@ export function TaskDetailPanel({ task, onClose, onStatusChange, onTaskUpdated,
setSaving(false); setSaving(false);
} }
}; };
void _handleFieldSave; // suppress unused warning
return ( return (
<> <>

View File

@@ -247,7 +247,7 @@ export function ChatPage() {
// Listen for chat events (streaming responses) // Listen for chat events (streaming responses)
useEffect(() => { useEffect(() => {
const unsub = gateway.on("chat", (payload: any) => { const unsub: () => void = gateway.on("chat", (payload: any) => {
if (payload.sessionKey !== activeThread) return; if (payload.sessionKey !== activeThread) return;
if (payload.state === "delta" && payload.message?.content) { if (payload.state === "delta" && payload.message?.content) {