[Bug] Token budget exceeded with repeated TaskStop resumption and scope ignored

Status Open
Reported on v2.1.246
Maintainer reply None cached
Activity 0 comments · opened Aug 27, 2026

Bug Description
600k token consumed, resumed twice after TaskStop, ignored explicit scope

Environment Info

  • Platform: win32
  • Terminal: windows-terminal
  • Version: 2.1.246
  • Feedback ID: 58c70d74-54a3-480f-84fd-4b46b7a72ce6

Errors

[{"error":"Error: EnterPlanMode tool cannot be used in agent contexts\n    at call (B:/~BUN/root/_440.js:3239:810)\n    at XEs (B:/~BUN/root/_440.js:5438:2550)\n    at async run (B:/~BUN/root/_440.js:1400:4725)\n    at async <anonymous> (B:/~BUN/root/_778.js:333:5365)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-08-27T19:03:17.493Z"}]

View original on GitHub ↗