fixed loading states

This commit is contained in:
munimunigamer 2026-02-01 16:52:59 -06:00
parent 1418226061
commit 9723dff31b
2 changed files with 2 additions and 3 deletions

View file

@ -530,10 +530,8 @@
messageId: narrationEntry.id,
result: event.result,
});
ui.setGenerationStatus("Updating world...");
await story.applyClassificationResult(event.result);
await story.updateEntryTimeEnd(narrationEntry.id);
ui.setGenerationStatus("Saving...");
if (settings.systemServicesSettings.imageGeneration.enabled) {
const presentCharacters = story.characters.filter(

View file

@ -36,8 +36,9 @@ export function handleEvent(
if (event.phase === 'narrative') {
callbacks.startStreaming(state.visualProseMode, state.streamingEntryId);
} else if (event.phase === 'classification') {
callbacks.setGenerationStatus('Classifying world state...');
callbacks.setGenerationStatus('Updating world...');
} else if (event.phase === 'post') {
callbacks.setGenerationStatus(state.isCreativeMode ? 'Generating suggestions...' : 'Generating actions...');
state.isCreativeMode ? callbacks.setSuggestionsLoading(true) : callbacks.setActionChoicesLoading(true);
}
break;