You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OpenPI's shared editor-layer coordinator composes a new editor factory from current.ui.getEditorComponent() every time a layer registration is installed. Pi emits session_start for /new, /resume, and /reload; those starts register the same layers again without necessarily creating a new UI context. The second install therefore wraps the already-composed factory, nesting each editor layer again.
Minimal reproduction
Start a TUI session with OpenPI editor contributors loaded.
Let the scheduled editor-layer install run once.
Start another Pi session on the same TUI context (/new, /resume, or /reload).
After the second scheduled install, construct the editor component: each registered wrapper has been applied twice.
Expected behavior
One active TUI context has one composition of each registered OpenPI editor layer, regardless of repeated session_start events.
Proposed scope
Retain the original base editor factory per active context and compose registered layers from that base. Add a lifecycle regression that starts the same context twice and proves the wrapped editor depth does not grow.
I am claiming this issue. I verified no equivalent open Issue or implementation PR, and will add the same-context repeated-session regression before opening a focused PR.
Activity
outlier27-cell commentedon Oct 11, 2026
I am claiming this issue. I verified no equivalent open Issue or implementation PR, and will add the same-context repeated-session regression before opening a focused PR.