fix: refresh orchestration follow-up after pr 414

This commit is contained in:
Affaan Mustafa
2026-03-13 15:05:35 -07:00
parent fdea3085a7
commit 7767140e78
6 changed files with 379 additions and 55 deletions

View File

@@ -31,6 +31,21 @@ EOF
}
mkdir -p "$(dirname "$handoff_file")" "$(dirname "$status_file")"
if [[ ! -r "$task_file" ]]; then
{
echo "# Handoff"
echo
echo "- Failed: $(timestamp)"
echo "- Branch: \`$(git rev-parse --abbrev-ref HEAD)\`"
echo "- Worktree: \`$(pwd)\`"
echo
echo "Task file is missing or unreadable: \`$task_file\`"
} > "$handoff_file"
write_status "failed" "- Error: task file is missing or unreadable: \`$task_file\`"
exit 1
fi
write_status "running" "- Task file: \`$task_file\`"
prompt_file="$(mktemp)"