Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .agents/skills/terrific/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ A validation that fails with no evident cause becomes a debug task, and its sess
- If you can reproduce the bug yourself (a test, a script, `curl`), do it without asking the user.
- Otherwise give the user short numbered steps and wait until they confirm they are done. Mention restarts only when the instrumentation needs one.
- While the session runs, mark moments yourself with `terrific note|bug|flag <id> [text]`.
- In a browser session, `terrific screenshot <id>` captures the page and `terrific snapshot <id>` saves it as markdown.
- In a browser session, `terrific screenshot <id>` captures the page and `terrific snapshot <id>` saves it as markdown. Alt+right-click opens the Note panel; how to read its `<pointed-section>`, `@ss_` and `@snapshot:` references is under "Notes written in the browser" in [references/events.md](references/events.md).
- To watch live, run `terrific events <id> --follow` in the background. It ends when the session stops.
7. Stop with `terrific stop <id>`, which prints the summary and writes `context.txt` in the session folder. Omit the id when only one session is recording.
- "Session is not recording" means the user already stopped it, so go straight to the evidence.
Expand Down
14 changes: 14 additions & 0 deletions .agents/skills/terrific/references/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,17 @@ The session folder, printed by `start` and `prompt`, contains:
- `events.jsonl`, the lossless source of truth, so grep it directly when filters fall short;
- `context.txt`, written when the session stops;
- `screenshots/`.

## Notes written in the browser

In any browser Terrific records, hold Alt and right-click to open the Note panel (plain right-click is untouched; works when action recording is off; top frame only). Point adds the clicked element as a chip (Up/Down change level, Enter or click to add, Esc cancels). Screenshot and Snapshot capture the page into the session and add a chip. Note saves with Ctrl+Enter, Bug with Ctrl+Shift+Enter; a bug can be empty. Esc closes and keeps the draft.

Note panel notes and bugs are stored as normal `note` / `bug` events with `author: 'tester'`. Chips serialize into the event text as:

- A `<pointed-section>` block on its own lines for each pointed element, captured when it was picked. It lists `Selector` (unique CSS selector; shadow roots are joined with ` >>> `), `Element`, and when present `Classes`, `Data attributes`, `Location` (landmark path), `Heading`, `Role`, `Accessible name`, `ARIA state`, `Text anchor`, siblings, `Children`, `Box` (size and page position, plus the viewport), `Positioning`, `Styles` and `Shadow DOM`. It describes where the element is, not its content. The page URL is not repeated: take it from the nearest `navigation` event before the note.
- `@ss_<id>.png`: a screenshot; open `screenshots/ss_<id>.png` in the session folder.
- `@snapshot:ev_<id>`: the id of a `snapshot` event (or `@snapshot` when no id was available). Read with `terrific events <session-id> --type snapshot --json` and match the record whose `id` is that `ev_<id>`.

Captures happen when the tester presses Screenshot or Snapshot, so each one is also its own event in the timeline, and a capture may exist that no note references. Copying from the panel puts this same text on the clipboard, and pasting it back turns valid references into chips again.

Limitations: the draft (unsent text and chips) lives in memory for the whole session, survives reloads, navigation and new tabs, and is discarded when the session stops; nothing is written to disk until it is sent. Screenshot previews can be blocked by a page's image CSP (the chip still works); iframes and closed shadow roots cannot be pointed into from the top frame.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),

## [Unreleased]

### Added

- Browser note panel: Alt+right-click in a recorded page to write notes and bugs with element, screenshot, and snapshot chips. Unsent drafts survive reloads and navigation for the rest of the session.

## [1.0.0] - 2026-11-04

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Run `terrific doctor` if setup fails. It checks Node.js, browser discovery, prof

1. Type `/new localhost:5173 "checkout"` in the TUI and confirm the recording setup.
2. Reproduce the issue in the browser Terrific opens. Actions, requests, and console events appear in the live log.
3. Type a note, or use `/bug` and `/flag` to mark a moment. Use `/screenshot` or `/snapshot` to capture the page.
3. Type a note, or use `/bug` and `/flag` to mark a moment. Use `/screenshot` or `/snapshot` to capture the page. In the browser, hold Alt and right-click to open the note panel.
4. Run `/stop` and confirm. The summary shows bugs, errors, failed requests, and the saved session location.
5. Run `/copy` to copy the agent prompt, bugs and errors, or full context.

Expand Down
1 change: 1 addition & 0 deletions src/daemon/session-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ export function createSessionService(options: {
onEvent: (input) => {
void appendInput(live, input, stamp);
},
appendEvent: async (input) => ({ id: (await appendInput(live, input, stamp)).id }),
});
void live.recording.closed.then((reason) => {
if (reason === 'browser-closed') void stop(created.record.id, undefined, true);
Expand Down
Loading
Loading