docs(compaction): clarify valid modes and fix self-referential link#10466
Open
chelixbot wants to merge 1 commit intoopenclaw:mainfrom
Open
docs(compaction): clarify valid modes and fix self-referential link#10466chelixbot wants to merge 1 commit intoopenclaw:mainfrom
chelixbot wants to merge 1 commit intoopenclaw:mainfrom
Conversation
- Add 'Compaction modes' section documenting valid modes (default, safeguard) - Fix Configuration section link that pointed to itself - Link now points to gateway/configuration with anchor Addresses openclaw#10395
| ## Configuration | ||
|
|
||
| See [Compaction config & modes](/concepts/compaction) for the `agents.defaults.compaction` settings. | ||
| See [Gateway configuration](/gateway/configuration#agentsdefaultscompaction-reserve-headroom--memory-flush) for the full `agents.defaults.compaction` settings, including `reserveTokensFloor` and `memoryFlush` options. |
Contributor
There was a problem hiding this comment.
Broken docs anchor link
The new link target (/gateway/configuration#agentsdefaultscompaction-reserve-headroom--memory-flush) doesn't match the actual heading anchor in docs/gateway/configuration.md (the heading is #### agents.defaults.compaction (reserve headroom + memory flush)), and the grep check shows no agentsdefaultscompaction anchor text in that file. As written, this will 404/scroll to the wrong place in Mintlify. Please update the fragment to the real slug for that heading (or link to the section without a fragment).
Prompt To Fix With AI
This is a comment left during a code review.
Path: docs/concepts/compaction.md
Line: 35:35
Comment:
**Broken docs anchor link**
The new link target `(/gateway/configuration#agentsdefaultscompaction-reserve-headroom--memory-flush)` doesn't match the actual heading anchor in `docs/gateway/configuration.md` (the heading is `#### agents.defaults.compaction (reserve headroom + memory flush)`), and the grep check shows no `agentsdefaultscompaction` anchor text in that file. As written, this will 404/scroll to the wrong place in Mintlify. Please update the fragment to the real slug for that heading (or link to the section without a fragment).
How can I resolve this? If you propose a fix, please make it concise.bfc1ccb to
f92900f
Compare
|
This pull request has been automatically marked as stale due to inactivity. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Clarifies the
compaction.modeconfiguration by:default,safeguard) with descriptions/concepts/compaction(itself) instead of the gateway configuration pageChanges
/gateway/configurationwith anchor to the compaction sectionAddresses
Closes #10395 (compaction.mode documentation unclear)
Testing
z.literal("default"), z.literal("safeguard"))🤖 AI-assisted (Claude via OpenClaw). Lightly tested — docs change only.
Greptile Overview
Greptile Summary
docs/concepts/compaction.mdto clarify what compaction is and that it persists in JSONL history.agents.defaults.compaction.modevalues (default,safeguard).Confidence Score: 4/5
(2/5) Greptile learns from your feedback when you react with thumbs up/down!