Skip to content

fix(v3-dev): 修复对话调度、上下文与记忆链路,整理配置页 - #262

Merged
MiaowFISH merged 31 commits into
YesWeAreBot:v3-devfrom
xhcz:fix/v3-dev-audit-integration-20261106
Nov 14, 2026
Merged

MiaowFISH merged 31 commits into
YesWeAreBot:v3-devfrom
xhcz:fix/v3-dev-audit-integration-20261106

Conversation

@xhcz

@xhcz xhcz commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

修复了一些已知问题,完善对话调度、上下文维护和工具执行。- Tibo重置了?真的假的

  • 修复启动期间丢失消息触发、已准入续接轮次中断的问题,完善后台任务完成后的回复调度。
  • 执行 history.clear -a all 时同步重置意愿与调度状态,取消旧回复、日记和画像任务,阻止延迟结果写回
  • 修复 OneBot 单条回执仅有消息 ID 时无法回读正文的问题。发送中断时保留已确认送达的信息,防止重复发送。
  • 完善工具授权、超时、只读动作失败恢复和原生工具调用纠错。修复模型请求重试、用量归属及 Anthropic 扩展思考与工具选择的兼容问题。
  • 修复人物查询、画像冲突和无效总结反复校验的问题。人物记忆清理改为分批查询与删除,L3 自动日记失败后进入冷却。
  • 重新组织了Koishi的配置页

Python 执行器改用 Linux bubblewrap + CPython 沙箱。使用该扩展的部署需要准备沙箱根文件系统并配置 sandboxRoot。

xhcz and others added 30 commits October 25, 2026 09:29
整合 YesWeAreBot#253、YesWeAreBot#255、YesWeAreBot#257、YesWeAreBot#258、YesWeAreBot#259、YesWeAreBot#260、YesWeAreBot#261,保留续接与消息送达保护。

修正消息消费凭据、首次启动唤醒、触发来源恢复、图片范围与预设输出协议;隔离动态模板数据;补齐人物快照失效、日程授权与实例范围;统一工具授权、超时、参数描述及后台结果检查;修复模型超时、原生工具纠错与用量结算;将 Python 执行移至独立 Linux 沙箱。

Co-authored-by: Codex <codex@openai.com>
保留近期图片供后续问题使用,按实际附图过滤辅助识图;协调工具等待预算和送达回执,补齐格式纠正与读取失败恢复。按用途整理原生配置页并保留原配置路径。

Co-authored-by: Codex <codex@openai.com>
统一清理生命周期,取消旧任务并拒绝迟到写入;重置意愿和调度状态,按归属清理人物数据。修复发送回读、近期附图、诊断重复回灌、人物查询和总结纠错,完善模型失败分类与日记冷却。

Co-authored-by: Codex <codex@openai.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 13, 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-13T06:41:27.671713Z 2b4a67b 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.

@coderabbitai

coderabbitai Bot commented Nov 13, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 61a7fff5-b576-4761-aaeb-43bfdabb2155

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • 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

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2b4a67b8fd

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +691 to +693
if (choice?.delta?.tool_calls?.length) {
this.hasTools = true;
for (const call of choice.delta.tool_calls) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Clear the first-token timeout on raw tool-call deltas

With native tool calling enabled against a standard OpenAI-compatible stream, a response containing only delta.tool_calls never invokes the stream-start callback here. The new singleStep path bypasses streamText's onEvent, which previously signaled tool-call activity, so RequestExecutor's first-token timer remains armed after arguments start arriving. A tool response that finishes after the default 15-second first-token timeout is therefore aborted and retried despite arriving promptly and fitting within totalTimeout. Invoke the stream-start hook for ordinary tool-call deltas as well as the internal native-activity marker.

Useful? React with 👍 / 👎.

const originalBinding = binding();
const target = { platform: session.platform, channelId: conversationChannelId(session)! };
const world = this.ctx.yesimbot.world;
const page = await world.recallContext(session, { kind: "l2", limit: 20 });

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Read the newest L2 chunks for daily-plan context

When a configured memory source contains more than 20 L2 chunks, this request reads its oldest 20 chunks: recallRawPage sorts L2 records by startTimestamp: "asc" and defaults to offset zero. Recent events are consequently excluded from schedule generation. Once the page already has hasMore: true, appending newer chunks also leaves the source fingerprint unchanged, so reading today's schedule continues to accept the stale plan. Retrieve a latest or time-bounded set of chunks rather than the first ascending page.

Useful? React with 👍 / 👎.

@MiaowFISH
MiaowFISH merged commit 2b4a67b into YesWeAreBot:v3-dev Nov 14, 2026
3 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.

2 participants