feat: Codex完了通知に実行中プロセス数を表示

- 通知メッセージに '(実行中: N)' を追加
- 現在のcodexプロセス数が一目で分かるように改善

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Moe Charm
2025-09-04 15:49:45 +09:00
parent 1e43063904
commit 2ab30ee5d0

View File

@ -186,8 +186,10 @@ run_codex_async() {
STATUS_MARK=$([ $EXIT_CODE -eq 0 ] && echo '✅ Success' || echo '❌ Failed')
CHAT_FILE="$WORK_DIR/chat-${WORK_ID}.tmp"
TASK_ONELINE=$(echo "$TASK" | tr '\n' ' ' | sed 's/ */ /g')
# 現在の実行中プロセス数をカウント
CURRENT_RUNNING=$(count_running_codex)
{
echo "# 🤖 Codex: Done [$(date +%H:%M:%S)]"
echo "# 🤖 Codex: Done [$(date +%H:%M:%S)] (実行中: $CURRENT_RUNNING)"
echo "# Work ID: $WORK_ID"
echo "# Status: $STATUS_MARK"
echo "# Log: $LOG_FILE"