claude-code - 💡(How to fix) Fix [Bug] UI mode indicator desynchronizes with agent mode after ExitPlanMode approval [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

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#51682Fetched 2026-04-22 07:55:42
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Timeline (top)
labeled ×4commented ×1

Error Message

[{"error":"AxiosError: Request failed with status code 404\n at zd (/$bunfs/root/src/entrypoints/cli.js:110:1194)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:115:12712)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:865:50)\n at processTicksAndRejections (native:7:39)\n at request (/$bunfs/root/src/entrypoints/cli.js:117:2467)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T18:31:10.618Z"}]

Code Example

[{"error":"AxiosError: Request failed with status code 404\n    at zd (/$bunfs/root/src/entrypoints/cli.js:110:1194)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:115:12712)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:865:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/src/entrypoints/cli.js:117:2467)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T18:31:10.618Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description After ExitPlanMode is approved, the agent's system reminders immediately switch to "Auto mode still active", but the user-facing UI indicator appears to stay in plan mode until the user presses Shift+Tab again to toggle out. This creates a silent divergence: the agent believes it's in auto mode and may start editing files, while the user still sees plan mode and expects plan-mode behavior. Two requests: (a) clarify in the permission-modes docs whether ExitPlanMode approval is supposed to clear the UI indicator automatically or whether a separate Shift+Tab is required — and if the latter, document the decoupling as expected behavior; (b) consider exposing a programmatic mode-query mechanism so the agent can verify the current session mode instead of relying on the reminder stream alone.

Environment Info

  • Platform: darwin
  • Terminal: iTerm.app
  • Version: 2.1.116
  • Feedback ID: 07a4c19c-db2b-4932-80a5-2455cf7f5d61

Errors

[{"error":"AxiosError: Request failed with status code 404\n    at zd (/$bunfs/root/src/entrypoints/cli.js:110:1194)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:115:12712)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:865:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/src/entrypoints/cli.js:117:2467)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T18:31:10.618Z"}]

extent analysis

TL;DR

The issue can be mitigated by documenting the expected behavior of the UI indicator after ExitPlanMode approval and potentially exposing a programmatic mode-query mechanism.

Guidance

  • Review the permission-modes documentation to clarify whether ExitPlanMode approval should automatically clear the UI indicator or if a separate Shift+Tab is required.
  • Consider implementing a programmatic mode-query mechanism to allow the agent to verify the current session mode, reducing reliance on the reminder stream.
  • Investigate the AxiosError and its relation to the mode switching issue, as it may indicate a separate problem.
  • Verify that the issue is not specific to the darwin platform or iTerm.app terminal by testing on other environments.

Example

No code snippet is provided as the issue does not contain sufficient information to create a relevant example.

Notes

The provided error message appears to be unrelated to the primary issue, but it should still be investigated to ensure it does not contribute to the problem. The solution may require changes to the documentation, the programmatic mode-query mechanism, or both.

Recommendation

Apply workaround: Document the expected behavior of the UI indicator after ExitPlanMode approval and consider exposing a programmatic mode-query mechanism to mitigate the silent divergence between the agent's system reminders and the user-facing UI indicator.

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] UI mode indicator desynchronizes with agent mode after ExitPlanMode approval [1 comments, 2 participants]