claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

Add option to suppress 'Shell cwd was reset' messages

Open kitaekatt opened this issue 1 month ago • 0 comments

Description

When running Bash commands in directories outside the project root, Claude Code prints an informational message after each command output:

Shell cwd was reset to /home/user/.claude

This becomes noisy in sessions with many cross-directory operations (e.g., working on multiple repositories from a central config repo).

Current Behavior

Every Bash command that executes outside the project directory produces this message in the output, regardless of user preference.

Requested Enhancement

Add a setting to suppress these informational messages while preserving the underlying reset behavior. Options could include:

  • Environment variable: CLAUDE_BASH_QUIET_CWD=1
  • Or settings.json option: "bashQuietCwdReset": true

Rationale

  • The reset behavior itself is correct and useful
  • The message is informational but not actionable by the user
  • Users who understand the shell model don't need this reminder on every command
  • Reduces output noise and improves readability of command results

Environment

  • Claude Code version: 1.0.33
  • Platform: Linux (Ubuntu)

kitaekatt avatar Dec 08 '25 22:12 kitaekatt