claude-code - 💡(How to fix) Fix /effort slider cursor shows xhigh while status bar shows max when env var is active [2 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#52017Fetched 2026-04-23 07:38:46
View on GitHub
Comments
2
Participants
2
Timeline
8
Reactions
0
Author
Timeline (top)
labeled ×5commented ×2closed ×1

When CLAUDE_CODE_EFFORT_LEVEL=max is set, the status bar and the /effort slider display different values for the same concept (active effort level). This is confusing for users who rely on the env var to pin max across sessions.

Root Cause

When CLAUDE_CODE_EFFORT_LEVEL=max is set, the status bar and the /effort slider display different values for the same concept (active effort level). This is confusing for users who rely on the env var to pin max across sessions.

RAW_BUFFERClick to expand / collapse

Summary

When CLAUDE_CODE_EFFORT_LEVEL=max is set, the status bar and the /effort slider display different values for the same concept (active effort level). This is confusing for users who rely on the env var to pin max across sessions.

Steps to reproduce

  1. Set CLAUDE_CODE_EFFORT_LEVEL=max as an env var (or in settings.jsonenv)
  2. Start a fresh Claude Code session with Opus 4.7
  3. Observe the status bar — it shows ◈ max (correct)
  4. Run /effort — the interactive slider cursor sits on xhigh, not max

Expected

The slider cursor should reflect the active effort level, consistent with the status bar. If max is intentionally session-scoped for the slider's persistable state, a visual hint (e.g. "env override active" label, or highlighting max differently) would prevent the perception that the env var isn't working.

Environment

  • Claude Code: 2.1.117
  • Model: Opus 4.7 (1M context)
  • Platform: macOS (darwin 25.3.0)
  • Plan: Claude Max

extent analysis

TL;DR

The discrepancy between the status bar and the /effort slider when CLAUDE_CODE_EFFORT_LEVEL=max is set can be addressed by ensuring consistent handling of the environment variable across the application.

Guidance

  • Verify that the CLAUDE_CODE_EFFORT_LEVEL environment variable is correctly set and applied to both the status bar and the /effort slider.
  • Check the code that updates the /effort slider to ensure it respects the CLAUDE_CODE_EFFORT_LEVEL environment variable, especially when set to max.
  • Consider adding a visual hint to the /effort slider when the environment variable overrides the default setting, to avoid user confusion.
  • Review the documentation for CLAUDE_CODE_EFFORT_LEVEL to ensure it clearly explains its scope and behavior, particularly regarding session persistence.

Example

No specific code snippet can be provided without access to the application's source code, but the fix likely involves ensuring that the /effort slider's state is updated based on the CLAUDE_CODE_EFFORT_LEVEL environment variable.

Notes

The issue might be specific to the interaction between the environment variable and the application's session management. Further investigation into how the application handles environment variables and session state is necessary for a definitive fix.

Recommendation

Apply a workaround by modifying the /effort slider's behavior to respect the CLAUDE_CODE_EFFORT_LEVEL environment variable when set to max, and consider adding a visual hint to indicate when the environment variable is overriding the default setting. This approach addresses the user's immediate concern and provides a clearer experience.

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