A tiny Pi extension that keeps your latest submitted prompt visible while you work.
- Shows the latest user prompt in a compact Pi-styled banner.
- Uses a pi-btw-style full-width floating window flush with the top of the terminal.
- Keeps focus in Pi's normal editor and terminal UI with
nonCapturing: true. - Provides a toggle command plus a manual repaint command.
Copy the extension into Pi's global extensions directory:
mkdir -p ~/.pi/agent/extensions
cp sticky-prompt-header.ts ~/.pi/agent/extensions/Then restart Pi or run:
/reload
Submit a prompt in Pi. The latest prompt appears in a full-width floating window flush with the top edge of the terminal, using Pi's normal overlay API.
Commands:
/sticky-prompt-header # toggle on/off
/sticky-prompt-header repaint # force a redraw
This follows the same general floating-window path as pi-btw: ctx.ui.custom() with overlay: true, anchor: "top-center", width: "100%", zero top/side margins, and nonCapturing: true.
