summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAdam Malczewski <[email protected]>2026-06-22 00:54:32 +0900
committerAdam Malczewski <[email protected]>2026-06-22 00:54:32 +0900
commit28154825fb47248be21a0d64fc36492fb01c9a42 (patch)
tree0291303b4f778f0e86865dd95e7c7dc6c03861f5
parent128e6c04cf2a5de6b005e1293b4ef81c53b20840 (diff)
downloaddispatch-28154825fb47248be21a0d64fc36492fb01c9a42.tar.gz
dispatch-28154825fb47248be21a0d64fc36492fb01c9a42.zip
docs: update compaction handoff with default 350k threshold
-rw-r--r--frontend-compaction-handoff.md10
1 files changed, 8 insertions, 2 deletions
diff --git a/frontend-compaction-handoff.md b/frontend-compaction-handoff.md
index 0514af9..4cce9f5 100644
--- a/frontend-compaction-handoff.md
+++ b/frontend-compaction-handoff.md
@@ -68,12 +68,18 @@ Triggers compaction on demand. Optional JSON body:
## `GET /conversations/:id/compact-threshold` — read threshold
200: `CompactThresholdResponse { conversationId, threshold }`
-`threshold: 0` means auto-compact is disabled (manual only).
+- `threshold: 0` — auto-compact explicitly disabled (manual only).
+- `threshold: null` (not stored) — **default: 350000** (350k tokens). The FE
+ should display 350000 as the default value in the settings UI.
+- Any positive number — auto-compact triggers when the last turn's input tokens
+ exceed this value.
## `PUT /conversations/:id/compact-threshold` — set threshold
Body: `SetCompactThresholdRequest { threshold: number }`
-`threshold: 0` disables auto-compact. Any positive number enables it.
+- `0` explicitly disables auto-compact.
+- Any positive number sets the trigger threshold.
+- To "reset to default", set it to 350000.
200: `CompactThresholdResponse`