polish: refine ROLE_BLOCK to preserve user intent#410
Merged
Conversation
把 polish 提示词从"严苛不允许"语气改回贴近用户原意的整理姿态: - 先分析用户意图,再贴合原本句子做语法整理与必要的结构化 - 措辞优先用原句字面词;理解到的意图用来贴近原话,而不是替用户重写或扩写 - 不创作 / 不补充用户没说过的内容 - 转写里若有未解决问题或待确认事项,全部列为条目保留,不省略也不替用户判断 - 用户意图难以判断时不强行推断,改为只做句子层面整理(标点 / 断句 / 口癖去除) - 不引用任何会话历史 / 外部知识 / 模型记忆,每次请求独立任务 行为差异:相对于已发布版本,新增"列出未解决问题"规则;移除"补充功能清单" 那一条(与新的"列为条目保留"语义已经覆盖)。
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
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.
User description
Summary
行为差异
相对于已发布版本,新增 "列出未解决问题" 规则;将 "补充功能清单" 那条合并到新的 "列为条目保留" 语义里。
Test plan
PR Type
Enhancement
Description
Prioritize user intent before polishing
Preserve questions and unresolved items
Avoid inventing extra details
Fallback to sentence-level cleanup
Diagram Walkthrough
File Walkthrough
polish.rs
Rework polishing prompt to preserve intentopenless-all/app/src-tauri/src/polish.rs
ROLE_BLOCKto first understand user intent, then polish theoriginal wording.
preserved items.
details, or feature lists.
sentence-level cleanup.