Add Inspector entries to a chat

Overview

The Inspector's detail sheet — the panel that opens when you tap a console log, an uncaught exception, or a network request — has an Add to chat button. It copies that entry into a chat draft as plain text, so you can ask the assistant about a specific failure without retyping the message or the stack trace. Nothing is sent: the text lands in the draft and waits for you.

Usage

  1. Open Inspector and attach to a browser tab.

  2. Tap a row in the Console or Network panel. The detail sheet opens.

  3. Tap Add to chat in the sheet's header, next to Close.

  4. Choose the project and chat, then tap Add to draft.

    The entry is appended to that chat's draft. Open the chat to review and send it.

Behavior

What the text looks like

Console log and exception entries:

Inspector console error — My Page
18:42:11 ERROR Error: nope
Source: http://x/app.js:12
Stack:
  at f (app.js:12:4)

An uncaught exception is titled Inspector exception rather than Inspector console error.

Network requests:

Inspector request POST 404 — My Page
http://x/api
XHR · application/json · 2.0 KB · 120 ms

A request that failed to complete adds its cause:

Inspector request GET FAIL — My Page
http://x/api
Error: net::ERR_FAILED

The page name is the inspected page's document.title, falling back to its URL, then to the inspected page. An HTTP status's own text (Not Found) is not labelled an error — the status is already in the header — while a transport failure's errorText is.