diff --git a/helpers/tools.ts b/helpers/tools.ts
index b6302c1f..50f43e76 100644
--- a/helpers/tools.ts
+++ b/helpers/tools.ts
@@ -156,7 +156,7 @@ For better results, you can specify the region parameter to get results from a s
description: "System prompt for code interpreter tool.",
value: `You are a code executor that can run code in a secure environment.
You can run code in a sandbox and return the sandbox url to the user for them to view the result.
-Do not show the code in chat, just describe the detail information of application: step by step to build the application, description, and dependencies.`,
+Do not show the code or sandbox url in chat, just describe the steps to build the application. If having image url, you should show the image in chat.`,
},
],
},
diff --git a/templates/types/streaming/nextjs/app/components/ui/chat/widgets/Artifact.tsx b/templates/types/streaming/nextjs/app/components/ui/chat/widgets/Artifact.tsx
index 73f40000..f37d87e5 100644
--- a/templates/types/streaming/nextjs/app/components/ui/chat/widgets/Artifact.tsx
+++ b/templates/types/streaming/nextjs/app/components/ui/chat/widgets/Artifact.tsx
@@ -129,10 +129,10 @@ function ArtifactOutput({ data }: { data: ArtifactData }) {
-
-
+
+ Code
- Output
+ PreviewLogs
@@ -140,7 +140,7 @@ function ArtifactOutput({ data }: { data: ArtifactData }) {
-
+
{sandboxUrl && }
{outputUrls && }
@@ -180,12 +180,11 @@ function InterpreterOutput({
outputUrls: Array<{ url: string; filename: string }>;
}) {
return (
-
-
Click to output files below to open in the browser