Pi Personalization / Mouse interaction

Click the frame. Keep the drag.

One real mouse event switches the same tool between compact and expanded states.

01 / Compact

A single-click release anywhere on a supported collapsible frame.

pi / public demoFICTIONAL DATA
╭─ TOOL read ✓ ─ [ 47 ] ─ 01/15 10:30:00 ──────────────────╮
│ read path=src/hello.ts │
╰────────────────────────────────────────────────────── 5s ╯

02 / Expanded

Actual frame-click-toggle handler applied; the result is now visible.

pi / public demoFICTIONAL DATA
╭─ TOOL read ✓ ─ [ 47 ] ─ 01/15 10:30:00 ──────────────────╮
│ read │
│ │
│ { │
│ "path": "src/hello.ts" │
│ } │
│ export function greet(name: string): string { │
│ return `Hello, ${name}!`; │
│ } │
│ │
│ // Drag to select. Single-click to fold. │
│ // Links and child controls keep priority. │
╰────────────────────────────────────────────────────── 5s ╯
Headers, content, whitespace and thin borders can toggle. Drag selection is not a click; links, independent buttons and modifier keys retain their native behavior. Ordinary message text does not gain a new folding mode.