[BUG] statusline-setup agent uses wrong username (data leakage between users)
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
This happened twice, agent used other real names instead of my actual username. Both times i started from clear new session and asked it to create a statusline. Both times it tried to first read from a username that does not exist. And persiststhat it is my user tries to create the path to a new claude settings file under the non-existing user. Both time when asked where it got the user from it states it migh be a hallucination or agent cache from another user session.
What Should Happen?
it should create statusline under my user and not leak others usernames to me.
Error Messages/Logs
Steps to Reproduce
enter claude. type /statusline. follow steps and rightaway it assumes the wrong user
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.0.76 (Claude Code)
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
VS Code integrated terminal
Additional Information
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗