fix: resolve TypeScript compilation errors from merge
- Fix LocalProfileLoader test: remove controlPlaneClient refs, update default title to match "Main Config" - Remove showStagingIndicator from Layout.tsx (variable was undefined) - Remove usePlatform from MockIdeMessenger (removed from config types) - Add GithubIcon component and DISCUSSIONS_LINK to StreamError.tsx - Add overloaded retry constants to streamThunkWrapper.tsx Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
86567d6a34
commit
bf5906fd89
5 changed files with 23 additions and 22 deletions
|
|
@ -62,13 +62,9 @@ describe("LocalProfileLoader", () => {
|
|||
configName: "My Custom Config",
|
||||
});
|
||||
|
||||
const loader = new LocalProfileLoader(
|
||||
testIde,
|
||||
controlPlaneClient,
|
||||
llmLogger,
|
||||
);
|
||||
const loader = new LocalProfileLoader(testIde, llmLogger);
|
||||
|
||||
expect(loader.description.title).toBe("Local Config");
|
||||
expect(loader.description.title).toBe("Main Config");
|
||||
|
||||
await loader.doLoadConfig();
|
||||
|
||||
|
|
@ -82,14 +78,10 @@ describe("LocalProfileLoader", () => {
|
|||
configLoadInterrupted: false,
|
||||
});
|
||||
|
||||
const loader = new LocalProfileLoader(
|
||||
testIde,
|
||||
controlPlaneClient,
|
||||
llmLogger,
|
||||
);
|
||||
const loader = new LocalProfileLoader(testIde, llmLogger);
|
||||
|
||||
await loader.doLoadConfig();
|
||||
|
||||
expect(loader.description.title).toBe("Local Config");
|
||||
expect(loader.description.title).toBe("Main Config");
|
||||
});
|
||||
});
|
||||
|
|
|
|||
|
|
@ -208,15 +208,6 @@ const Layout = () => {
|
|||
<LocalStorageProvider>
|
||||
<AuthProvider>
|
||||
<LayoutTopDiv>
|
||||
{showStagingIndicator && (
|
||||
<span
|
||||
title="Staging environment"
|
||||
className="absolute right-0 mx-1.5 h-1.5 w-1.5 rounded-full"
|
||||
style={{
|
||||
backgroundColor: "var(--vscode-list-warningForeground)",
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
<OSRContextMenu />
|
||||
<div
|
||||
style={{
|
||||
|
|
|
|||
|
|
@ -48,7 +48,6 @@ const DEFAULT_MOCK_CORE_RESPONSES: MockResponses = {
|
|||
slashCommands: [],
|
||||
contextProviders: [],
|
||||
mcpServerStatuses: [],
|
||||
usePlatform: true,
|
||||
modelsByRole: {
|
||||
chat: [],
|
||||
apply: [],
|
||||
|
|
|
|||
|
|
@ -6,6 +6,16 @@ import {
|
|||
KeyIcon,
|
||||
} from "@heroicons/react/24/outline";
|
||||
import { useContext, useMemo } from "react";
|
||||
|
||||
const DISCUSSIONS_LINK = "https://github.com/continuedev/continue/discussions";
|
||||
|
||||
function GithubIcon({ className }: { className?: string }) {
|
||||
return (
|
||||
<svg className={className} fill="currentColor" viewBox="0 0 24 24">
|
||||
<path d="M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0 0 24 12c0-6.63-5.37-12-12-12z" />
|
||||
</svg>
|
||||
);
|
||||
}
|
||||
import { GhostButton } from "../../components";
|
||||
import { useEditModel } from "../../components/mainInput/Lump/useEditBlock";
|
||||
import { useMainEditor } from "../../components/mainInput/TipTapEditor";
|
||||
|
|
|
|||
|
|
@ -2,6 +2,15 @@ import { createAsyncThunk } from "@reduxjs/toolkit";
|
|||
|
||||
import StreamErrorDialog from "../../pages/gui/StreamError";
|
||||
import { analyzeError } from "../../util/errorAnalysis";
|
||||
|
||||
const OVERLOADED_RETRIES = 3;
|
||||
const OVERLOADED_DELAY_MS = 2000;
|
||||
|
||||
function isOverloadedErrorMessage(message?: string): boolean {
|
||||
if (!message) return false;
|
||||
const lower = message.toLowerCase();
|
||||
return lower.includes("overloaded") || lower.includes("529");
|
||||
}
|
||||
import { selectSelectedChatModel } from "../slices/configSlice";
|
||||
import { setDialogMessage, setShowDialog } from "../slices/uiSlice";
|
||||
import { ThunkApiType } from "../store";
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue