Releases: yourChainGod/cursor2api-go
Releases · yourChainGod/cursor2api-go
v2026.03.15
更新日志
核心修复
- 修复上下文混乱:移除 AI 摘要功能(SummarizeMiddleMessages),根治"干完一件事又回到上一件"的问题
- 修复消息截断污染:不再注入占位符文本,直接丢弃超长旧消息
- 增强上下文保留:protectedTail 从 6 提升至 10,保留更多当前任务上下文
- 清洗 Claude Code 泄露:过滤 system prompt 中的身份标记和
<system-reminder>标签
功能增强
- 新增
-thinking模型变体自动展开(如claude-sonnet-4.6-thinking) - 新增
enable_thinking全局配置项(YAML / 环境变量) - 新增
reasoning_content字段(OpenAI 兼容 thinking 模式) - 动态 tool result 预算:根据上下文大小自适应 4K-15K
- 大工具集压缩(>25 tools 时启用激进模式,~135K → ~15K)
- 新增 Dockerfile 多阶段构建 + docker-compose.yml
稳定性改进
- Auth 中间件改用配置传参,不再依赖
os.Getenv - CORS 增加
anthropic-*/x-stainless-*请求头 - Chrome 指纹版本更新至 131-140
- 非工具模式也支持截断续写(Tier 3-4)
- 清理 8 个废弃工具函数
下载
| 文件 | 平台 |
|---|---|
cursor2api-go-linux-amd64 |
Linux x86_64 |
cursor2api-go-linux-arm64 |
Linux ARM64 |
cursor2api-go-darwin-arm64 |
macOS Apple Silicon |
v2026.03.14.2
更新内容
- chore: add deploy.sh — build 3 platforms + GitHub release + restart service
- fix: rewrite isTruncated, skip tier loop on complete tool call, suppress thinking in tools mode
- fix: upgrade context trimming to progressive compression (truncate old msgs before dropping)
- fix: trim oversized context before sending to Cursor upstream
- fix: prevent slice-bounds panic in ParseToolCalls when spans overlap
- chore: update .env.example to remove OCR config
- docs: update README with fork sources, improvements, and release download
- feat: show full API key in startup logs for easy copy
- feat: remove local OCR, auto-generate config.yaml with sk- key on first start
下载说明
| 平台 | 文件 |
|---|---|
| Linux x86_64 | cursor2api-linux-amd64 |
| Windows x86_64 | cursor2api-windows-amd64.exe |
| macOS Apple Silicon | cursor2api-darwin-arm64 |
首次运行自动生成 config.yaml,包含随机 API Key。
v2026.03.14
二进制发布
cursor2api-linux-amd64— Linux x86_64cursor2api-windows-amd64.exe— Windows x86_64cursor2api-darwin-arm64— macOS Apple Silicon
首次运行会自动生成 config.yaml,含随机 sk- API Key。