Skip to content
Open
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
7 changes: 3 additions & 4 deletions src/browser/components/AuthTokenModal/AuthTokenModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
import { Button } from "@/browser/components/Button/Button";
import { getBrowserBackendBaseUrl } from "@/browser/utils/backendBaseUrl";
import { getErrorMessage } from "@/common/utils/errors";
import { isAbortError } from "@/browser/utils/isAbortError";

interface AuthTokenModalProps {
isOpen: boolean;
Expand Down Expand Up @@ -136,8 +137,7 @@ export function AuthTokenModal(props: AuthTokenModalProps) {
return;
}

const isAbortError = error instanceof DOMException && error.name === "AbortError";
if (!isAbortError) {
if (!isAbortError(error)) {
setGithubDeviceFlowEnabled(false);
setGithubOptionsLoading(false);
}
Expand Down Expand Up @@ -218,8 +218,7 @@ export function AuthTokenModal(props: AuthTokenModalProps) {
clearStoredAuthToken();
props.onSessionAuthenticated?.();
} catch (error) {
const isAbortError = error instanceof DOMException && error.name === "AbortError";
if (isAbortError) {
if (isAbortError(error)) {
return;
}

Expand Down
2 changes: 1 addition & 1 deletion src/browser/utils/messages/messageUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export function getEditableUserMessageText(
/**
* Type guard to check if a message is a bash_output tool call with valid args
*/
export function isBashOutputTool(
function isBashOutputTool(
msg: DisplayedMessage
): msg is DisplayedMessage & { type: "tool"; toolName: "bash_output"; args: BashOutputToolArgs } {
if (msg.type !== "tool" || msg.toolName !== "bash_output") {
Expand Down
246 changes: 0 additions & 246 deletions src/browser/utils/review/quickReviewNotes.test.ts

This file was deleted.

Loading
Loading