Reporting a bug
Click 🐞 at the right end of the bottom bar. A panel opens with three steps, and each one is its own click.
Step 1 writes a report on your machine and opens it, so you read every word before anything else happens. Nothing is sent. Step 2 starts Claude Code or Codex in a new tab with that one file; it drafts a GitHub issue, shows you the exact text, and files it only when you say yes. Step 3 opens GitHub's new-issue page in your browser instead, for you to write yourself.
A report holds Terminal Delight's own build, your system's versions, how many tabs and panes are open, any crash records, and its own error lines with paths, links and quoted values blanked out. It never holds scrollback, anything you typed, pane titles, working directories, commands or a screenshot.
An orange dot on the 🐞 means Terminal Delight recorded a crash since your last report.
Technical has the panel word for word, the report's sections, the blanking rules and where every file goes.
The report
Where the 🐞 is#
In the bottom bar, among the glyphs at its right end: 🎨, the display tray, 🪦, 🔔, 🐞, 🧩. In a window narrower than 720 pixels those glyphs fold into one … button, and its menu has Report a bug. Esc or a click on the dimmed background closes the panel.1
The orange dot appears when Terminal Delight wrote a crash record after your last prepared report, or when the window itself crashed on a background thread since it started. The second kind stays lit until the window restarts.
On 0.5.0 the 🐞 is hidden in the Clean and Standard UI sets, and a first launch uses Standard. With it hidden, a CONFIG ▾ button takes its place at the end of the bar, Report a bug is in its menu, and the crash dot moves onto CONFIG and onto that menu entry. To bring the glyph back, switch it on in UI CONFIG or choose the all set. Under a skin that draws controls as words, it reads report.4
The panel#
Headed 🔒 REPORT A BUG, then: TD never puts your terminal's input or output in a report. Each step is its own click, and nothing leaves this machine until you choose step 2 or 3.
When a crash is waiting it adds, in orange: TD recorded a crash since your last report. It will be included.
| Row | What it says | What the click does |
|---|---|---|
📝 1 · Prepare the report | Writes TD's builds, counts of tabs and panes, crash records and scrubbed error lines to a file here, then opens it so you can read every word. Nothing is sent. | Writes report.md, closes the panel and opens the file in a floating document on the focused pane. If no pane can show it, your desktop's opener opens it instead. Reopening the panel shows Written on this machine: and the path. |
🤖 2 · Draft the issue with claude (or codex) | Starts {agent} in a new tab with that one file. Its provider will see what is in it. It shows you the exact issue and files it only when you say yes. | Opens a new tab at the end of the window, in the report's own folder, and types the line below into it. Before step 1 the row says Prepare the report first. |
🌐 3 · File it yourself on GitHub | Opens GitHub's new-issue page in your browser. You paste what you choose. | Opens https://github.com/parker-brown-family/terminal-delight/issues/new, with nothing filled in. It doesn't need step 1. |
Step 2 picks the agent named in Omarchy's ~/.config/omarchy/defaults/agent when that is claude or codex, and otherwise the first of the two found on your PATH. With neither, the row is dimmed and says No agent TD can start was found. Install claude or codex, or use step 3. The line it types is:1
claude 'Read report.md in this directory and follow its section "For an AI agent reading this file".'
That section of the report tells the agent that the file is everything it gets: it may not read your terminals, scrollback, transcripts or files, or ask you to paste terminal output. It asks what happened if you haven't written it, searches for an existing issue with gh issue list, shows you the exact title and body, and runs gh issue create only after you agree to that text. If gh is missing or not signed in, it gives you the text and the new-issue link, and installs or signs in to nothing.
Where the files go#
| Path | Holds |
|---|---|
~/.local/state/terminal-delight/bug-reports/<unix-seconds>/report.md | One report per click of step 1. Nothing deletes them. |
~/.local/state/terminal-delight/bug-reports/.last-prepared | When the last report was written, which is what the orange dot is measured from. |
~/.local/state/terminal-delight/crashes/<nanoseconds>-<pid>.txt | One record per crash, written on its own, kept on this machine. Nothing deletes them. |
~/.local/state/terminal-delight/logs/window.log, host-<session>.log | The window's and each session host's error output. When a log is over 4 MiB as a process starts, it is moved to .log.1, and one old copy is kept. |
$XDG_STATE_HOME replaces ~/.local/state when it is set to an absolute path. A window started from a terminal keeps writing its errors to that terminal, and any TD_…DEBUG switch keeps them out of the log, so key traces never land in a file (see Environment flags).2
What a report holds#
# Terminal Delight bug report, the time it was prepared, andNothing in this file has been sent anywhere.
## What happened: a placeholder for your own words, the one part that needs you.## What this file holds, and what it never holds: the promise below, in the file itself.## System: the window's build (the installed binary's name, which carries its commit, and the version), the builds of any session hosts running, the OS name, the kernel version,$XDG_CURRENT_DESKTOPand$XDG_SESSION_TYPE. A value it can't read saysunknown.## This window: how many tabs and panes, with panes counted by kind (shell, claude, codex, remote, other). Another program is counted asother, never by its name.## Crashes TD recorded (newest first): up to five crash records, whole.## TD's own error lines (the last 80 per log, repeats folded): from up to six logs. Only lines Terminal Delight wrote about itself count: they startterminal-delightortd:. A line about launching an agent is left out, because it names a project's path.## For an AI agent reading this file: the rules quoted above.
It never holds your terminal's input or output, scrollback, screen rows, pane titles, working directories, command lines or a screenshot. Nothing is collected about your GPU, theme or settings. You can delete any line before it goes anywhere.2
How values are blanked#
Each error line, and each crash's message, has these replaced by ‹…›:3
- a quoted value: anything between backticks or double quotes, and between single quotes when the quote starts a word, so
can'tsurvives; - a link: letters followed by
://, up to the next space or closing bracket; - a path: a word starting
/or~/, up to the next clause break, so it can take a few words past the path.
Relative paths such as notes/x.md, host names and email addresses are left as they are unless they were quoted. A crash record goes in whole: below its scrubbed message are the place in Terminal Delight's source where it failed and up to 120 lines of backtrace, which name source files as they were on the machine that built the binary.
What would prove this wrong#
Any text from a terminal in a prepared report: a line you typed, something a program printed, a pane's title or a directory you worked in. The test that writes a whole report plants a password, a project name, a program name and a home path, and fails if any of them appears.
Sources
- The glyph, the panel and its rows: main.rs (
render_bug_overlay,bug_prepare,bug_to_agent,doc_here); the strings: lang/chrome.rs (bug_*) and lang.rs (report_bug). - The report, the logs and the crash records: diag.rs (
write_report,report_text,route_stderr,install_crash_record,chosen_agent,agent_run_line). - Blanking and its tests:
scrub,scrub_takes_out_paths_links_and_quoted_valuesanda_whole_report_holds_no_terminal_content_and_says_the_rulesin diag.rs. - 0.5.0: the UI sets standard.toml, clean.toml, all.toml and uiconfig.rs; the CONFIG menu entry in main.rs.
diag.rsis the same file on both branches.