mirror of
https://github.com/stackblitz-labs/bolt.diy
synced 2025-06-26 18:26:38 +00:00
Improve support for streaming simulation data to backend (#16)
This commit is contained in:
@@ -6,6 +6,7 @@ import { createScopedLogger } from '~/utils/logger';
|
||||
import { unreachable } from '~/utils/unreachable';
|
||||
import type { ActionCallbackData } from './message-parser';
|
||||
import type { BoltShell } from '~/utils/shell';
|
||||
import { resetChatFileWritten } from '~/components/chat/Chat.client';
|
||||
|
||||
const logger = createScopedLogger('ActionRunner');
|
||||
|
||||
@@ -294,6 +295,7 @@ export class ActionRunner {
|
||||
|
||||
try {
|
||||
await webcontainer.fs.writeFile(relativePath, action.content);
|
||||
resetChatFileWritten();
|
||||
logger.debug(`File written ${relativePath}`);
|
||||
} catch (error) {
|
||||
logger.error('Failed to write file\n\n', error);
|
||||
|
||||
Reference in New Issue
Block a user