claude-code - 💡(How to fix) Fix [Bug] Behaviour change without options to keep working workflow are regressions not features [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#54774Fetched 2026-04-30 06:36:22
View on GitHub
Comments
0
Participants
1
Timeline
3
Reactions
0
Participants
Timeline (top)
labeled ×3

Error Message

[{"error":"MaxFileReadTokenExceededError: File content (68409 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 Km7 (/$bunfs/root/src/entrypoints/cli.js:4852:12789)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T17:45:31.409Z"},{"error":"Error: File does not exist. Note: your current working directory is /Users/thomas/Code/codeberg.org/thomas-mangin/ze/main/.claude/worktrees/agent-ace11fed9aaf79880.\n at call (/$bunfs/root/src/entrypoints/cli.js:4865:7658)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T17:45:58.356Z"},{"error":"Error: EISDIR: illegal operation on a directory, read '/Users/thomas/Code/codeberg.org/thomas-mangin/ze/main/.git'\n at GAH (/$bunfs/root/src/entrypoints/cli.js:1708:144)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T17:58:32.722Z"},{"error":"Error: Request was aborted.\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T18:06:34.987Z"}]

Code Example

[{"error":"MaxFileReadTokenExceededError: File content (68409 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 Km7 (/$bunfs/root/src/entrypoints/cli.js:4852:12789)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T17:45:31.409Z"},{"error":"Error: File does not exist. Note: your current working directory is /Users/thomas/Code/codeberg.org/thomas-mangin/ze/main/.claude/worktrees/agent-ace11fed9aaf79880.\n    at call (/$bunfs/root/src/entrypoints/cli.js:4865:7658)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T17:45:58.356Z"},{"error":"Error: EISDIR: illegal operation on a directory, read '/Users/thomas/Code/codeberg.org/thomas-mangin/ze/main/.git'\n    at GAH (/$bunfs/root/src/entrypoints/cli.js:1708:144)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T17:58:32.722Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T18:06:34.987Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description

Behaviour changes without explicit notifcation or options to keep existing workflow are regressions not features.

Claude started to use worktree without being prompted and there is no option to forcibly turn this behaviour off. This change of behaviour has impacts (time spent to having to change instructions, tokens wasted).

It is frustrating to see Anthropic changing settings (the Claude thinking level in the recent post-mortem comes to mind) without in-app communication.

Anthropic SHOULD consider the implact of its changes on existing user workflows. I appreciate the good value for the Max plans. I am not opposed to Anthropic using it to experiment and get feedback but the lack of transparency is problematic.

Claude Code terminal did not create worktrees automatically. Now it does. There is no setting to disable it.

Silently changing behavior that affects how users interact with their repositories is not a minor oversight. It is a breach of the principle of least surprise, and it erodes trust in the tool.

Users who built workflows, hooks, and safety checks around the assumption that Claude Code operates in their working directory now find those assumptions violated without warning.

The change should have been accompanied by a setting to disable automatic worktree creation.

Document behavior changes visibly before they ship - the tool auto-update you should not expect users to have to go through the daily changelogs. Behaviour changes should be clear and explicitly announced.

I look forward to this issue to be auto-closed for lack of activity in a week.

Environment Info

  • Platform: darwin
  • Terminal: ghostty
  • Version: 2.1.123
  • Feedback ID: 4607bcfe-f768-432b-8bd6-19849a376fdc

well, as I am here, I may as well leave this other error here.

Errors

[{"error":"MaxFileReadTokenExceededError: File content (68409 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 Km7 (/$bunfs/root/src/entrypoints/cli.js:4852:12789)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T17:45:31.409Z"},{"error":"Error: File does not exist. Note: your current working directory is /Users/thomas/Code/codeberg.org/thomas-mangin/ze/main/.claude/worktrees/agent-ace11fed9aaf79880.\n    at call (/$bunfs/root/src/entrypoints/cli.js:4865:7658)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T17:45:58.356Z"},{"error":"Error: EISDIR: illegal operation on a directory, read '/Users/thomas/Code/codeberg.org/thomas-mangin/ze/main/.git'\n    at GAH (/$bunfs/root/src/entrypoints/cli.js:1708:144)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T17:58:32.722Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T18:06:34.987Z"}]

extent analysis

TL;DR

The most likely fix is to add an option to disable automatic worktree creation in Claude Code terminal to prevent unexpected behavior changes.

Guidance

  • The change in behavior is likely due to an update in Claude Code that enables automatic worktree creation by default, causing issues with existing user workflows.
  • To mitigate this, users can try to manually remove the created worktrees and adjust their workflows accordingly.
  • It is essential to document behavior changes visibly before they ship, and the tool should auto-update with clear and explicit announcements.
  • Users can also try to use the offset and limit parameters to read specific portions of the file, as suggested in the MaxFileReadTokenExceededError.

Example

No code snippet is provided as it is not clearly supported by the issue.

Notes

The issue lacks information about the exact changes made to Claude Code, and the provided errors may not be directly related to the main issue. The solution may not be applicable to all users, and further investigation is needed to determine the root cause.

Recommendation

Apply workaround: The best course of action is to wait for the developers to add an option to disable automatic worktree creation or to find an alternative solution that works with the current version of Claude Code.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [Bug] Behaviour change without options to keep working workflow are regressions not features [1 participants]