Skip to content

Commit 8c289cb

Browse files
committed
fix: mark the clamped-params return line in the upstream-shared request builder
Marker Guard diffs against `origin/main`, which treats `session/llm/request.ts` as upstream-shared. The changed `params:` line in the returned object sat outside any `altimate_change` block, so the strict check failed. The local run missed it because a stale `main` ref put the file outside the shared set. No behaviour change.
1 parent 1586f59 commit 8c289cb

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎packages/opencode/src/session/llm/request.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,9 @@ export const prepare = Effect.fn("LLMRequestPrep.prepare")(function* (input: Pre
188188
system,
189189
messages,
190190
tools: Object.fromEntries(Object.entries(tools).toSorted(([a], [b]) => a.localeCompare(b))),
191+
// altimate_change start — return the context-window-clamped params built above
191192
params: clampedParams,
193+
// altimate_change end
192194
messageTransformOptions: options,
193195
headers: {
194196
...(input.model.providerID.startsWith("opencode")

0 commit comments

Comments
 (0)