+ ```
+
+5. **Add cancel confirmation dialog** — render it conditionally when `showCancelDialog` is true. Place the dialog render at the end of the library section's render method (after the metrics tree, before the closing `` tag):
+
+ ```typescript
+ ${this.showCancelDialog ? html`
+
+
e.stopPropagation()}>
+
Cancel Scan
+
+ ${this.cancelMetrics?.added
+ ? `Keep ${this.cancelMetrics.added} tracks found so far, or discard?`
+ : 'Cancel the current scan?'}
+
+
+
+
+
+
+
+
+ ` : ''}
+ ```
+
+6. **Update the status bar** to show paused state:
+ In the existing status bar rendering, update to show "Paused" when paused:
+ ```typescript
+