--- status: proposed date: 2026-07-04 --- # Render gate widgets natively in the Pi terminal When Pi runs interactively, the gate could render reviewer widgets with Pi's native terminal primitives (`select`, `confirm`, `editor`) instead of printing the JSON widget descriptor, while RPC mode keeps emitting descriptors for the browser. The discriminator is `ctx.mode === "tui"`; `ctx.hasUI` cannot be used because it is also true in RPC mode on current Pi releases. A feasibility review found the approach supported by Pi, but only the `ctx.mode` guards for terminal-only notices were implemented; in a terminal the gate still shows raw JSON. ## Consequences If accepted, every widget kind needs a terminal mapping with the same response shape as the RPC path, including multi-select and invalid-choice handling, and both paths need round-trip tests.