Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Improve PR agent messages
Tomas Valenta47e6790f6a08
diff --git a/pages/api/agent/index.ts b/pages/api/agent/index.tsindex 20fe0a52f..e3fb29638 100644--- a/pages/api/agent/index.ts+++ b/pages/api/agent/index.ts@@ -36,7 +36,7 @@ export interface DeploymentAuthData {export const prInfoText = `----*Add PR comments with additional instructions to trigger the agent again.*+*Trigger the agent again by adding instructions in a new PR comment or by editing existing instructions.**Powered by [e2b](https://app.e2b.dev/agent/smol-developer?utm_source=github)*`diff --git a/pages/api/agent/run.ts b/pages/api/agent/run.tsindex df9f16ec1..b340123d0 100644--- a/pages/api/agent/run.ts+++ b/pages/api/agent/run.ts@@ -64,7 +64,7 @@ async function postRun(req: NextApiRequest, res: NextApiResponse) {// TODO: Should we maybe just edit the previous comment?// Or should we do that only if the previous run was cancelledawait addCommentToPR({- body: `Finished smol developer [agent run](https://app.e2b.dev/logs/${deployment.projects.slug}-run-${deployment._count.log_files - 1}?utm_source=github).`,+ body: `Finished smol developer [agent run](https://app.e2b.dev/logs/${deployment.projects.slug}-run-${deployment._count.log_files - 1}?utm_source=github).\n\n*Trigger the agent again by adding instructions in a new PR comment or by editing existing instructions.*`,client,owner: authData.github.owner,repo: authData.github.repo,