Skip to content

Commit 08e05e3

Browse files
committed
feat: mode debug logging to try to figure out why agents-workflow is not moved away from the workspace
1 parent a5c04e7 commit 08e05e3

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

codex-setup

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,15 @@ AGENTS_WORKFLOW_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)"
44

55
bash "$AGENTS_WORKFLOW_DIR/common-pre-setup"
66

7+
echo "Checking if there is a project-specific Codex setup file"
78
if [ -f .agents/codex-setup ]; then
89
.agents/codex-setup
910
fi
1011

12+
echo "Checking if there is a project-specific post-setup file"
1113
if [ -f .agents/common-post-setup ]; then
1214
.agents/common-post-setup
1315
fi
1416

17+
echo "Running the agents-workflow post-setup"
1518
bash "$AGENTS_WORKFLOW_DIR/common-post-setup"

common-post-setup

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ fi
2222
# Try to move the directory - this should work since the script is loaded in memory
2323
# This prevents agents from looking into it (wastes their time)
2424
if ! mv "$AGENTS_WORKFLOW_DIR" "$TEMP_AGENTS_DIR"; then
25-
echo "Move failed, falling back to copy strategy" >&2
25+
echo "Move failed, falling back to copy strategy"
2626
cp -r "$AGENTS_WORKFLOW_DIR" "$TEMP_AGENTS_DIR"
2727
rm -rf "$AGENTS_WORKFLOW_DIR" || true
2828
fi
@@ -34,7 +34,7 @@ if [ -d "/usr/local/bin" ]; then
3434
elif [ -d "/usr/bin" ]; then
3535
BIN_DIR="/usr/bin"
3636
else
37-
echo "Cannot find suitable bin directory to install get-task" >&2
37+
echo "Cannot find suitable bin directory to install get-task"
3838
exit 1
3939
fi
4040

0 commit comments

Comments
 (0)