pi-thinking-display0.1.1
Thinking-block display for pi: keep only the thinking run that is still streaming expanded, plus a fold marker with hover highlight and click-to-toggle, with a settings panel.
Untested on omp
This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.
Reports 0
No reports yet.
Readme
pi-thinking-display
English | 简体中文
What it is
An extension that keeps pi's thinking blocks expanded while they stream, and collapses them once they are done.
[!IMPORTANT] Automatic collapsing works in
regular mode
Some features, such as hover / click-to-expand, requireTUI mode
Features
- Streaming collapse: while an assistant message is being generated, the thinking block still being output stays expanded. As soon as visible content starts appearing after it, it collapses on its own.
- Mouse interaction: thinking blocks show a fold marker; the pointer highlights it on hover, and a click expands / collapses it.
[!NOTE] Respects pi's native
Ctrl+Tbehavior for expanding thinking blocks and never overrides it.
Install
pi install npm:pi-thinking-display
pi install -e npm:pi-thinking-display # one-shot trial
Configuration file
[!TIP] Use
/thinking-display-settingsto open the visualization settings panel
At ~/.pi/agent/thinking-display.json
| Key | Type | Default | Meaning |
|---|---|---|---|
streaming |
boolean | true |
Expand only the thinking block that is still streaming |
decorate |
boolean | true |
Enable the fold marker and hover highlight |
[!WARNING] A missing field, a wrong type, or broken JSON falls back to the default; a bad config never breaks rendering. Hand edits apply on the next
/reloador in a new session.
Development
node test/run.mjs # all
node test/run.mjs unit # config, streaming rules, marker/hover/click, settings panel
node test/run.mjs lifecycle # real AgentSession: extension discovery, when config applies, /reload