GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(opencode): respect configured model input limits by danielwolfman · Pull Request #18070 · anomalyco/opencode

Conversation

@danielwolfman

@danielwolfman danielwolfman commented Mar 18, 2026

Copy link
Copy Markdown

Issue for this PR

Closes #16298
Refs #16308

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

It keeps provider.models.<model>.limit.input when building provider config overrides and allows config files to override just limit.input without restating context and output.

That fixes the long-context OpenAI case where users want to raise the client-side compaction threshold for models like gpt-5.4.

How did you verify your code works?

  • Added provider tests that verify custom models keep configured limit.input
  • Added a regression test that verifies an openai model override can set only limit.input
  • Ran bun test test/provider/provider.test.ts
  • Ran bun typecheck in packages/opencode

Screenshots / recordings

N/A

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@danielwolfman
fix(opencode): respect configured model input limits
351b019
This was referenced Mar 18, 2026
How to enable 1M context in OpenCode for GPT-5.4? Compaction triggers at 272k, not 1M #16308
Closed
[FEATURE]: Allow overriding model input limits for OpenAI long-context models #16298
Closed
@github-actions

github-actions Bot commented Mar 18, 2026

Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

Found a related PR:

PR #16306: fix(opencode): honor model limit.input overrides

  • fix(opencode): honor model limit.input overrides #16306

This PR appears to address the same issue - honoring/respecting model limit.input configuration overrides. It's likely a closely related or duplicate attempt at fixing the same problem described in the current PR #18070.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@danielwolfman danielwolfman closed this Mar 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

[FEATURE]: Allow overriding model input limits for OpenAI long-context models

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@danielwolfman
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.