@rahularya01/pi-cursor 1.4.2 → 1.4.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.4.4] - 2026-08-02
4
+
5
+ ### Fixed
6
+
7
+ - **Simple turns looked like they "used 20% context".** The visible context-mode hierarchy blurb is tiny; the real cost is Pi's system prompt + full tool/MCP JSON schemas (often tens of thousands of tokens) re-sent every turn. pi-cursor now:
8
+ - drops no-op context-mode injections (hierarchy boilerplate + empty/mode-only `<session_state>`)
9
+ - slims tool descriptions/parameter docs/enums before building Cursor MCP tool defs (**default on**; `PI_CURSOR_SLIM_TOOLS=0` to disable)
10
+ - records a request-size breakdown on every stream (`lifecycle` `request_size` + `/cursor.doctor` `lastRequestSize`)
11
+
12
+ ## [1.4.3] - 2026-08-02
13
+
14
+ ### Fixed
15
+
16
+ - **Context-mode / compaction injections swallowed the real user message.** When Pi appended `context-mode active…` / `<session_state>` to the same user turn as the actual prompt (e.g. `hi\n\ncontext-mode active…`), the whole turn was classified as side-channel and folded into the system prompt — leaving an empty user task. Models then answered the prior session summary ("I'll re-read those three files…") instead of the new message. Mixed messages are now split: infrastructure blocks move to `<provider_context>`, and the residual user text stays as the live turn. Priority framing also states that the latest user message is the only task.
17
+
3
18
  ## [1.4.2] - 2026-08-02
4
19
 
5
20
  ### Fixed
package/README.md CHANGED
@@ -159,6 +159,7 @@ Pi Coding Agent → streamSimple (cursor-native)
159
159
  | `PI_CURSOR_ACTIVE_BRIDGE_TTL_MS` | How long a mid-tool bridge stays parked waiting for tool results (default: 1 hour). |
160
160
  | `PI_CURSOR_H2_CONNECT_TIMEOUT_MS` | h2-bridge initial connect kill (default: `30000`; `0` disables). |
161
161
  | `PI_CURSOR_H2_IDLE_TIMEOUT_MS` | h2-bridge activity idle kill. **Default `0` (disabled)**. Parent heartbeats reset it when enabled. |
162
+ | `PI_CURSOR_SLIM_TOOLS` | Truncate verbose tool descriptions/parameter docs/enums on the Cursor MCP tool surface. **Default on**; set `0`/`false` for full schemas. |
162
163
  | `PI_CURSOR_MIDPAUSE_REBUILD_MAX_AGE_MS` | Max age of mid-pause metadata used for full-history rebuild (default: 15 min). |
163
164
 
164
165
  ## Architecture notes