# Report an issue

URL: https://swb.one/docs/report-an-issue

Thank you for helping us improve SwB. When you find a bug, SwB writes most of the report for you. You read the report and submit it on GitHub.

## Report from the console [#report-from-the-console]

Open **Settings** and select **Report an issue**. Each notice also has a **Report an issue** button. Write what happened and what you expected.

SwB adds the facts that help us find the cause. These facts include the SwB version, the install method and the operating system. They also include the deployment type, the state of each block, the open notices and recent log warnings.

Select **Open on GitHub**. GitHub opens a bug report with each field filled in. Read the report and submit it.

## Report with your agent [#report-with-your-agent]

Ask your agent to report the bug. The agent calls the `report_issue` tool with a title, what happened, what it expected and the steps. SwB adds the same facts and returns a link to a prefilled GitHub issue. The agent gives you the link.

The draft also waits for you in the console. Open **Report an issue** to read it, edit it and open it on GitHub.

When an SwB bug stops the work of an agent, the agent calls `report_issue` and sends you the link.

## Your data stays private [#your-data-stays-private]

SwB removes tokens, keys, sign-in codes, email addresses and phone numbers from the report. It also removes message text and the paths in your home folder. The console shows the exact text that goes to GitHub. You submit each issue yourself.

For a security problem, follow the [security policy](https://github.com/ZhehanZhang/SwB/security/policy) to report it privately.

## Long reports [#long-reports]

A GitHub link holds a limited amount of text. For a long report, SwB shortens the log first. Select **Copy diagnostics** and paste the full text into the issue.
