From 39f510e91aa3ff19dff986377d9df26f8f61a5bc Mon Sep 17 00:00:00 2001 From: bowenliang123 Date: Tue, 13 Oct 2026 19:50:27 +0800 Subject: [PATCH] doc(client): point the compaction headroom at its upstream default The mirrored headroom has no named constant in dsh-compaction-basic, so there is no symbol to grep for; name the resolveConfig fallback to read instead. --- src/client/reserve.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/client/reserve.ts b/src/client/reserve.ts index b4bbb01..0d57635 100644 --- a/src/client/reserve.ts +++ b/src/client/reserve.ts @@ -16,7 +16,8 @@ /** dsh-compaction-basic's default window fraction for pressure (`DEFAULT_THRESHOLD_RATIO`). */ export const COMPACT_THRESHOLD_RATIO = 0.8 -/** dsh-compaction-basic's default pressure headroom beyond the output reservation. */ +/** dsh-compaction-basic's default pressure headroom beyond the output reservation — read from the + * inline `?? 65_536` in that package's `resolveConfig`. */ export const COMPACT_HEADROOM_TOKENS = 65_536 /** Where the reserve starts and what it is made of, in WINDOW tokens. */