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
{{ message }}
This repository was archived by the owner on Nov 14, 2026. It is now read-only.
Repository navigation
Commit ed8381b
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: CHANGELOG.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,8 @@ GitHub Releases page; `0.8.0` is the new starting line.
15
15
16
16
## Unreleased
17
17
18
+
## 0.48.0 (2026-06-17)
19
+
18
20
-**Fix: tool outputs invisible on Anthropic-compatible proxies (GLM-5.2 via z.ai).**
19
21
`api.z.ai/api/anthropic` only surfaces the first content block of a multi-part
20
22
`tool_result`, so the leading `<system>` summary reached GLM-5.2 while the actual tool
@@ -166,6 +168,8 @@ GitHub Releases page; `0.8.0` is the new starting line.
166
168
version tracking for `didChange`, open-document state cleared on server restart, empty
167
169
diagnostics payloads clear stale entries, and tightened `/usage` activity-argument validation.
168
170
171
+
Upgrade with `pythinker update`, `pip install --upgrade pythinker-code==0.48.0`, or use the native installer for your platform from the [Releases page](https://github.com/Pythoughts-labs/pythinker-code/releases/latest).
172
+
169
173
## 0.47.0 (2026-06-16)
170
174
171
175
-**Plugin marketplaces and activation policy.**`pythinker plugin marketplace` can add,
-**Live MCP management.**`/mcp disconnect`, `/mcp reconnect`, and `/mcp refresh` update a single server's toolset without restarting. Connected servers now push `tools/list_changed` notifications, so the agent's tool inventory stays current automatically.
57
-
-**Agent-loop hardening.**Root sessions receive a bounded git snapshot in the prompt (`git_status_injection`).`ToolSearch`, `EnterWorktree`, and `ExitWorktree` let agents discover live capabilities and isolate work in a git worktree. Proactive compaction failures hand off explicitly instead of aborting; the spend-ceiling nudge warns before the `budget_exhausted` stop.
55
+
-**LSP code intelligence.**New `LSP` tool (go-to-definition, references, hover, symbols, call hierarchy) with plugin-backed language servers, session-scoped lifecycle, passive diagnostics after edits, and structured errors when a server lacks `implementationProvider`.
56
+
-**TUI theme and streaming overhaul.**Centralized theme system (`/theme`), 25 Hz paced streaming, syntax-highlighted diff cards, report panel polish, and smoother interactive/non-interactive live views — no preamble ghosting, mid-stream scrollback flicker, or fossilized spinners during tool transitions.
57
+
-**Proxy and tool-call hardening.**Tool results flatten for Anthropic-compatible proxies (fixes invisible GLM/z.ai outputs);`ToolSearch` is hidden from providers that cannot use deferred discovery; diff cards strip ANSI escapes; collapsed ReadFile cards show line counts and previews.
58
58
59
-
Upgrade with `pythinker update`, `pip install --upgrade pythinker-code==0.47.0`, or use the native installer for your platform from the [Releases page](https://github.com/Pythoughts-labs/pythinker-code/releases/latest).
59
+
Upgrade with `pythinker update`, `pip install --upgrade pythinker-code==0.48.0`, or use the native installer for your platform from the [Releases page](https://github.com/Pythoughts-labs/pythinker-code/releases/latest).
60
60
61
61
62
62
---
@@ -146,7 +146,7 @@ matches your OS — no Python, Node, or `uv` prerequisite.
@@ -44,7 +44,7 @@ On Windows, run the PowerShell bootstrap. It downloads the native installer, ver
44
44
irm https://pythinker.com/install.ps1 | iex
45
45
```
46
46
47
-
You can also download `PythinkerSetup-0.47.0.exe` manually from the [latest release](https://github.com/Pythoughts-labs/pythinker-code/releases/latest).
47
+
You can also download `PythinkerSetup-0.48.0.exe` manually from the [latest release](https://github.com/Pythoughts-labs/pythinker-code/releases/latest).
Copy file name to clipboardExpand all lines: docs/en/release-notes/changelog.md
+63Lines changed: 63 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,67 @@ GitHub Releases page; `0.8.0` is the new starting line.
17
17
18
18
## Unreleased
19
19
20
+
## 0.48.0 (2026-06-17)
21
+
22
+
-**Fix: tool outputs invisible on Anthropic-compatible proxies (GLM-5.2 via z.ai).**
23
+
`api.z.ai/api/anthropic` only surfaces the first content block of a multi-part
24
+
`tool_result`, so the leading `<system>` summary reached GLM-5.2 while the actual tool
25
+
payload was dropped — every Shell/ReadFile/Grep result read as a "success" summary with
26
+
no output (reproduced from a live GLM-5.2 session transcript). Tool results are now
27
+
flattened to a single text block for non-native hosts via a transport-keyed resolver
28
+
(`resolve_tool_result_mode`), while genuine `api.anthropic.com` keeps the rich
29
+
multi-part form. The same single-string mode is applied defensively to non-native
30
+
OpenAI-compatible hosts (lossless for text), most relevant to GLM served over z.ai's
31
+
OpenAI endpoint; genuine `api.openai.com` is unchanged.
32
+
-**TUI: diff cards strip terminal control sequences.** Inline file-diff bodies
33
+
(Update/Write cards, approval and pager diffs) now sanitize ANSI/control escapes
34
+
from the untrusted file and model-supplied edit content before rendering, so a
35
+
crafted edit can no longer smuggle cursor-movement or color escapes into the
36
+
terminal through a diff card. Visible text is preserved.
37
+
-**TUI: interactive resize/handoff ghosting.** Scrollback handoffs in prompt mode
38
+
now fully suppress the transient preamble (agent stream body, verb spinner, and
39
+
tips) while ``run_in_terminal`` emits permanent scrollback, so stacked
40
+
``Vibing…`` rows and duplicate tips no longer fossilize during tool transitions.
41
+
Terminal resize triggers a hard preamble invalidation and briefly hides tips
42
+
while prompt_toolkit settles at the new geometry. Handoffs defer during resize
43
+
recovery; failed emits leave scrollback queued for retry instead of dropping it.
44
+
Outermost turn end always flushes completed prose even when recovery is active,
45
+
so PTY sessions no longer stall on ``Finalizing…`` without emitting the response.
46
+
-**DiffLive streaming scroll geometry.** Non-interactive live streaming now uses
47
+
cursor-down only when the next row provably fits the visible terminal region
48
+
(frame origin + target row vs height); otherwise it falls back to newline scroll,
49
+
preventing mid-viewport overwrite when the live frame starts below the top of the
50
+
screen. Set `PYTHINKER_DIFF_LIVE_LOG` to trace DiffLive refresh/growth ticks.
51
+
-**TUI: clearer collapsed ReadFile cards.** Collapsed reads now show a line-count
52
+
summary with the file name (e.g. `Read 140 lines from console.py`) plus a short,
53
+
width-capped preview of the leading lines, instead of the generic `Read 1 file`
54
+
that made it look like no content was returned. Empty/unknown reads stay truthful
55
+
(`Read 0 lines` / `Read file content`), and expanded mode still shows the full file.
56
+
-**Cleaner terminal report rendering.** Structured ` ```report ` outputs now suppress duplicated trailing summaries, keep only artifact footers after the report, compact long finding locations, and switch large reports to a borderless dashboard layout for faster terminal scanning.
57
+
-**Unknown subagent-type recovery hints.** Invalid types still fail loudly, but
58
+
`Agent`/`RunAgents` errors now include best-effort suggestions for common
59
+
cross-harness aliases (e.g. `general-purpose` → `coder`) and close typos when the
60
+
suggested subagent exists in the current session. No silent substitution; the full
61
+
valid-type list is unchanged.
62
+
-**TUI: smoother agent-working streaming.** Buffered text now reveals at an even,
63
+
bounded rate instead of backlog-proportional lurches, and completed prose is no
64
+
longer committed to scrollback mid-stream — it stays in the in-place live preview
65
+
and is flushed once at a tool transition or turn end, so the prompt no longer
66
+
pops/flickers on every paragraph boundary during a stream. The prompt stays in a
67
+
**Finalizing** state (not a false idle `❯`) while scrollback is pending, and clipped
68
+
live output shows an **earlier output hidden · Ctrl+O expand** marker instead of
69
+
silently dropping rows.
70
+
71
+
-**TUI tool-card diffs use syntax highlighting.** Edit/Write inline diffs now share the
72
+
approval/pager ``PythinkerSyntax`` pipeline (``tui.code_theme``, file-extension lexer) while
73
+
keeping the compact boxless card layout.
74
+
-**TUI tool-card diff wrap alignment.** Compact edit/write diffs now render in a three-column
under the code column and repeat the diff sign instead of orphaning at column 0.
77
+
78
+
-**TUI: fix fossilized pinned spinner in interactive mode.** All scrollback emissions in `_PromptLiveView` (content blocks, tool cards, notifications, steer echoes, turn recaps) now route through `run_in_terminal` instead of calling `console.print` directly, preventing prompt_toolkit's ephemeral preamble from being captured into permanent scrollback. `ty` type checker is now blocking for the `pythinker-code` package.
79
+
80
+
-**TUI report prose blocks:** Agent summaries with a parent bullet plus aligned field rows (`Issue` / `Anchor`, `Finding` / `Severity`, etc.) now render as structured blocks with preserved hierarchy, per-block label columns, and correct continuation wrap indent instead of flattening into sibling markdown bullets.
20
81
-**LSP `go_to_implementation` now returns a structured error when the server does not advertise `implementationProvider`** instead of surfacing a raw exception. The client also advertises `implementation` capability during the LSP handshake so servers like Pyright enable the provider automatically.
21
82
-**TUI Rich Live streaming matches interactive smoothness.** Non-interactive
22
83
shell mode now emits stable markdown to scrollback during streams, drains paced
@@ -109,6 +170,8 @@ GitHub Releases page; `0.8.0` is the new starting line.
109
170
version tracking for `didChange`, open-document state cleared on server restart, empty
110
171
diagnostics payloads clear stale entries, and tightened `/usage` activity-argument validation.
111
172
173
+
Upgrade with `pythinker update`, `pip install --upgrade pythinker-code==0.48.0`, or use the native installer for your platform from the [Releases page](https://github.com/Pythoughts-labs/pythinker-code/releases/latest).
174
+
112
175
## 0.47.0 (2026-06-16)
113
176
114
177
-**Plugin marketplaces and activation policy.**`pythinker plugin marketplace` can add,
0 commit comments