Skip to content

修复 docs/v2/zh/docs/harness/memory.md 文档描述错误 - #3232

Closed
xin-xin-obj wants to merge 1 commit into
agentscope-ai:mainfrom
xin-xin-obj:patch-1
Closed

xin-xin-obj wants to merge 1 commit into
agentscope-ai:mainfrom
xin-xin-obj:patch-1

Conversation

@xin-xin-obj

Copy link
Copy Markdown

问题说明

原文档描述:disableMemoryHooks() 是核选项

修改内容

  • 修改 disableMemoryHooks() 是可选项

AgentScope-Java Version

v2

Description

修改doc文档文本描述错误

Checklist

Please check the following items before code is ready to be reviewed.

  • Code has been formatted with mvn spotless:apply
  • All tests are passing (mvn test)
  • Javadoc comments are complete and follow project conventions
  • Related documentation has been updated (e.g. links, examples, etc.)
  • Code is ready for review

## 问题说明
原文档描述:`disableMemoryHooks()` 是核选项
## 修改内容
- 修改 `disableMemoryHooks()` 是可选项
@CLAassistant

CLAassistant commented Sep 21, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@codecov

codecov Bot commented Sep 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@oss-maintainer oss-maintainer left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Summary

Thanks for the docs fix, @xin-xin-obj — and for the clear PR description. One thing though: the 核选项 wording looks intentional rather than a typo. It translates the English page (docs/v2/en/docs/harness/memory.md:268), which calls .disableMemoryHooks() "the nuclear option for background memory work", and the surrounding text (关掉 flush + 后台维护, "两者一起用时还会跳过 <memory_context> 注入") really does describe an all-or-nothing switch. Changing it to 可选项 would flip the meaning of the sentence and desync the ZH page from EN. Details in the inline comment. Leaving this to the maintainers to weigh in.


Automated review by github-manager-bot

两者一起用时,还会跳过 `<memory_context>``MEMORY.md`)注入,但保留 Domain Knowledge / AGENTS / knowledge 上下文。

`disableMemoryHooks()` 是核选项;只想节流不想关,用 `.memory(MemoryConfig.builder().flushTrigger(...).build())`
`disableMemoryHooks()` 是可选项;只想节流不想关,用 `.memory(MemoryConfig.builder().flushTrigger(...).build())`

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This sentence is a deliberate translation of the English doc, not a typo. The English page at docs/v2/en/docs/harness/memory.md:268 reads:

disableMemoryHooks() is the nuclear option for background memory work; if you only want to throttle, use .memory(MemoryConfig.builder().flushTrigger(...).build()) instead.

核选项 renders "nuclear option" (i.e. the drastic, all-or-nothing switch). Changing it to 可选项 ("an optional choice") reverses the meaning: the whole section is warning users that this call disables flush and background maintenance at once, and the second half of the sentence (只想节流不想关 — "if you only want to throttle...") only makes sense as a contrast against a heavyweight switch. As 可选项 the sentence no longer conveys a trade-off and would read as odd to native speakers.

If 核选项 feels too literal, a more natural rendering that keeps the original intent would be disableMemoryHooks() 是「一刀切」的总开关 — but as it stands I'd suggest keeping the current wording so the ZH and EN pages stay in sync.

Happy to re-review if you retarget the PR at a different phrasing or find another wording issue in this file.

@jujn

jujn commented Sep 22, 2026

Copy link
Copy Markdown
Collaborator

感谢贡献,不过这种逐字较真没必要

@jujn jujn closed this Sep 22, 2026
@xin-xin-obj
xin-xin-obj deleted the patch-1 branch September 22, 2026 11:57
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.

4 participants