Pi package that displays the latest provider x-request-id response header below the editor and labels the matching assistant response in /tree.
The extension listens for Pi provider responses, reads the normalized x-request-id header, and updates a small widget below the input box. It also labels the corresponding assistant message entry as xrid:<request-id> so the request ID is visible in Pi's /tree selector. If a provider or transport does not expose that header, the extension leaves the current display unchanged and does not add a tree label.
If an entry already has a label, the extension preserves it and appends the request ID label. Existing xrid: labels written by this extension are replaced instead of duplicated.
pi install https://github.com/kyle-li-dev/pi-request-idFor a private repository over SSH:
pi install git:git@github.com:kyle-li-dev/pi-request-idnpm install
npm run typecheck
pi -e ./extensions/index.tsAfter starting Pi with the extension, send a request and open /tree to confirm the assistant response entry shows xrid:<request-id>.