feat: enable dynamic truncation for all tool outputs by default (#226)
- Change truncate_all_tool_outputs default from false to true - Update schema.ts to use .default(true) instead of .optional() - Update documentation in all README files (EN, KO, JA, ZH-CN) - Rebuild JSON schema with new default value This prevents prompts from becoming too long by dynamically truncating all tool outputs based on context window usage. Users can opt-out by setting experimental.truncate_all_tool_outputs to false. Co-authored-by: sisyphus-dev-ai <sisyphus-dev-ai@users.noreply.github.com>
This commit is contained in:
@@ -115,7 +115,7 @@ export const ExperimentalConfigSchema = z.object({
|
||||
/** Threshold percentage to trigger preemptive compaction (default: 0.80) */
|
||||
preemptive_compaction_threshold: z.number().min(0.5).max(0.95).optional(),
|
||||
/** Truncate all tool outputs, not just whitelisted tools (default: true) */
|
||||
truncate_all_tool_outputs: z.boolean().optional(),
|
||||
truncate_all_tool_outputs: z.boolean().default(true),
|
||||
})
|
||||
|
||||
export const OhMyOpenCodeConfigSchema = z.object({
|
||||
|
||||
Reference in New Issue
Block a user