You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The CLI adds an opt-in compaction strategy (inference-gateway/cli PR #1629, for issue inference-gateway/cli#1627): compact.strategy: summary | pointer (default summary, env var INFER_COMPACT_STRATEGY). With pointer, a compaction (manual /compact, the auto_at token trigger or the idle trigger) skips the LLM summary call and seeds the continued session with one message that names the previous session id and tells the model to pull details from it via infer conversations show <id>.
The in-repo reference (docs/configuration-reference.md in the CLI repo) was updated in the PR itself. The docs site should mirror the new setting and explain when to pick each strategy. ASCII-only note: use plain hyphens, no en/em dashes.
Acceptance Criteria
The configuration reference page documents compact.strategy (default summary) and the INFER_COMPACT_STRATEGY env var
The compaction or rollover page explains the pointer mode - no summary LLM call, one pointer message naming the previous session id, model reads it back with infer conversations show <id>
Done. The docs site now mirrors the CLI's compact.strategy pointer compaction mode - the change is live on PR inference-gateway/docs#1036 (branch fix/issue-1035, ready for review), and the Roadmap 2026 board item was moved from In progress to QA.
What changed
cli.md - new ### Compaction section in the Configuration area (one commit, docs(cli): document compact.strategy pointer compaction mode):
Documents the full compact.* block in a YAML example with defaults and env vars: enabled (INFER_COMPACT_ENABLED), auto_at (INFER_COMPACT_AUTO_AT), keep_first_messages (INFER_COMPACT_KEEP_FIRST_MESSAGES), strategy (default summary, INFER_COMPACT_STRATEGY), rollover_on_idle_minutes and summary_max_tokens (INFER_COMPACT_SUMMARY_MAX_TOKENS).
Explains the three triggers (auto_at token threshold, idle rollover, manual /compact) and the default summary strategy: one extra LLM call writing the structured checkpoint (Objective, Important Details, Work State, Next Move, Relevant Files), empty-summary abort behavior.
Explains pointer mode per the acceptance criteria: no summary LLM call, the continued session is seeded with one message opening with the --- Context Summary --- marker that names the previous session id, which the model reads back with infer conversations show <id> - the exact message shape is shown verbatim from the upstream diff.
Guides when to pick each: summary for a self-contained continued session (deleted/unreadable old sessions, memory backend), pointer for lossless, on-demand retrieval on durable storage (long-lived channel/headless sessions on jsonl/sqlite, saving the summarizer call and its summary_max_tokens budget). Also the safe fallbacks: unknown strategy logs a warning and falls back to summary, and a pointer compaction with no session id to point at leaves the history untouched.
Cross-linked the headless "Session rollover" bullet and the "Token optimization and compaction" feature bullet to the new section.
Validation
bun run lint:md, bun run format:check and bun run build all pass.
Skipped/risks: per the repo convention I documented this as a section inside cli.md rather than a new standalone page, and I did not touch the built-in shortcuts table (the manual trigger is referenced as /compact per the issue and upstream PR). Upstream PR 1629 is still open - if its reference docs change before merge, re-sync this section; noted in the PR body.
Activity
edenreich commentedon Oct 28, 2026
@infer can you document this?
inference-gateway-maintainer commentedon Oct 28, 2026
Model:
ollama_cloud/glm-5.3-flash· Action:v0.59.1· CLI:v0.237.0· Gateway:v0.60.1· View JobTodos
Pull Request
#1036
✅ Infer Result: Success
Done. The docs site now mirrors the CLI's
compact.strategypointer compaction mode - the change is live on PR inference-gateway/docs#1036 (branchfix/issue-1035, ready for review), and the Roadmap 2026 board item was moved from In progress to QA.What changed
cli.md- new### Compactionsection in the Configuration area (one commit,docs(cli): document compact.strategy pointer compaction mode):compact.*block in a YAML example with defaults and env vars:enabled(INFER_COMPACT_ENABLED),auto_at(INFER_COMPACT_AUTO_AT),keep_first_messages(INFER_COMPACT_KEEP_FIRST_MESSAGES),strategy(defaultsummary,INFER_COMPACT_STRATEGY),rollover_on_idle_minutesandsummary_max_tokens(INFER_COMPACT_SUMMARY_MAX_TOKENS).auto_attoken threshold, idle rollover, manual/compact) and the defaultsummarystrategy: one extra LLM call writing the structured checkpoint (Objective, Important Details, Work State, Next Move, Relevant Files), empty-summary abort behavior.--- Context Summary ---marker that names the previous session id, which the model reads back withinfer conversations show <id>- the exact message shape is shown verbatim from the upstream diff.summaryfor a self-contained continued session (deleted/unreadable old sessions,memorybackend),pointerfor lossless, on-demand retrieval on durable storage (long-lived channel/headless sessions onjsonl/sqlite, saving the summarizer call and itssummary_max_tokensbudget). Also the safe fallbacks: unknown strategy logs a warning and falls back tosummary, and a pointer compaction with no session id to point at leaves the history untouched.Validation
bun run lint:md,bun run format:checkandbun run buildall pass.docs/configuration-reference.mdenv list.Skipped/risks: per the repo convention I documented this as a section inside
cli.mdrather than a new standalone page, and I did not touch the built-in shortcuts table (the manual trigger is referenced as/compactper the issue and upstream PR). Upstream PR 1629 is still open - if its reference docs change before merge, re-sync this section; noted in the PR body.Model:
ollama_cloud/glm-5.3-flash· Action:v0.59.1· CLI:v0.237.0· Gateway:v0.60.1· Exit Code:0· Duration: 5m 46sTokens: 2,319,050 in · 23,088 out · 2,342,138 total (35 requests)
Tool calls: 55 total · 100% success rate
Traces
Stats
Triggered by edenreich · Infer Action · OSS
inference-gateway-releaser commentedon Oct 31, 2026
🎉 This issue has been resolved in version 0.9.23 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀