# Coder Studio v0.4.3

## 中文

### 这个版本为什么重要

`v0.4.3` 是一次非常聚焦的可靠性补丁，目标只有一个：让终端恢复在边界情况下也不要把输出弄丢。它修复了 noop / closed reconcile 时 live chunk 被卡住的问题，也修掉了 snapshot hydration 后补刷 live chunk 时意外清空终端内容的回放错误，并顺手加固了更新后的重启交接。

实际体验上，这个版本意味着：

- 短暂断线或恢复后，终端输出更不容易卡住或消失
- 快照恢复后的后续 live 输出不会再把已有终端内容清空
- 通过应用内更新触发重启时，交接行为更稳

### 这个版本包含哪些变化

- 完成 terminal recovery replay 对 noop 和 closed reconcile 决策的覆盖
- 修复 snapshot hydration 之后队列中的 live chunks 回放时重置 xterm 的问题
- 修复 auto-update restart handoff
- 补上针对 noop recovery 与 snapshot-plus-pending-chunks 场景的回归覆盖

### 谁最受益

- 运行长时间 AI 编码任务的用户
- 经常遇到短暂网络抖动、刷新或恢复场景的开发者
- 使用应用内更新流程并希望重启切换更平滑的自托管用户

### 安装或升级

```bash
npm install -g @spencer-kit/coder-studio
coder-studio open
```

### 完整变更

- [Compare `v0.4.2...v0.4.3`](https://github.com/spencerkit/coder-studio/compare/v0.4.2...v0.4.3)

## English

### Why this release matters

`v0.4.3` is a tightly focused reliability patch with one clear goal: terminal recovery should not lose output in edge cases. It fixes the case where live chunks could get stranded after noop or closed reconcile decisions, prevents snapshot-following live replay from wiping the terminal body, and hardens the restart handoff used by the update flow.

In practice, this release means:

- terminal output is less likely to stall or disappear after a short disconnect or recovery cycle
- live output flushed after snapshot hydration no longer clears the terminal body
- restart handoff is steadier when an in-app update triggers a restart

### Included in v0.4.3

- complete terminal recovery replay handling for noop and closed reconcile decisions
- fix the xterm reset path for queued live chunks flushed after snapshot hydration
- repair the auto-update restart handoff
- add regression coverage for noop recovery and snapshot-plus-pending-chunks recovery paths

### Who benefits most

- users running long AI-assisted coding tasks
- developers frequently hitting reconnect, refresh, or recovery scenarios
- self-hosters using the in-app update flow and expecting smoother restart transitions

### Install or upgrade

```bash
npm install -g @spencer-kit/coder-studio
coder-studio open
```

### Full changelog

- [Compare `v0.4.2...v0.4.3`](https://github.com/spencerkit/coder-studio/compare/v0.4.2...v0.4.3)
