Simplify streaming code for code assist server (#4619)

This commit is contained in:
Tommaso Sciortino
2025-07-21 13:44:43 -07:00
committed by GitHub
parent f95674e646
commit d7a57d85a3
10 changed files with 36 additions and 133 deletions

View File

@@ -206,26 +206,11 @@ const App = ({ config, settings, startupWarnings = [], version }: AppProps) => {
// Sync user tier from config when authentication changes
useEffect(() => {
const syncUserTier = async () => {
try {
const configUserTier = await config.getUserTier();
if (configUserTier !== userTier) {
setUserTier(configUserTier);
}
} catch (error) {
// Silently fail - this is not critical functionality
// Only log in debug mode to avoid cluttering the console
if (config.getDebugMode()) {
console.debug('Failed to sync user tier:', error);
}
}
};
// Only sync when not currently authenticating
if (!isAuthenticating) {
syncUserTier();
setUserTier(config.getGeminiClient()?.getUserTier());
}
}, [config, userTier, isAuthenticating]);
}, [config, isAuthenticating]);
const {
isEditorDialogOpen,