[BUG]
Resolved 💬 3 comments Opened May 7, 2025 by ballidev Closed Jan 3, 2026
Environment
- Platform (select one):
- [ x] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [ ] Other: <!-- specify -->
- Claude CLI version: 0.2.103 (Claude Code)
- Operating System: Rocky Linux release 9.5 (Blue Onyx)
- Terminal: https://gitlab.gnome.org/chergert/ptyxis
Bug Description
When running Bash() tool - the client is getting the full MOTD output every time. This can be quite verbose depending on config. In my environemnt, the MOTD includes verbose information including current git status.
Suggested Fix
This can be avoided by running bash like this:
bash --noprofile --norc -c 'some command'
Steps to Reproduce
- Do anything that would trigger bash tool
- Notice that it gets the full MOTD (which for me includes git status)
● Now I'll ......
● Bash(some command)…
⎿ Entering current webroot, /var/www/vhosts/green/product-data-api
On branch TestCoverage
Your branch is up to date with 'origin/TestCoverage'.
Changes to be committed:
… +66 lines (ctrl+r to expand)
modified: .....
Untracked files:
(use "git add <file>..." to include in what will be committed)
Expected Behavior
It does not trigger MOTD
Actual Behavior
It does get MOTD every time, which must be bloating context hugely
Additional Context
No further comment
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗