Status line area shows spurious 'Can't connect to www.master.com:443' errors
Status Fixed / completed
Reported on v2.0.76
Maintainer reply None cached
Activity 4 comments · opened Dec 24, 2025 · closed Dec 24, 2025
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
4 Comments
Happens in non debug mode too
!Image
Root Cause Identified
The bug was in the original status line command, not in Claude Code itself. After rebuilding the status line incrementally, the issue no longer reproduces.
Original (buggy) command used
input=$(cat):Fixed command reads directly from stdin:
Working Status Line Configuration
This can likely be closed as user error, though it's still unclear why
input=$(cat)caused HTTP requests towww.master.com.Closing - root cause was the status line command using
input=$(cat)pattern. Fixed by piping directly to jq. See comment above for working configuration.This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.