From af9085ff4c606e1c761125b491b1ce535f8934a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matheus=20Galv=C3=A3o?= Date: Fri, 4 Dec 2026 10:59:51 -0300 Subject: [PATCH] fix: say AgentFlow is not ready when Run comes before setup --- .codesignal/run_solution.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.codesignal/run_solution.sh b/.codesignal/run_solution.sh index 76a063f..3e77aee 100644 --- a/.codesignal/run_solution.sh +++ b/.codesignal/run_solution.sh @@ -3,9 +3,9 @@ # Cosmo reads this script's STDOUT and nothing else: the report of the learner's workflow and runs. # # setup.sh keeps running (it serves the editor), so wait for its marker rather than for it to finish. -cd /usercode/FILESYSTEM/agentflow || exit 1 if [ ! -f /tmp/agentflow-release-ready ]; then echo "AgentFlow is not ready: it is still starting, or its setup failed. Wait a few seconds and run again; if this repeats, reset the session." exit 1 fi +cd /usercode/FILESYSTEM/agentflow || exit 1 PROJECT_ROOT=/usercode/FILESYSTEM/agentflow node apps/server/dist/report.cjs