mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-20 18:57:17 +03:00
feat(core): run background compaction by default (#64290)
This commit is contained in:
committed by
GitHub
Unverified
parent
7745079647
commit
edd88bd3fe
@@ -15,6 +15,10 @@ export type Percent = typeof Percent.Type
|
||||
|
||||
export class Info extends Schema.Class<Info>("Config.Compaction")({
|
||||
auto: Schema.Boolean.pipe(optional),
|
||||
background: Schema.Boolean.pipe(optional).annotate({
|
||||
description:
|
||||
"Write the summary in the background as the session nears automatic compaction, so it does not wait for one (default: true). A summary that is never used still costs tokens.",
|
||||
}),
|
||||
keep: Keep.pipe(optional),
|
||||
buffer: Schema.Union([Percent, NonNegativeInt]).pipe(optional).annotate({
|
||||
description:
|
||||
|
||||
@@ -9,8 +9,6 @@ export const wildcard = "all"
|
||||
*/
|
||||
export const registry = {
|
||||
todo: "Enable the experimental todowrite tool.",
|
||||
background_compaction:
|
||||
"Enable experimental background compaction: summarize the conversation in the background as it nears the compaction threshold, so automatic compaction does not wait for the summary. Background summaries that are never used still cost tokens.",
|
||||
media_blob: "Store new session media once in a deduplicated blob table instead of inline in every message row.",
|
||||
schedules: "Enable experimental scheduled tasks that wake a session with a prompt.",
|
||||
artifacts: "Enable experimental artifacts backed by pluggable providers.",
|
||||
|
||||
Reference in New Issue
Block a user