claude-code - 💡(How to fix) Fix [FEATURE] Persistent bash mode option [2 comments, 2 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#52939Fetched 2026-04-25 06:16:41
View on GitHub
Comments
2
Participants
2
Timeline
5
Reactions
0
Author
Timeline (top)
labeled ×3commented ×2

Fix Action

Fix / Workaround

The workaround I use currently is to hit Cmd+C when I send my bash commands to claude, but this seems suboptimal.

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing requests and this feature hasn't been requested yet
  • This is a single feature request (not multiple features)

Problem Statement

I find myself wanting to run several bash commands in a row. Often, I wind up asking claude the subsequent commands instead of running bash commands (I forget to type !).

Proposed Solution

I would like a setting which would keep the prompt in bash mode after running a command in bash mode, instead of going back to normal mode.

Alternative Solutions

The workaround I use currently is to hit Cmd+C when I send my bash commands to claude, but this seems suboptimal.

Priority

Medium - Would be very helpful

Feature Category

Interactive mode (TUI)

Use Case Example

I want to explore my working directory.

  1. I type ! ls
  2. I type ls <some directory printed above>
  3. Claude says Beaming ... instead of me seeing the subdirectories

Additional Context

No response

extent analysis

TL;DR

Implement a setting to maintain bash mode after executing a command, allowing for consecutive bash commands without requiring the ! prefix.

Guidance

  • Investigate the current mode switching logic to understand how Claude transitions between bash and normal modes.
  • Consider introducing a new setting, such as bash_mode_persistence, to control this behavior.
  • Update the command execution flow to check for this setting and remain in bash mode if enabled.
  • Test this feature with various bash commands and edge cases to ensure seamless functionality.

Example

# Pseudocode example, actual implementation may vary
if bash_mode_persistence_setting:
    current_mode = 'bash'
else:
    current_mode = 'normal'

Notes

The implementation details may depend on the underlying architecture and technology stack used by Claude. This guidance provides a general direction for exploring the solution.

Recommendation

Apply workaround: Implement the proposed setting to maintain bash mode, as it directly addresses the user's need and provides a more intuitive 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

claude-code - 💡(How to fix) Fix [FEATURE] Persistent bash mode option [2 comments, 2 participants]