v0.4.1

max-sixty/worktrunkv0.4.1Oct 6, 2026by github-actions[bot]

Upgrading?

AI Summary

This release focuses on critical stability and usability improvements for the Windows TUI, specifically addressing clipboard functionality and crash bugs during window resizing. It also introduces an interactive interface for editing LLM settings directly within the terminal.

Key Highlights

  • Windows TUI paste functionality fixed using direct Win32 API calls instead of PowerShell subprocesses.
  • Fixed critical crash and window disappearing issues during Windows maximize/fullscreen transitions.
  • Added `/config` LLM settings interactive interface within the TUI.
  • Fixed single-turn REPL chat to properly display LLM errors instead of silencing them.

New Features

  • Interactive LLM configuration interface in TUI

Full Release Notes

# VulnClaw v0.4.1

Windows TUI 粘贴/闪退修复 + REPL LLM 错误显示。

## 修复与改进

- **修复 Windows TUI 无法粘贴** — Windows 无 bracketed paste(crossterm 0.28 仅在 Unix 解析该序列),`Ctrl+V` 此前落入空分支被静默丢弃;现在 `Ctrl+V` / `Shift+Insert` / 鼠标右键三个触发器均直接读取系统剪贴板粘贴到输入框(#296)
- **剪贴板访问改为 Win32 API 直调** — TUI 的复制/粘贴不再通过 powershell.exe 子进程(每次需 1-3 秒 .NET 冷启动),改为 FFI 直调 `OpenClipboard`/`GetClipboardData`/`SetClipboardData`,微秒级完成且零新增依赖;同时消除复制路径的临时文件落盘(#296)
- **修复剪贴板子进程隐藏 TUI 窗口的问题** — 从 TUI 内 spawn powershell.exe 时 `-WindowStyle Hidden` 会隐藏 TUI 自身的共享控制台窗口(表现为按粘贴键整个窗口"消失");全部剪贴板子进程改用 `CREATE_NO_WINDOW` 创建标志(#296)
- **修复 Windows 最大化/全屏切换闪退** — 控制台缓冲区重建/ConPTY 管道瞬断期间的 size/draw/poll/read 错误不再直接退出进程:瞬时错误按 75ms 退避重试(连续 40 次上限),单帧渲染 panic 仅跳过该帧;致命路径跳过 ratatui Terminal Drop 的 stderr 打印并改为写 `%TEMP%\vulnclaw-tui-panic.log` 后干净退出;resize 后退避一帧避免与 conhost 内部重排竞态(#298)
- **新增 TUI `/config` LLM 设置交互界面** — provider 模板、模型、API key 等字段可在 TUI 内直接编辑并保存(#291)
- **修复单轮 REPL 聊天不显示 LLM 错误** — 单轮对话中 LLM 调用失败此前静默无输出,现在错误信息直接展示(#292)
- **修复报告重放示例的请求字段** — fetch 重放示例保留完整请求字段,覆盖请求体同时同步更新 Content-Length(#283、#287)
- **修复 docker 构建缺 `protocol/` 目录** — hatchling force-include 在镜像构建中可正确解析(#285)
- **修复 openai<1.55.3 + httpx>=0.28 组合的 proxies TypeError** — 依赖组合守卫(#289)

## 安装

```bash
pip install vulnclaw==0.4.1
```

**Full Changelog**: https://github.com/Netw0rkNoob/VulnClaw/compare/v0.4.0...v0.4.1

Related Repositories