[Bug] Agent enters infinite loops causing cascading feature failures

Resolved 💬 2 comments Opened Jun 22, 2026 by AdrianoMarra Closed Jun 26, 2026

Bug Description
broke features which are essential to the project. Non-sense thinking. Unable to properly implement features without breaking others. Going in loops forever causing more issues than actually bringing any value.

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 2.1.128
  • Feedback ID: 492a441c-4afb-4d6e-a192-b6f4552149c0

Errors

[{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"Rate limited\"},\"request_id\":\"req_011CcDXk691t7vHSFdZnaKac\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:58281)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4949)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-06-20T00:02:20.716Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 1000400 tokens > 1000000 maximum\"},\"request_id\":\"req_011CcDbSgLmrp6FR16aan8LG\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:58059)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4949)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-06-20T00:50:51.866Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 1000974 tokens > 1000000 maximum\"},\"request_id\":\"req_011CcDbSnxeNjQPkgixcQ7xc\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:58059)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4949)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-06-20T00:50:53.244Z"},{"error":"Error: File does not exist. Note: your current working directory is /Users/adrianomarra/Sites/frontend. Did you mean ShadowModeWidget.js?\n    at call (/$bunfs/root/src/entrypoints/cli.js:4868:11360)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-06-20T21:10:53.113Z"},{"error":"MaxFileReadTokenExceededError: [REDACTED] content (46740 tokens) exceeds maximum allowed tokens (25000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n    at FF7 (/$bunfs/root/src/entrypoints/cli.js:4860:12894)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-06-20T23:17:29.542Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3449)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-06-21T00:09:24.403Z"},{"error":"Error: 529 {\"type\":\"error\",\"error\":{\"type\":\"overloaded_error\",\"message\":\"Overloaded\"},\"request_id\":\"req_011CcHQoxgc5tEW5XynqnrxA\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:58317)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4949)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-06-22T01:13:48.567Z"},{"error":"Error: 529 {\"type\":\"error\",\"error\":{\"type\":\"overloaded_error\",\"message\":\"Overloaded\"},\"request_id\":\"req_011CcHSNNFx2LJacYbNuLjSy\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:58317)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4949)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-06-22T01:34:16.034Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3449)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-06-22T15:22:54.838Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3449)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-06-22T15:32:22.518Z"}]

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗