Skip to content

fix(selection-voice): 修复 EditPlan 解析失败并支持格式/提示词配置 - #1077

Merged
H-Chris233 merged 3 commits into
Open-Less:betafrom
HKLHaoBin:fix/selection-voice-editplan-prompt-format
Sep 15, 2026
Merged

H-Chris233 merged 3 commits into
Open-Less:betafrom
HKLHaoBin:fix/selection-voice-editplan-prompt-format

Conversation

@HKLHaoBin

Copy link
Copy Markdown
Contributor

变更

  • 修复选区语音 EditPlan 生成误走听写润色 user framing、模型输出正文导致解析失败的问题。
  • 支持 XML / JSON EditPlan 格式选择,并按用户选择的格式优先解析、另一种格式兜底。
  • 支持设置自定义 EditPlan system prompt;未设置时按「设置自定义 → 风格包 → 内置默认」解析。
  • 参考 folia-major 增强 JSON 输出契约、代码围栏/平衡 JSON 提取与解析容错。
  • EditPlan 转换失败时保留模型原始输出,并在 QA 面板展示,便于用户诊断。
  • 修复风格包保存时 voiceEditPrompt 丢失的问题。

验证

  • Bugbot:无 bug
  • Linux core / frontend / Android / macOS / Windows CI:通过
  • Android APK、Windows、macOS、Linux 桌面构建:通过

关联问题

Closes #1076
Related to #900

HKLHaoBin and others added 3 commits September 14, 2026 22:42
避免听写润色 framing 覆盖 EditPlan 契约;支持风格包/自定义提示词、格式优先级与解析失败时展示模型原文。

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@H-Chris233
H-Chris233 merged commit 9b55ae1 into Open-Less:beta Sep 15, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

选区语音编辑:EditPlan 解析失败(模型输出正文而非结构化方案)

2 participants