Skip to content

fix(prompts): 精简聊天表达并恢复分条习惯(v3.18.7) - #112

Merged
69gg merged 2 commits into
mainfrom
bugfix/concise-natural-replies
Oct 24, 2026
Merged

69gg merged 2 commits into
mainfrom
bugfix/concise-natural-replies

Conversation

@69gg

@69gg 69gg commented Oct 24, 2026 •

Copy link
Copy Markdown
Owner

变更说明

日常回复缺少明确的篇幅、分条与标点偏好,容易扩成长段说明。本 PR 将默认表达调整为简短口语,恢复独立意思分消息、QQ 少空行和日常短答省句号的规则;正式长文、完整步骤、代码与用户指定格式仍保留所需细节和结构。

影响范围

  • 同步两套主提示词、每轮提醒和对话示例,减少铺垫、复述、固定开场与总结。
  • 补充共用表达规范的一致性检查,防止只更新一个提示词变体,同时允许正常润色措辞。
  • 更新至 3.18.7,同步 Python、Console、Chat 的版本与锁文件,并补充主题化 changelog。

关联 Issue

无。

自检

  • 提交钩子的 Ruff 格式检查、Ruff lint、mypy 通过。
  • uv run pytest tests/ --cov --cov-report=term:4591 passed、2 skipped,覆盖率 70.27%,达到 65% 门槛。
  • npm --prefix apps/undefined-console run check 通过。
  • npm --prefix apps/undefined-chat run check 通过,包含 507 项单元测试、50 项端到端测试、生产构建回归及 76 项 Rust 测试。
  • uv run python scripts/release_notes.py validate --tag v3.18.7 通过。
  • uv build --wheel 通过,wheel 内的两套主提示词、每轮提醒与 changelog 均与源码一致。
  • git diff --check 与两个提交的 GPG 签名验证通过。

备注

当前验证覆盖提示词规则、组装、版本一致性与打包;实际模型的语气效果尚需实聊验证。

Summary by CodeRabbit

  • Improvements
    • Everyday replies are shorter and more natural, with less unnecessary buildup and repetition.
    • Independent ideas or results are sent as separate messages, while related points stay together.
    • QQ messages use fewer blank lines, and short replies generally omit a final period.
    • Formal writing, complete instructions, code, and WebUI or WeChat Markdown retain appropriate detail, punctuation, and formatting. User-requested length, style, and format take priority.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-10-24T02:45:32.567690Z
We couldn’t complete this review. Comment @codex review to try again.
078fe7a PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@coderabbitai

coderabbitai Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
Commits

Reviewing files that changed from the base of the PR and between e2db73a and 078fe7a.

Files ignored due to path filters: 5
  • apps/undefined-chat/package-lock.json is excluded by !**/package-lock.json
  • apps/undefined-chat/src-tauri/Cargo.lock is excluded by !**/*.lock
  • apps/undefined-console/package-lock.json is excluded by !**/package-lock.json
  • apps/undefined-console/src-tauri/Cargo.lock is excluded by !**/*.lock
  • uv.lock is excluded by !**/*.lock
Files selected for processing: 14
  • CHANGELOG.md
  • apps/undefined-chat/package.json
  • apps/undefined-chat/src-tauri/Cargo.toml
  • apps/undefined-chat/src-tauri/tauri.conf.json
  • apps/undefined-console/package.json
  • apps/undefined-console/src-tauri/Cargo.toml
  • apps/undefined-console/src-tauri/tauri.conf.json
  • docs/usage.md
  • pyproject.toml
  • res/IMPORTANT/each.md
  • res/prompts/undefined.xml
  • res/prompts/undefined_nagaagent.xml
  • src/Undefined/__init__.py
  • tests/test_prompt_structure.py

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.

Walkthrough

The release updates both prompt variants and related guidance with concise everyday reply preferences, message-splitting rules, and QQ spacing and punctuation conventions. It adds tests for shared prompt guidance and updates project, package, and application versions to 3.18.7.

Changes: Reply Style Guidance

Layer / File(s) Summary
Update reply guidance and examples
res/prompts/undefined.xml, res/prompts/undefined_nagaagent.xml, res/IMPORTANT/each.md, docs/usage.md, tests/test_prompt_structure.py, CHANGELOG.md
Both prompts and related guidance describe brief everyday replies, separate delivery of independent ideas, and QQ spacing and punctuation preferences. Formal content, complete tasks, and user-requested formats retain their requirements. A parameterized test checks that selected guidance appears once and matches across both prompt variants.
Update release metadata
apps/undefined-chat/{package.json,src-tauri/Cargo.toml,src-tauri/tauri.conf.json}, apps/undefined-console/{package.json,src-tauri/Cargo.toml,src-tauri/tauri.conf.json}, pyproject.toml, src/Undefined/__init__.py
Project, package, and application version fields change from 3.18.6 to 3.18.7.

Priority: Low

Estimated code review effort: 2 (Simple) | ~12 minutes

Change: Bug fix

Merge Risk: Minimal · up to 078fe

The reply-style and version updates appear mergeable after normal checks. Actual conversational tone can be evaluated in use.

Pre-merge checks: Passed 5
Check name Status Explanation
Title check Passed The title is in Chinese and reads: "fix(prompts): tighten chat expression and restore per-message splitting (v3.18.7)". It names the main change: the default reply style is made shorter and more collo…
Description check Passed The description follows the template well. It has a change summary (变更说明) explaining the default expression change and why it is needed. It has an impact scope (影响范围) listing the prompts, reminders, e…
Docstring Coverage Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 3 functions across 2 files. (12 skipped: 1…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title is in Chinese and reads: "fix(prompts): tighten chat expression and restore per-message splitting (v3.18.7)". It names the main change: the default reply style is made shorter and more colloquial, and the prompt rules for splitting independent ideas into separate messages, fewer blank lines on QQ, and omitting periods in short replies are restored. It matches the changeset, which edits the two main prompt files, the reminder text, the examples, and adds a consistency test. The version tag in parentheses is extra detail but does not make the title misleading.

Full details: Description check

Explanation

The description follows the template well. It has a change summary (变更说明) explaining the default expression change and why it is needed. It has an impact scope (影响范围) listing the prompts, reminders, examples, consistency test, and version bump. It has a self-check list with results, and it has a remarks section noting that real-model tone still needs live chat testing. The related-issue section is filled in as 无 (none), which is valid. Ruff, mypy, and pytest are all marked as checked. The template's Chinese headings and structure are kept. The WebUI/Tauri screenshot item is unchecked, but the PR does not change those interfaces, so this does not block merge. The 'Closes/Refs' line is explicitly marked none. Overall the description is complete.

Full details: Docstring Coverage

Explanation

Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 3 functions across 2 files. (12 skipped: 12 unsupported.)

Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@69gg
69gg merged commit 2680cf2 into main Oct 24, 2026
6 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.

1 participant