sticky-prompt-line
Pi extension that shows the nearest off-screen user prompt as a one-line sticky transcript marker.
Package details
Install sticky-prompt-line from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:sticky-prompt-line- Package
sticky-prompt-line- Version
0.1.1- Published
- Nov 2, 2026
- Downloads
- 501/mo · 209/wk
- Author
- ac8318740
- License
- MIT
- Types
- extension
- Size
- 7.4 KB
- Dependencies
- 0 dependencies · 1 peer
Pi manifest JSON
{
"extensions": [
"./index.js"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
sticky-prompt-line
Tiny Pi extension that shows one dim sticky line when you scroll up in the fullscreen transcript.
It shows the nearest user prompt above the current transcript top. The line stays to one row, truncates overflow with ..., and jumps to that prompt when clicked.
Use
From this checkout:
pi --extension ./index.js
Or add the package path to your Pi extensions config.
Check
npm run check
Notes
Pi does not expose role-tagged transcript positions through the public extension API. This extension reads the fullscreen scroll view and Pi's cached rendered child heights, identifies user-message components, and jumps directly to the measured row. It does not count assistant prompt markers, estimate tool heights, render components again, or patch renderers.
This relies on private runtime fields (getPrimaryScrollView, child, mouseLayout, and user-message text) and the UserMessageComponent class name. Pi upgrades may require changes.
Missing measurements hide the line. The extension skips containers whose rendered height differs from their cached child heights rather than guessing offsets. It does not support custom transcript wrappers that change row order or add padding.