Status line area shows spurious 'Can't connect to www.master.com:443' errors
Description
When running Claude Code in debug mode, the status line area displays HTTP error messages that appear to be from an internal URL fetch attempt using "master" as a domain name:
400 URL must be absolute
Content-Type: text/plain
Client-Date: Wed, 24 Dec 2025 19:08:56 GMT
Client-Warning: Internal response
500 Can't connect to www.master.com:443 (certificate verify failed)
Content-Type: text/plain
Client-Date: Wed, 24 Dec 2025 19:08:57 GMT
Client-Warning: Internal response
400 URL must be absolute
Content-Type: text/plain
Client-Date: Wed, 24 Dec 2025 19:08:57 GMT
Client-Warning: Internal response
HEAD?
The HEAD? at the end is the expected output from my custom status line command. The error messages above it are unexpected.
Environment
- Claude Code version: 2.0.76
- Platform: Linux (Ubuntu on AWS ARM64)
- Debug mode: enabled
Status Line Configuration
{
"statusLine": {
"type": "command",
"command": "input=$(cat); cwd=$(echo \"$input\" | jq -r '.workspace.current_dir'); cd \"$cwd\" 2>/dev/null || { basename \"$cwd\"; exit 0; }; if git rev-parse --git-dir >/dev/null 2>&1; then branch=$(git rev-parse --abbrev-ref HEAD 2>/dev/null); status=''; git diff --quiet 2>/dev/null || status='*'; git diff --cached --quiet 2>/dev/null || status=\"${status}+\"; git ls-files --others --exclude-standard | grep -q . && status=\"${status}?\"; upstream=$(git rev-parse --abbrev-ref @{u} 2>/dev/null); if [[ -n \"$upstream\" ]]; then ahead=$(git rev-list --count @{u}..HEAD 2>/dev/null); behind=$(git rev-list --count HEAD..@{u} 2>/dev/null); [[ \"$ahead\" -gt 0 ]] && status=\"${status}↑\"; [[ \"$behind\" -gt 0 ]] && status=\"${status}↓\"; fi; if [[ \"$branch\" == \"main\" || \"$branch\" == \"master\" ]]; then printf '%s%s' \"$(basename \"$cwd\")\" \"$status\"; else printf '%s%s' \"$branch\" \"$status\"; fi; else basename \"$cwd\"; fi"
}
}
This command only runs local git commands - it does not make any HTTP requests.
Context
- Working directory (
/home/ubuntu) is a git repository with detached HEAD - No hooks configured
- No MCP servers configured
Expected behavior
Only the status line command output (HEAD?) should appear, with no HTTP error messages.
Actual behavior
Three HTTP error responses appear before the status line output, suggesting something internal is attempting to fetch www.master.com:443 - possibly constructing a URL incorrectly from the git branch name "master".
Notes
- The errors reference
www.master.comwhich appears to be a malformed URL construction using "master" (git branch name) as a domain - The
Client-Warning: Internal responseheader suggests this is from an HTTP client library, not an actual network response - These errors do not appear in the debug log file (
~/.claude/debug/) - The status line command checks for branch names "main" or "master" but only as string comparisons, not URL construction
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗