Skip to content

fix: 强化关系差异表达与请求注入兼容性(0.8.1) - #64

Merged
timeance merged 1 commit into
mainfrom
fix/relation-behavior-081
Nov 20, 2026
Merged

timeance merged 1 commit into
mainfrom
fix/relation-behavior-081

Conversation

@timeance

Copy link
Copy Markdown
Owner

问题与结果

默认关系提示对熟悉度、好感和信任的表达较笼统,“关系不改变发言策略”的限制也容易弱化语气与相处方式的差异。此次将三者分别映射到熟络程度、情绪回应和善意解释,使不同关系能在原有人格内体现出来,同时保留人格边界、事实标准,以及宿主和其他插件对响应时机、对象和频率的控制。

部分插件复制 ProviderRequest 时会保留已注入的系统提示,却丢失 Bond 私有标记,导致重复注入。现在可从同一消息已冻结的关系快照精确清理旧块,并覆盖路由未命中或异常时的清理路径;不通过标题猜测或删除其他插件内容。

改动

  • 更新默认关系提示,覆盖高好感低信任、低好感高信任及克制、活泼、正式等人格,不要求恋爱化、服从、固定台词或增加回复长度。
  • 保持评分、倍率、存储结构不变;已有自定义模板继续保留,需自行合并新的表达指导。
  • 扩展离线行为评估导出,新增 3 种人格 × 3 种日常场景 × 5 种关系状态,共 45 组对照请求;结果保持空白,供后续真实模型评估。
  • 补充复制请求、重复关系块、外部提示保留及路由清理的回归覆盖,版本更新为 0.8.1。

验证

  • Python 3.12:1878 项通过、1 项跳过。沙箱内首次运行的 8 项 Windows/Git 权限失败,在用户环境中单独重跑后全部通过;跳过项为符号链接权限限制。
  • Node:106 项通过。
  • Black、Ruff、项目检查、仓库检查、git diff --check 通过。
  • AstrBot 4.29.4 实际 ToolLoopAgentRunner 的首轮、工具调用和空回复重试流程通过,使用离线录制 Provider。

以上验证覆盖提示构造和请求兼容性,尚未验证真实模型的回复差异、实际平台完整链路或所有第三方插件组合。跨消息复制系统提示时,调用方仍需保留 Bond 标记或使用未注入的原始宿主提示。

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-20T15:46:42.994550Z 6dd2022 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.

@timeance
timeance merged commit 93b4863 into main Nov 20, 2026
9 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