docs: correct compaction prune default (#30670)
This commit is contained in:
parent
b6305cb4cb
commit
9251e5d8c4
@ -146,7 +146,7 @@ export const Info = Schema.Struct({
|
||||
description: "Enable automatic compaction when context is full (default: true)",
|
||||
}),
|
||||
prune: Schema.optional(Schema.Boolean).annotate({
|
||||
description: "Enable pruning of old tool outputs (default: true)",
|
||||
description: "Enable pruning of old tool outputs (default: false)",
|
||||
}),
|
||||
tail_turns: Schema.optional(NonNegativeInt).annotate({
|
||||
description:
|
||||
|
||||
@ -489,13 +489,13 @@ opencode run "Hello world"
|
||||
"$schema": "https://opencode.ai/config.json",
|
||||
"compaction": {
|
||||
"auto": true,
|
||||
"prune": true
|
||||
"prune": false
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
- `auto` - ضغط الجلسة تلقائيًا عند امتلاء السياق (الافتراضي: `true`).
|
||||
- `prune` - إزالة مخرجات الأدوات القديمة لتوفير الرموز (tokens) (الافتراضي: `true`).
|
||||
- `prune` - إزالة مخرجات الأدوات القديمة لتوفير الرموز (tokens) (الافتراضي: `false`).
|
||||
- `reserved` - مخزن مؤقت للرموز (tokens) من أجل الضغط. يترك نافذة كافية لتجنب الفيضان أثناء الضغط.
|
||||
|
||||
---
|
||||
|
||||
@ -489,14 +489,14 @@ Možete kontrolirati ponašanje sažimanja konteksta putem opcije `compaction`.
|
||||
"$schema": "https://opencode.ai/config.json",
|
||||
"compaction": {
|
||||
"auto": true,
|
||||
"prune": true,
|
||||
"prune": false,
|
||||
"reserved": 10000
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
- `auto` - Automatski sažimanje sesije kada je kontekst pun (podrazumevano: `true`).
|
||||
- `prune` - Uklonite stare izlaze alata da sačuvate tokene (podrazumevano: `true`).
|
||||
- `prune` - Uklonite stare izlaze alata da sačuvate tokene (podrazumevano: `false`).
|
||||
- `reserved` - Token buffer za sažimanje. Ostavlja dovoljno prostora da se izbjegne prelijevanje tokom sažimanja
|
||||
|
||||
---
|
||||
|
||||
@ -729,15 +729,15 @@ You can control context compaction behavior through the `compaction` option.
|
||||
"$schema": "https://opencode.ai/config.json",
|
||||
"compaction": {
|
||||
"auto": true,
|
||||
"prune": true,
|
||||
"prune": false,
|
||||
"reserved": 10000
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
- `auto` - Automatically compact the session when context is full (default: `true`).
|
||||
- `prune` - Remove old tool outputs to save tokens (default: `true`).
|
||||
- `reserved` - Token buffer for compaction. Leaves enough window to avoid overflow during compaction
|
||||
- `prune` - Remove old tool outputs to save tokens (default: `false`). Set to `true` to enable pruning.
|
||||
- `reserved` - Token buffer for compaction. Leaves enough window to avoid overflow during compaction.
|
||||
|
||||
---
|
||||
|
||||
|
||||
@ -491,14 +491,14 @@ Du kan styre kontekstkomprimeringsadfærd gennem indstillingen `compaction`.
|
||||
"$schema": "https://opencode.ai/config.json",
|
||||
"compaction": {
|
||||
"auto": true,
|
||||
"prune": true,
|
||||
"prune": false,
|
||||
"reserved": 10000
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
- `auto` - Komprimer automatisk sessionen, når konteksten er fuld (standard: `true`).
|
||||
- `prune` - Fjern gamle værktøjsudgange for at gemme tokens (standard: `true`).
|
||||
- `prune` - Fjern gamle værktøjsudgange for at gemme tokens (standard: `false`).
|
||||
- `reserved` - Tokenbuffer til komprimering. Efterlader nok vindue til at undgå overløb under komprimering
|
||||
|
||||
---
|
||||
|
||||
@ -490,13 +490,13 @@ Sie können das Verhalten der Kontextkomprimierung über die Option `compaction`
|
||||
"$schema": "https://opencode.ai/config.json",
|
||||
"compaction": {
|
||||
"auto": true,
|
||||
"prune": true
|
||||
"prune": false
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
- `auto` – Die Sitzung wird automatisch komprimieren, wenn der Kontext voll ist (Standard: `true`).
|
||||
- `prune` – Alte Tool-Ausgaben entfernen, um Token zu sparen (Standard: `true`).
|
||||
- `prune` – Alte Tool-Ausgaben entfernen, um Token zu sparen (Standard: `false`).
|
||||
|
||||
---
|
||||
|
||||
|
||||
@ -490,13 +490,13 @@ Puede controlar el comportamiento de compactación del contexto a través de la
|
||||
"$schema": "https://opencode.ai/config.json",
|
||||
"compaction": {
|
||||
"auto": true,
|
||||
"prune": true
|
||||
"prune": false
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
- `auto`: compacta automáticamente la sesión cuando el contexto está lleno (predeterminado: `true`).
|
||||
- `prune`: elimina las salidas de herramientas antiguas para guardar tokens (predeterminado: `true`).
|
||||
- `prune`: elimina las salidas de herramientas antiguas para guardar tokens (predeterminado: `false`).
|
||||
|
||||
---
|
||||
|
||||
|
||||
@ -490,14 +490,14 @@ Vous pouvez contrôler le comportement de compactage du contexte via l'option `c
|
||||
"$schema": "https://opencode.ai/config.json",
|
||||
"compaction": {
|
||||
"auto": true,
|
||||
"prune": true,
|
||||
"prune": false,
|
||||
"reserved": 10000
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
- `auto` - Compacte automatiquement la session lorsque le contexte est plein (par défaut : `true`).
|
||||
- `prune` - Supprimez les anciennes sorties de l'outil pour économiser des tokens (par défaut : `true`).
|
||||
- `prune` - Supprimez les anciennes sorties de l'outil pour économiser des tokens (par défaut : `false`).
|
||||
- `reserved` - Tampon de jetons pour le compactage. Laisse suffisamment de marge pour éviter le débordement lors du compactage.
|
||||
|
||||
---
|
||||
|
||||
@ -489,14 +489,14 @@ Puoi controllare il comportamento di compattazione del contesto tramite l'opzion
|
||||
"$schema": "https://opencode.ai/config.json",
|
||||
"compaction": {
|
||||
"auto": true,
|
||||
"prune": true,
|
||||
"prune": false,
|
||||
"reserved": 10000
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
- `auto` - Compatta automaticamente la sessione quando il contesto e pieno (predefinito: `true`).
|
||||
- `prune` - Rimuove output vecchi degli strumenti per risparmiare token (predefinito: `true`).
|
||||
- `prune` - Rimuove output vecchi degli strumenti per risparmiare token (predefinito: `false`).
|
||||
- `reserved` - Token buffer per la compattazione. Lascia abbastanza margine per evitare overflow durante la compattazione
|
||||
|
||||
---
|
||||
|
||||
@ -492,13 +492,13 @@ OpenCode は起動時に新しいアップデートを自動的にダウンロ
|
||||
"$schema": "https://opencode.ai/config.json",
|
||||
"compaction": {
|
||||
"auto": true,
|
||||
"prune": true
|
||||
"prune": false
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
- `auto` - コンテキストがいっぱいのときにセッションを自動的に圧縮します (デフォルト: `true`)。
|
||||
- `prune` - 古いツールの出力を削除してトークンを保存します (デフォルト: `true`)。
|
||||
- `prune` - 古いツールの出力を削除してトークンを保存します (デフォルト: `false`)。
|
||||
|
||||
---
|
||||
|
||||
|
||||
@ -489,14 +489,14 @@ OpenCode는 시작 시 새 업데이트를 자동으로 다운로드합니다. `
|
||||
"$schema": "https://opencode.ai/config.json",
|
||||
"compaction": {
|
||||
"auto": true,
|
||||
"prune": true,
|
||||
"prune": false,
|
||||
"reserved": 10000
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
- `auto` - context가 가득 찼을 때 세션을 자동 compact합니다(기본값: `true`).
|
||||
- `prune` - token 절약을 위해 오래된 tool 출력을 제거합니다(기본값: `true`).
|
||||
- `prune` - token 절약을 위해 오래된 tool 출력을 제거합니다(기본값: `false`).
|
||||
- `reserved` - compaction용 token buffer입니다. compaction 중 overflow가 나지 않도록 충분한 window를 남깁니다.
|
||||
|
||||
---
|
||||
|
||||
@ -491,14 +491,14 @@ Du kan styre kontekstkomprimering gjennom alternativet `compaction`.
|
||||
"$schema": "https://opencode.ai/config.json",
|
||||
"compaction": {
|
||||
"auto": true,
|
||||
"prune": true,
|
||||
"prune": false,
|
||||
"reserved": 10000
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
- `auto` - Komprimer økten automatisk når konteksten er full (standard: `true`).
|
||||
- `prune` - Fjern gamle verktøyutdata for å spare tokens (standard: `true`).
|
||||
- `prune` - Fjern gamle verktøyutdata for å spare tokens (standard: `false`).
|
||||
- `reserved` - Token-buffer for komprimering. Etterlater nok vindu til å unngå overflyt under komprimering
|
||||
|
||||
---
|
||||
|
||||
@ -486,13 +486,13 @@ Możesz kontrolować zachowanie kompaktowania kontekstu za pomocą opcji `compac
|
||||
"$schema": "https://opencode.ai/config.json",
|
||||
"compaction": {
|
||||
"auto": true,
|
||||
"prune": true
|
||||
"prune": false
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
- `auto` - Automatycznie kompaktuj, gdy kontekst jest pełny (domyślnie: `true`).
|
||||
- `prune` - Usuń stare wyniki narzędzi, aby zaoszczędzić tokeny (domyślnie: `true`).
|
||||
- `prune` - Usuń stare wyniki narzędzi, aby zaoszczędzić tokeny (domyślnie: `false`).
|
||||
|
||||
---
|
||||
|
||||
|
||||
@ -490,14 +490,14 @@ Você pode controlar o comportamento de compactação de contexto através da op
|
||||
"$schema": "https://opencode.ai/config.json",
|
||||
"compaction": {
|
||||
"auto": true,
|
||||
"prune": true,
|
||||
"prune": false,
|
||||
"reserved": 10000
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
- `auto` - Compactar automaticamente a sessão quando o contexto estiver cheio (padrão: `true`).
|
||||
- `prune` - Remover saídas antigas de ferramentas para economizar tokens (padrão: `true`).
|
||||
- `prune` - Remover saídas antigas de ferramentas para economizar tokens (padrão: `false`).
|
||||
- `reserved` - Buffer de tokens para compactação. Deixa janela suficiente para evitar estouro durante a compactação
|
||||
|
||||
---
|
||||
|
||||
@ -489,14 +489,14 @@ opencode автоматически загрузит все новые обно
|
||||
"$schema": "https://opencode.ai/config.json",
|
||||
"compaction": {
|
||||
"auto": true,
|
||||
"prune": true,
|
||||
"prune": false,
|
||||
"reserved": 10000
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
- `auto` — автоматически сжимать сеанс при заполнении контекста (по умолчанию: `true`).
|
||||
- `prune` — удалить старые выходные данные инструмента для сохранения токенов (по умолчанию: `true`).
|
||||
- `prune` — удалить старые выходные данные инструмента для сохранения токенов (по умолчанию: `false`).
|
||||
- `reserved` — Буфер токенов для сжатия. Оставляет достаточное окно, чтобы избежать переполнения во время сжатия.
|
||||
|
||||
---
|
||||
|
||||
@ -493,14 +493,14 @@ OpenCode จะดาวน์โหลดการอัปเดตใหม
|
||||
"$schema": "https://opencode.ai/config.json",
|
||||
"compaction": {
|
||||
"auto": true,
|
||||
"prune": true,
|
||||
"prune": false,
|
||||
"reserved": 10000
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
- `auto` - กระชับเซสชันโดยอัตโนมัติเมื่อบริบทเต็ม (ค่าเริ่มต้น: `true`)
|
||||
- `prune` - ลบเอาท์พุตเครื่องมือเก่าเพื่อบันทึก tokens (ค่าเริ่มต้น: `true`)
|
||||
- `prune` - ลบเอาท์พุตเครื่องมือเก่าเพื่อบันทึก tokens (ค่าเริ่มต้น: `false`)
|
||||
- `reserved` - บัฟเฟอร์โทเค็นสำหรับการบีบอัด ให้หน้าต่างเพียงพอเพื่อหลีกเลี่ยงการล้นระหว่างการบีบอัด
|
||||
|
||||
---
|
||||
|
||||
@ -491,14 +491,14 @@ Bağlam sıkıştırma davranışını `compaction` seçeneği aracılığıyla
|
||||
"$schema": "https://opencode.ai/config.json",
|
||||
"compaction": {
|
||||
"auto": true,
|
||||
"prune": true,
|
||||
"prune": false,
|
||||
"reserved": 10000
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
- `auto` - Bağlam dolduğunda oturumu otomatik olarak sıkıştırır (varsayılan: `true`).
|
||||
- `prune` - Belirteçleri kaydetmek için eski araç çıktılarını kaldırın (varsayılan: `true`).
|
||||
- `prune` - Belirteçleri kaydetmek için eski araç çıktılarını kaldırın (varsayılan: `false`).
|
||||
- `reserved` - Sıkıştırma için belirteç tamponu. Sıkıştırma sırasında taşmayı önlemek için yeterli pencere bırakır.
|
||||
|
||||
---
|
||||
|
||||
@ -487,14 +487,14 @@ OpenCode 启动时会自动下载新版本。您可以使用 `autoupdate` 选项
|
||||
"$schema": "https://opencode.ai/config.json",
|
||||
"compaction": {
|
||||
"auto": true,
|
||||
"prune": true,
|
||||
"prune": false,
|
||||
"reserved": 10000
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
- `auto` - 当上下文已满时自动压缩会话(默认值:`true`)。
|
||||
- `prune` - 删除旧的工具输出以节省 Token(默认值:`true`)。
|
||||
- `prune` - 删除旧的工具输出以节省 Token(默认值:`false`)。
|
||||
- `reserved` - 压缩时的 Token 缓冲区。保留足够的窗口以避免压缩过程中溢出。
|
||||
|
||||
---
|
||||
|
||||
@ -491,14 +491,14 @@ OpenCode 啟動時會自動下載新版本。您可以使用 `autoupdate` 選項
|
||||
"$schema": "https://opencode.ai/config.json",
|
||||
"compaction": {
|
||||
"auto": true,
|
||||
"prune": true,
|
||||
"prune": false,
|
||||
"reserved": 10000
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
- `auto` - 當上下文已滿時自動壓縮工作階段(預設值:`true`)。
|
||||
- `prune` - 刪除舊的工具輸出以節省 Token(預設值:`true`)。
|
||||
- `prune` - 刪除舊的工具輸出以節省 Token(預設值:`false`)。
|
||||
- `reserved` - 壓縮時的 Token 緩衝區。保留足夠的窗口以避免壓縮過程中溢出。
|
||||
|
||||
---
|
||||
|
||||
Loading…
Reference in New Issue
Block a user