Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/api/src/scripts/generate-openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ async function main() {
}
}

main();
void main();
2 changes: 1 addition & 1 deletion apps/api/src/stt/stt.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
payloadIsControlMessage,
} from "./utils";

mock.module("../env", () => ({
void mock.module("../env", () => ({
env: {
DEEPGRAM_API_KEY: "test-deepgram-key",
ASSEMBLYAI_API_KEY: "test-assemblyai-key",
Expand Down
16 changes: 11 additions & 5 deletions apps/bot/src/devin/poller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,9 @@ export class DevinStatusPoller {
`Discovered ${this.trackedPRs.size} PRs with active Devin sessions`,
);
} catch (error) {
this.logger.error(`Failed to discover existing sessions: ${error}`);
this.logger.error(
`Failed to discover existing sessions: ${error instanceof Error ? error.message : String(error)}`,
);
}
}

Expand Down Expand Up @@ -295,7 +297,7 @@ export class DevinStatusPoller {
await this.checkPRStatus(pr, sessionsByPrUrl);
} catch (error) {
this.logger.error(
`Failed to check status for PR ${pr.prUrl}: ${error}`,
`Failed to check status for PR ${pr.prUrl}: ${error instanceof Error ? error.message : String(error)}`,
);
}
}
Expand Down Expand Up @@ -329,7 +331,9 @@ export class DevinStatusPoller {
return;
}
} catch (error) {
this.logger.error(`Failed to check PR state for ${pr.prUrl}: ${error}`);
this.logger.error(
`Failed to check PR state for ${pr.prUrl}: ${error instanceof Error ? error.message : String(error)}`,
);
}

// Use cached session lookup instead of making individual API calls
Expand Down Expand Up @@ -380,7 +384,7 @@ export class DevinStatusPoller {
this.untrackPR(pr.prUrl);
} catch (error) {
this.logger.error(
`Failed to verify session status for ${pr.sessionId}: ${error}`,
`Failed to verify session status for ${pr.sessionId}: ${error instanceof Error ? error.message : String(error)}`,
);
}
return;
Expand Down Expand Up @@ -510,7 +514,9 @@ export class DevinStatusPoller {
`Updated check for PR ${pr.prUrl}: ${status} ${conclusion ?? ""}`,
);
} catch (error) {
this.logger.error(`Failed to update check for PR ${pr.prUrl}: ${error}`);
this.logger.error(
`Failed to update check for PR ${pr.prUrl}: ${error instanceof Error ? error.message : String(error)}`,
);
}
}
}
Expand Down
4 changes: 3 additions & 1 deletion apps/bot/src/features/devin-status.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ export function registerDevinStatusHandler(app: Probot): void {
try {
await checkDevinSession(context, owner, repo, prNumber, headSha, prUrl);
} catch (error) {
context.log.error(`[Devin] Failed to check Devin session: ${error}`);
context.log.error(
`[Devin] Failed to check Devin session: ${error instanceof Error ? error.message : String(error)}`,
);
}
},
);
Expand Down
2 changes: 1 addition & 1 deletion apps/bot/src/features/fix-merge-conflict.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export function registerFixMergeConflictHandler(app: Probot): void {
}
} catch (error) {
context.log.error(
`Failed to handle merge conflict check for PR #${pr.number}: ${error}`,
`Failed to handle merge conflict check for PR #${pr.number}: ${error instanceof Error ? error.message : String(error)}`,
);
}
}
Expand Down
2 changes: 1 addition & 1 deletion apps/bot/src/features/pr-closed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export function registerPrClosedHandler(app: Probot): void {
);
} catch (error) {
context.log.error(
`Failed to terminate Devin session for ${prUrl}: ${error}`,
`Failed to terminate Devin session for ${prUrl}: ${error instanceof Error ? error.message : String(error)}`,
);
}
});
Expand Down
2 changes: 1 addition & 1 deletion apps/bot/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ async function start() {
await server.start();
}

start();
void start();
22 changes: 11 additions & 11 deletions apps/desktop/src/auth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export function AuthProvider({ children }: { children: React.ReactNode }) {
} else {
setSession(res.data.session);
setServerReachable(true);
supabase.auth.startAutoRefresh();
void supabase.auth.startAutoRefresh();
}
};

Expand All @@ -149,20 +149,20 @@ export function AuthProvider({ children }: { children: React.ReactNode }) {

const unlistenFocus = appWindow.listen("tauri://focus", () => {
if (serverReachable) {
supabase.auth.startAutoRefresh();
void supabase.auth.startAutoRefresh();
}
});
const unlistenBlur = appWindow.listen("tauri://blur", () => {
supabase.auth.stopAutoRefresh();
void supabase.auth.stopAutoRefresh();
});

onOpenUrl(([url]) => {
handleAuthCallback(url);
void onOpenUrl(([url]) => {
void handleAuthCallback(url);
});

return () => {
unlistenFocus.then((fn) => fn());
unlistenBlur.then((fn) => fn());
void unlistenFocus.then((fn) => fn());
void unlistenBlur.then((fn) => fn());
};
}, [serverReachable]);

Expand Down Expand Up @@ -198,14 +198,14 @@ export function AuthProvider({ children }: { children: React.ReactNode }) {
) {
setServerReachable(false);
setSession(data.session);
supabase.auth.startAutoRefresh();
void supabase.auth.startAutoRefresh();
return;
}
}
if (refreshData.session) {
setSession(refreshData.session);
setServerReachable(true);
supabase.auth.startAutoRefresh();
void supabase.auth.startAutoRefresh();
}
}
} catch (e) {
Expand All @@ -223,14 +223,14 @@ export function AuthProvider({ children }: { children: React.ReactNode }) {
}
};

initSession();
void initSession();

const {
data: { subscription },
} = supabase.auth.onAuthStateChange((event, session) => {
if (event === "TOKEN_REFRESHED" && !session) {
if (isLocalAuthServer(env.VITE_SUPABASE_URL)) {
clearAuthStorage();
void clearAuthStorage();
setServerReachable(false);
}
}
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/src/billing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export function BillingProvider({ children }: { children: ReactNode }) {
);

const upgradeToPro = useCallback(() => {
openUrl(`${env.VITE_APP_URL}/app/checkout?period=monthly`);
void openUrl(`${env.VITE_APP_URL}/app/checkout?period=monthly`);
}, []);

const value = useMemo<BillingContextValue>(
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/src/components/changelog-listener.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function ChangelogListener() {
}

let unlisten: null | UnlistenFn = null;
events.updatedEvent
void events.updatedEvent
.listen(({ payload: { previous, current } }) => {
openNew({
type: "changelog",
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/src/components/chat/input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export function ChatMessageInput({
return;
}

analyticsCommands.event({ event: "chat_message_sent" });
void analyticsCommands.event({ event: "chat_message_sent" });
onSendMessage(text, [{ type: "text", text }]);
editorRef.current?.editor?.commands.clearContent();
}, [disabled, onSendMessage]);
Expand Down
10 changes: 5 additions & 5 deletions apps/desktop/src/components/main-app-layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const useNavigationEvents = () => {

const webview = getCurrentWebviewWindow();

windowsEvents
void windowsEvents
.navigate(webview)
.listen(({ payload }) => {
if (payload.path === "/app/settings") {
Expand All @@ -59,7 +59,7 @@ const useNavigationEvents = () => {
openNew({ type: "settings" });
}
} else {
navigate({
void navigate({
to: payload.path,
search: payload.search ?? undefined,
});
Expand All @@ -69,7 +69,7 @@ const useNavigationEvents = () => {
unlistenNavigate = fn;
});

windowsEvents
void windowsEvents
.openTab(webview)
.listen(({ payload }) => {
openNew(payload.tab);
Expand All @@ -78,9 +78,9 @@ const useNavigationEvents = () => {
unlistenOpenTab = fn;
});

deeplink2Events.deepLinkEvent
void deeplink2Events.deepLinkEvent
.listen(({ payload }) => {
navigate({ to: payload.to, search: payload.search });
void navigate({ to: payload.to, search: payload.search });
})
.then((fn) => {
unlistenDeepLink = fn;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export function OrganizationDetailsColumn({
size="icon"
onClick={(e) => {
e.stopPropagation();
openUrl(`mailto:${human.email}`);
void openUrl(`mailto:${human.email}`);
}}
title="Send email"
>
Expand Down
4 changes: 2 additions & 2 deletions apps/desktop/src/components/main/body/extensions/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ export function TabContentExtension({ tab }: { tab: ExtensionTab }) {
if (!iframeRef.current || !store) return;

if (synchronizerRef.current) {
synchronizerRef.current.destroy();
void synchronizerRef.current.destroy();
}

const synchronizer = createIframeSynchronizer(
Expand All @@ -266,7 +266,7 @@ export function TabContentExtension({ tab }: { tab: ExtensionTab }) {
useEffect(() => {
return () => {
if (synchronizerRef.current) {
synchronizerRef.current.destroy();
void synchronizerRef.current.destroy();
synchronizerRef.current = null;
}
};
Expand Down
4 changes: 2 additions & 2 deletions apps/desktop/src/components/main/body/folders/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ export const TabItemFolder: TabItem<Extract<Tab, { type: "folders" }>> = (
const TabItemFolderAll: TabItem<Extract<Tab, { type: "folders" }>> = ({
tab,
tabIndex,
handleCloseThis: handleCloseThis,
handleSelectThis: handleSelectThis,
handleCloseThis,
handleSelectThis,
handleCloseAll,
handleCloseOthers,
}) => {
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/src/components/main/body/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export function Body() {
);

useEffect(() => {
loadExtensionPanels();
void loadExtensionPanels();
}, []);

if (!currentTab) {
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/src/components/main/body/prompts/details.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function PromptDetails({ selectedTask }: { selectedTask: TaskType }) {
typeof templateCommands.render
>[0];

templateCommands
void templateCommands
.render(templateName, {})
.then((result) => {
if (result.status === "ok") {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -269,10 +269,10 @@ function OptionsMenu({
fromResult(miscCommands.audioImport(sessionId, path)),
Effect.tap(() =>
Effect.sync(() => {
queryClient.invalidateQueries({
void queryClient.invalidateQueries({
queryKey: ["audio", sessionId, "exist"],
});
queryClient.invalidateQueries({
void queryClient.invalidateQueries({
queryKey: ["audio", sessionId, "url"],
});
}),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ function HeaderTabEnhanced({
const handleRegenerateClick = useCallback(
(e: React.MouseEvent) => {
e.stopPropagation();
onRegenerate(null);
void onRegenerate(null);
},
[onRegenerate],
);
Expand Down Expand Up @@ -251,7 +251,7 @@ function CreateOtherFormatButton({
return;
}

analyticsCommands.event({
void analyticsCommands.event({
event: "template_summary_created",
template_id: templateId,
});
Expand Down Expand Up @@ -472,7 +472,7 @@ function useEnhanceLogic(sessionId: string, enhancedNoteId: string) {

setMissingModelError(null);

analyticsCommands.event({
void analyticsCommands.event({
event: "summary_generated",
is_auto: false,
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,12 @@ export const RawEditor = forwardRef<
hasTrackedWriteRef.current = false;
}, [sessionId]);

const hasNonEmptyText = (node?: JSONContent): boolean =>
!!node?.text?.trim() ||
!!node?.content?.some((child) => hasNonEmptyText(child));
const hasNonEmptyText = useCallback(
(node?: JSONContent): boolean =>
!!node?.text?.trim() ||
!!node?.content?.some((child) => hasNonEmptyText(child)),
[],
);

const handleChange = useCallback(
(input: JSONContent) => {
Expand All @@ -75,14 +78,14 @@ export const RawEditor = forwardRef<
const hasContent = hasNonEmptyText(input);
if (hasContent) {
hasTrackedWriteRef.current = true;
analyticsCommands.event({
void analyticsCommands.event({
event: "note_written",
has_content: true,
});
}
}
},
[persistChange],
[persistChange, hasNonEmptyText],
);

const mentionConfig = useMemo(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export function EditingControls({

const handleRedoClick = useCallback(() => {
setOpen(false);
handleRedoTranscript();
void handleRedoTranscript();
}, [handleRedoTranscript]);

const viewModeControls = audioExists ? (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export function useFinalSpeakerHints(
});

return convertStorageHintsToRuntime(storageHints, wordIdToIndex);
}, [store, wordIds, speakerHintIds, transcriptId]);
}, [store, wordIds, speakerHintIds]);
}

export function useTranscriptOffset(transcriptId: string): number {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export function TranscriptContainer({

const handleSelectionAction = (action: string, selectedText: string) => {
if (action === "copy") {
navigator.clipboard.writeText(selectedText);
void navigator.clipboard.writeText(selectedText);
}
};

Expand Down
Loading
Loading