Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix: ensure gpt-5.5 compacts at correct context size when using opena…
…i oauth
  • Loading branch information
rekram1-node committed Apr 24, 2026
commit 0d260134ad1ea42febf2ef07ad63a7169e0f5175
10 changes: 10 additions & 0 deletions packages/opencode/src/plugin/codex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,16 @@ export async function CodexAuthPlugin(input: PluginInput): Promise<Hooks> {
output: 0,
cache: { read: 0, write: 0 },
}

// gpt-5.5 models temporarily have restricted context window size for codex plans
if (model.id.includes("gpt-5.5")) {
model.limit = {
context: 400_000,
//@ts-expect-error incorrect type for v1 sdk but works
input: 272_000,
output: 128_000,
}
}
}

return {
Expand Down
Loading