← Catalog

sticky-prompt-line

Pi extension that shows the nearest off-screen user prompt as a one-line sticky transcript marker.

Extension

Install

Install with PiG

pig install npm:sticky-prompt-line

Install with Pi

pi install npm:sticky-prompt-line
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "extensions": [
    "./index.js"
  ]
}

README

Written by the package's publisher, shown as published in version 0.1.1 (README.md). PiG does not review it.

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.