[FEATURE] Add IDE connection status to custom status line JSON payload

Resolved 💬 2 comments Opened Feb 27, 2026 by blearyalarm Closed Mar 28, 2026

When using a custom status line script via settings.json:

{
  "statusLine": {
    "type": "command",
    "command": "~/.claude/statusline.sh"
  }
}

The JSON payload passed to the script does not include IDE connection status. This makes it impossible to display IDE connection state in a custom status line.

Current JSON payload includes:

  • cwd, workspace.*
  • model.display_name, model.id
  • context_window.used_percentage
  • cost.*
  • version, session_id

Missing:

  • IDE connection status (e.g., ide.connected, ide.name)

Requested addition:

{
  "ide": {
    "connected": true,
    "name": "Cursor"
  }
}

Use case:
I want my status line to show:

📁 my-project | Opus 4.5 | 42% ctx | Cursor

Currently I can only show "No IDE" or omit it entirely, even when /ide status confirms a connection.

Environment:

  • Claude Code version: 2.1.62
  • OS: macOS

View original on GitHub ↗

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