[BUG] statusline-setup agent assumes incorrect username '/Users/mustafa'

Resolved 💬 4 comments Opened Aug 23, 2025 by smh Closed Jan 9, 2026

Environment

  • Platform (select one): Anthropic API
  • Claude CLI version: 1.0.89 (Claude Code)
  • Operating System: macOS (Darwin 24.3.0)
  • Terminal: ghostty/tmux/fish-shell

Bug Description

The statusline-setup agent incorrectly assumes a hardcoded username /Users/mustafa when attempting to read shell configuration files, even when this user doesn't exist on the system.

Steps to Reproduce

  1. Run the /statusline command in Claude Code
  2. The system creates a Task with subagent_type "statusline-setup"
  3. The agent attempts to read shell configuration files from /Users/mustafa/ directory

Expected Behavior

The agent should detect the actual user's home directory or request the correct path from the user, rather than assuming a specific username.

Actual Behavior

The agent tried to access shell configuration files in /Users/mustafa/ (.zshrc, .bashrc, .bash_profile, .profile) without verifying this user exists on the system.

Additional Context

  • Working directory at time of issue: /Volumes/Source/src/ka2/ka2/work/upgrades
  • The hardcoded "mustafa" username suggests this may be a development artifact that wasn't properly parameterized
  • This raises security/privacy concerns about what other hardcoded assumptions the agent might be making

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗