name: Bug report
description: Report a reproducible problem in the CLI, dashboard, config flow, or packaging.
title: "bug: "
labels:
  - bug
body:
  - type: markdown
    attributes:
      value: |
        Thanks for reporting this. Use as much of this template as you can.
        A partial but useful report is better than no report.

        If this is a suspected security vulnerability, do not file it publicly. Use the private reporting path in `SECURITY.md`.
  - type: dropdown
    id: area
    attributes:
      label: Affected area
      description: Pick the closest area.
      options:
        - CLI runtime
        - Dashboard UI
        - Config or auth flow
        - Provider integration
        - Install or packaging
        - Documentation
  - type: textarea
    id: summary
    attributes:
      label: What broke?
      description: Brief summary of the problem.
      placeholder: Running `ccs config --host 0.0.0.0` prints the wrong reachable URL on macOS.
    validations:
      required: true
  - type: textarea
    id: reproduction
    attributes:
      label: Reproduction steps
      description: Exact steps are ideal, but rough steps are still helpful.
      placeholder: |
        1. Run `ccs ...`
        2. Open ...
        3. Observe ...
  - type: textarea
    id: expected
    attributes:
      label: Expected behavior
  - type: textarea
    id: actual
    attributes:
      label: Actual behavior
  - type: input
    id: version
    attributes:
      label: CCS version
      description: Output of `ccs --version`, if you have it
      placeholder: 7.54.0
  - type: dropdown
    id: os
    attributes:
      label: Operating system
      options:
        - macOS
        - Linux
        - Windows
        - Other
  - type: textarea
    id: environment
    attributes:
      label: Environment details
      description: Include Node.js version, Bun version, shell, terminal, and anything else relevant.
      placeholder: |
        Node.js:
        Bun:
        Shell:
        Terminal:
  - type: textarea
    id: logs
    attributes:
      label: Logs, screenshots, or terminal output
      description: Redact tokens, cookies, email addresses, and any private config before posting.
      render: shell
  - type: checkboxes
    id: checks
    attributes:
      label: Before submitting
      options:
        - label: I searched existing issues first.
        - label: I removed secrets and private data from logs/screenshots.
        - label: I can still reproduce this on the latest released or dev build.
