Skip to content

Agent stuck in the loop #507

Description

@netandreus

Issue

I gave to agent simple task "Please check README.md file for corresponding ctual project structure". And it takes more than 7 hours for it. It generated 4 commits so far, but my concern is that agent stuck in the loop without finished the task (see video). Maybe this is because tools (task_create, tasks_status etc) are not available (see Issue #505).
But, in general, what should I do?

Screenshots

Image Image Image Image Image

It looks like a loop.

Openclaw config

{
  "meta": {
    "lastTouchedVersion": "2026.3.8",
    "lastTouchedAt": "2026-03-10T20:33:32.029Z"
  },
  "wizard": {
    "lastRunAt": "2026-03-10T19:13:33.144Z",
    "lastRunVersion": "2026.3.8",
    "lastRunCommand": "onboard",
    "lastRunMode": "local"
  },
  "auth": {
    "profiles": {
      "openai-codex:default": {
        "provider": "openai-codex",
        "mode": "oauth"
      }
    }
  },
  "agents": {
    "defaults": {
      "model": {
        "primary": "openai-codex/gpt-5.4"
      },
      "workspace": "/Users/<user>/.openclaw/workspace",
      "compaction": {
        "mode": "safeguard"
      },
      "maxConcurrent": 4,
      "subagents": {
        "maxConcurrent": 8,
        "archiveAfterMinutes": 43200
      }
    }
  },
  "tools": {
    "profile": "coding",
    "web": {
      "search": {
        "provider": "brave"
      }
    },
    "allow": ["devclaw"]
  },
  "messages": {
    "ackReactionScope": "group-mentions"
  },
  "commands": {
    "native": "auto",
    "nativeSkills": "auto",
    "restart": true,
    "ownerDisplay": "raw"
  },
  "session": {
    "dmScope": "per-channel-peer"
  },
  "hooks": {
    "internal": {
      "enabled": true
    }
  },
  "channels": {
    "telegram": {
      "enabled": true,
      "dmPolicy": "pairing",
      "botToken": "<REDACTED>",
      "groups": {
        "<REDACTED>": {
          "requireMention": false
        }
      },
      "allowFrom": [
        "<REDACTED>"
      ],
      "groupPolicy": "allowlist",
      "streaming": "partial",
      "linkPreview": false
    }
  },
  "gateway": {
    "port": 18789,
    "mode": "local",
    "bind": "loopback",
    "auth": {
      "mode": "token",
      "token": "<REDACTED>"
    },
    "tailscale": {
      "mode": "off",
      "resetOnExit": false
    },
    "nodes": {
      "denyCommands": [
        "camera.snap",
        "camera.clip",
        "screen.record",
        "contacts.add",
        "calendar.add",
        "reminders.add",
        "sms.send"
      ]
    }
  },
  "plugins": {
    "allow": [
      "devclaw",
      "telegram"
    ],
    "entries": {
      "telegram": {
        "enabled": true
      },
      "devclaw": {
        "enabled": true,
        "config": {
          "work_heartbeat": {
            "enabled": false,
            "intervalSeconds": 60,
            "maxPickupsPerTick": 4
          }
        }
      }
    },
    "installs": {
      "devclaw": {
        "source": "npm",
        "spec": "@laurentenhoor/devclaw",
        "installPath": "/Users/<user>/.openclaw/extensions/devclaw",
        "version": "1.6.10",
        "resolvedName": "@laurentenhoor/devclaw",
        "resolvedVersion": "1.6.10",
        "resolvedSpec": "@laurentenhoor/devclaw@1.6.10",
        "integrity": "sha512-XSzsSi52hFZjj+y+Iww9P5s28NmCNQBvGOZzQRBUvbOzEJM+R4S+EcpdqxPzbFmS66X6KjMEqf3wSR/WeMFkdg==",
        "shasum": "471db73720c3ebab75512dce83ccca04606366f5",
        "resolvedAt": "2026-03-10T20:07:42.221Z",
        "installedAt": "2026-03-10T20:07:42.267Z"
      }
    }
  }
}

Environment

🦞 OpenClaw 2026.3.8 (3caab92)
🧠 Model: openai-codex/gpt-5.4 · 🔑 oauth (openai-codex:default)
📚 Context: 0/272k (0%) · 🧹 Compactions: 0
🧵 Session: agent:main:telegram:direct:111111111 • updated just now
⚙️ Runtime: direct · Think: low
🪢 Queue: collect (depth 0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions