Skip to content

Commit bb0d97e

Browse files
committed
fix: log results object correctly and suppress init error propagation in generator agent
1 parent ff604c6 commit bb0d97e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

worker/agents/assistants/projectsetup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ ${error}`);
127127
context: this.inferenceContext,
128128
modelName: error? AIModels.GEMINI_2_5_FLASH : undefined,
129129
});
130-
this.logger.info(`Generated setup commands: ${results}`);
130+
this.logger.info(`Generated setup commands: ${results.string}`);
131131

132132
this.save([createAssistantMessage(results.string)]);
133133
return { commands: extractCommands(results.string) };

worker/agents/core/simpleGeneratorAgent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ export class SimpleCodeGeneratorAgent extends Agent<Env, CodeGenState> {
250250
this.logger().info("Initial commands executed successfully");
251251
} catch (error) {
252252
this.logger().error("Error during async initialization:", error);
253-
throw error;
253+
// throw error;
254254
}
255255
}
256256

0 commit comments

Comments
 (0)