mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-21 09:17:53 +00:00
fix: lint error
This commit is contained in:
@@ -122,6 +122,7 @@ export default tseslint.config(
|
|||||||
'memfs/lib/volume.js',
|
'memfs/lib/volume.js',
|
||||||
'yargs/**',
|
'yargs/**',
|
||||||
'msw/node',
|
'msw/node',
|
||||||
|
'**/generated/**',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -369,7 +369,7 @@ const App = ({ config, settings, startupWarnings = [], version }: AppProps) => {
|
|||||||
if (isQwenAuth && authStatus === 'timeout') {
|
if (isQwenAuth && authStatus === 'timeout') {
|
||||||
setAuthError(
|
setAuthError(
|
||||||
authMessage ||
|
authMessage ||
|
||||||
'Qwen OAuth authentication timed out. Please try again or select a different authentication method.',
|
'Qwen OAuth authentication timed out. Please try again or select a different authentication method.',
|
||||||
);
|
);
|
||||||
cancelQwenAuth();
|
cancelQwenAuth();
|
||||||
cancelAuthentication();
|
cancelAuthentication();
|
||||||
@@ -703,7 +703,7 @@ const App = ({ config, settings, startupWarnings = [], version }: AppProps) => {
|
|||||||
const [userMessages, setUserMessages] = useState<string[]>([]);
|
const [userMessages, setUserMessages] = useState<string[]>([]);
|
||||||
|
|
||||||
// Stable reference for cancel handler to avoid circular dependency
|
// Stable reference for cancel handler to avoid circular dependency
|
||||||
const cancelHandlerRef = useRef<() => void>(() => { });
|
const cancelHandlerRef = useRef<() => void>(() => {});
|
||||||
|
|
||||||
const {
|
const {
|
||||||
streamingState,
|
streamingState,
|
||||||
@@ -1083,7 +1083,21 @@ const App = ({ config, settings, startupWarnings = [], version }: AppProps) => {
|
|||||||
submitQuery(initialPrompt);
|
submitQuery(initialPrompt);
|
||||||
initialPromptSubmitted.current = true;
|
initialPromptSubmitted.current = true;
|
||||||
}
|
}
|
||||||
}, [initialPrompt, submitQuery, isAuthenticating, isAuthDialogOpen, isThemeDialogOpen, isEditorDialogOpen, isSubagentCreateDialogOpen, showPrivacyNotice, showWelcomeBackDialog, welcomeBackChoice, geminiClient, isModelSelectionDialogOpen, isVisionSwitchDialogOpen]);
|
}, [
|
||||||
|
initialPrompt,
|
||||||
|
submitQuery,
|
||||||
|
isAuthenticating,
|
||||||
|
isAuthDialogOpen,
|
||||||
|
isThemeDialogOpen,
|
||||||
|
isEditorDialogOpen,
|
||||||
|
isSubagentCreateDialogOpen,
|
||||||
|
showPrivacyNotice,
|
||||||
|
showWelcomeBackDialog,
|
||||||
|
welcomeBackChoice,
|
||||||
|
geminiClient,
|
||||||
|
isModelSelectionDialogOpen,
|
||||||
|
isVisionSwitchDialogOpen,
|
||||||
|
]);
|
||||||
|
|
||||||
if (quittingMessages) {
|
if (quittingMessages) {
|
||||||
return (
|
return (
|
||||||
@@ -1361,7 +1375,7 @@ const App = ({ config, settings, startupWarnings = [], version }: AppProps) => {
|
|||||||
<LoadingIndicator
|
<LoadingIndicator
|
||||||
thought={
|
thought={
|
||||||
streamingState === StreamingState.WaitingForConfirmation ||
|
streamingState === StreamingState.WaitingForConfirmation ||
|
||||||
config.getAccessibility()?.disableLoadingPhrases
|
config.getAccessibility()?.disableLoadingPhrases
|
||||||
? undefined
|
? undefined
|
||||||
: thought
|
: thought
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user