one-code-extension 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -154,6 +154,21 @@ no extension-facing hook. A One Code extension therefore cannot set or flip it.
154
154
  terminal scrollback after quit — that is the whole point of the clean exit, and
155
155
  `pi --resume` covers re-entry.
156
156
 
157
+ **Correction (2026-08-10, found live):** the setting alone does NOT give the
158
+ clean exit on pi 0.84.1. The alt screen engages (verified via tmux
159
+ `alternate_on`), but pi's quit path *deliberately* transfers the transcript to
160
+ the main buffer: `stopInteractiveTui()` switches back to the regular renderer
161
+ and repaints everything (`switchTuiMode("regular")` + `renderNow()`) before
162
+ stopping — `TuiAltScreen`'s `preserveScreen` clean exit exists but is
163
+ unreachable from settings. The bundled app therefore overrides
164
+ `InteractiveMode.prototype.stopInteractiveTui` in `app/bin.mjs` (exact-pinned
165
+ pi makes the touched internals stable; falls back to stock behaviour on any
166
+ surprise) to stop the alt screen with `preserveScreen: true` — verified live:
167
+ exit leaves only the resume hint, like Claude Code. Package-variant users
168
+ still get the transcript-dump exit until the upstream exit-preserve option
169
+ lands (upstream_prs #8). The mid-session `/settings` renderer switch is
170
+ untouched.
171
+
157
172
  **Trap this surfaced (finding §10.16):** the setting key was `uiMode` in the
158
173
  pinned reference clone (v0.83.0) but was renamed `tuiMode` in installed pi
159
174
  (v0.84.1); a `uiMode` key is silently ignored on 0.84.1. Clone re-pinned to
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "one-code-extension",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "One Code as a pi package \u2014 the Claude Code experience on your own pi install: ported system prompt, Claude-Code-format permissions, .claude/ compatibility, ToolSearch-style deferred tools, and system-reminder steering. For the bundled app, install `@one-ai/one-code` instead.",
5
5
  "keywords": [
6
6
  "pi",