Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects, and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
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 }}
wanxunyang
mocode
Repository navigation
Code
Issues
Pull requests
Discussions
Actions
Projects
Wiki
Security and quality
Insights
More
items
Releases
v1.8.0
v1.8.0
Latest
Latest
Compare
Choose a tag to compare
Sorry, something went wrong.
Filter
Loading
Sorry, something went wrong.
Uh oh!
There was an error while loading.
Please reload this page
.
No results found
wanxunyang
released this
17 Oct 17:59
·
67 commits
to main since this release
v1.8.0
aaed39f
更新内容
edit_file 新增 replacements[] 多替换模式:一次调用原子修改同一文件多处,每个替换块须在原文唯一命中且区间不重叠,任一不满足则整体不写入;配套多 hunk diff 展示真实文件行号。
修复长内容写入时工具参数被 max_tokens 截断导致的「arguments 不是合法 JSON」:贯通 OpenAI/Anthropic/Vertex 的 finish_reason,报错按截断、裸换行、转义错误分级,长参数只回显首尾片段,并给出分段续写(append)/缩短 old_string 等可执行恢复建议。
write_file 与 edit_file 明确分工:已有文件的局部修改默认用 edit_file,write_file 仅限新建、追加或近乎整篇重写,减少无谓全文重写。
MAX_TOKENS 预设化:模型预设支持 maxTokens,从模型目录添加时自动取官方最大输出(缺失则留空不硬编码);/model 向导可设置、/model show 可查看,切换预设即时生效。
You can’t perform that action at this time.