[Bug] Excessive token consumption and workflow breakage in Refine Ultraplan

Resolved 💬 3 comments Opened May 5, 2026 by peagahferreira Closed May 9, 2026

[Bug] Excessive token consumption and workflow breakage in Refine Ultraplan

Bug Description

The Refine Ultraplan feature has repeatedly failed while trying to return from Claude.ai/code back to the local terminal environment.

Instead of correctly continuing the workflow in the local terminal, the plan/content appears to get stuck inside Claude.ai/code. From there, Claude keeps trying to process the task remotely, as if the local project context and file paths were still available, which leads to repeated failures and excessive token consumption.

This behavior is extremely frustrating because it wastes a large amount of tokens without making progress. In several cases, the feature kept retrying or reasoning over invalid paths/context, effectively burning tokens on work that could not succeed.

The main issue is not only that the feature fails, but that it fails in a very expensive way: it continues processing after losing the correct local environment context.

Expected Behavior

Refine Ultraplan should reliably return control to the local terminal context and continue working from the correct project directory.

If the local environment, file path, or working directory is unavailable, the feature should stop immediately and clearly report the problem instead of continuing to consume tokens.

Actual Behavior

Refine Ultraplan gets stuck in Claude.ai/code, loses or mismatches the local terminal context, and continues attempting to process files using invalid or mismatched paths.

This results in repeated errors and very high token usage with no useful progress.

Environment Info

  • Platform: win32
  • Terminal: VS Code
  • Version: 2.1.128
  • Feedback ID: 77f747f3-c1a4-410d-9ac8-0a0bda7b590f

Errors

[
  {
    "error": "Error: File does not exist. Note: your current working directory is D:\\Developer\\vbrata.\n    at call (B:/~BUN/root/src/entrypoints/cli.js:4924:11360)\n    at processTicksAndRejections (native:7:39)",
    "timestamp": "2026-05-05T05:40:48.859Z"
  },
  {
    "error": "Og7: Diagnostics file path mismatch: expected C:\\Users\\Peagah\\.claude\\plans\\com-o-admin-da-merry-nest.md, got file://c:\\users\\peagah\\.claude\\plans\\com-o-admin-da-merry-nest.md/)\n    at beforeFileEdited (B:/~BUN/root/src/entrypoints/cli.js:4950:25445)\n    at processTicksAndRejections (native:7:39)",
    "timestamp": "2026-05-05T05:54:26.471Z"
  }
]

View original on GitHub ↗

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