Improve support for streaming simulation data to backend (#16)

This commit is contained in:
Brian Hackett
2025-02-07 11:52:19 -08:00
committed by GitHub
parent d143863285
commit b7b602016e
7 changed files with 335 additions and 166 deletions

View File

@@ -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);