Repository navigation
fix(crates/panache-mcp): 已给正文时直接建稿,续改时找回原稿 - #67
Merged
Merged
Conversation
背景:用户给了新作业正文并想看第一页时,模型可能先去翻旧稿,找不到便要求补传纸张。 解决手段:在启动说明和建稿、查稿两个工具入口说明如何从当前正文开始,以及何时应找回之前的稿件。 收益:新作业可以直接建稿并预览第一页,续改时仍能找回对应的旧稿。
Reviewer's GuideAPIClarify that newly supplied content should be saved before previewing, while lookup is reserved for requests to find or resume an existing draft.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
背景:新增分流说明使用了中文整句,与现有英文工具描述不一致,原实验也未单独控制语言。 解决手段:在相同位置使用等义英文说明,并用相同中文请求对照两种版本。 收益:保持工具说明语言一致,同时保留按请求区分新建和续改的行为。
SXP-Simon
marked this pull request as ready for review
November 27, 2026 07:27
|
Sorry @SXP-Simon, you've used your own review budget of 250,000 diff characters for the last 7 days. You can request another review in 2 days and 21 hours by commenting |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
用户碰到了什么
用户说「帮我把下面的作业写好,先看第一页。第一题:循环从 i = 1 开始,直到 i = 10 结束。」Luna 把“第一页”理解成已有作业的第一页,于是查找本地旧稿。查空后它让用户补照片;有其他作业时,它有时打开了不相关稿件的预览。#66 的默认作业字体要在建稿时才生效,这次问题发生得更早。
改动
调整 MCP 启动说明,以及
save_section、list_drafts的工具说明。用户在聊天里贴了新题目或正文并要求查看第一页时,先建稿,再按返回的稿件编号预览。用户明确要找回或继续编辑已存稿件时,使用旧稿入口。只改一个 Rust 文件,没有增加工具或参数。真实 Luna 对照
Windows,真实 stdio MCP、
gpt-6-luna、低推理强度。基线是合并 #66 后的main@a3928c0。每格三次独立会话,完整转发启动说明,用户正文和模型配置相同。两份预置稿为《实验作业》和《周会通知》,每次从同一初始数据库的副本开始。新建验收核对了第一步是否调用
save_section、只有一个新增编号、已存稿无变化,以及返回的第一页图片是否属于新稿。续改验收核对原编号、温度从 18 度改为 21 度、同页的日期仍为周三、另一份稿件完整保留,以及预览对应修改后版本。单独看到“调用了预览”不算通过:第一版曾成功预览无关旧稿,计为失败。第一轮在握手开头和两个工具描述里加入了中文引导。与第一版英文同时有位置和含义的差异,这组结果不足以归因于语言。
等义英文复验(5d3ea00)。 保持提示位置、用途和模型配置相同,另开独立会话对照中文候选和当前全英文新增说明。用户始终用同一句中文提问。中文候选和等义英文在空库建稿各 3/3、有无关旧稿时新建各 3/3、续改原稿各 3/3。英文另测省略启动说明的三种情况 6/6,以及换一种中文说法新建 2/2。最终提交将本 PR 新增的三处说明统一为英文。此批小样本没有观察到需要混用两种语言的收益。
补充验证与边界
Summary by Sourcery
Ensure new writing requests create the intended draft before its first page is previewed, while preserving explicit saved-draft continuation behavior.
Bug Fixes:
Enhancements: