mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-08-30 17:14:40 +08:00
fix(cli): fall back to item.options for chunkTimeout when not in merged options
ProviderTransform.options() does not merge arbitrary provider options into the merged options object. Read chunkTimeout from item.options as a fallback so provider.<id>.options.chunkTimeout works as documented. Addresses kilo-code-bot review finding in PR #9795.
This commit is contained in:
@@ -342,7 +342,9 @@ const live: Layer.Layer<
|
||||
const chunkTimeout =
|
||||
typeof prepared.params.options["chunkTimeout"] === "number"
|
||||
? prepared.params.options["chunkTimeout"]
|
||||
: undefined // kilocode_change
|
||||
: typeof item.options?.["chunkTimeout"] === "number"
|
||||
? item.options["chunkTimeout"]
|
||||
: undefined // kilocode_change
|
||||
if (chunkTimeout) {
|
||||
// kilocode_change
|
||||
l.debug("chunk idle timeout configured", { chunkTimeout }) // kilocode_change
|
||||
|
||||
Reference in New Issue
Block a user