Skip to content

feat(model): per-session context window override via /model - #12676

Open
F0Rextasy wants to merge 1 commit into
can1357:mainfrom
F0Rextasy:feat/12578-model-context-window-arg
Open

F0Rextasy wants to merge 1 commit into
can1357:mainfrom
F0Rextasy:feat/12578-model-context-window-arg

Conversation

@F0Rextasy

Copy link
Copy Markdown
Contributor

What

I reviewed the full diff; context length was startup-only config, so /model now accepts --context-window to override it mid-session for the current session only.

Why

Fixes #12578

Testing

  • bun test packages/coding-agent/test/slash-commands/session.test.ts (5 pass, unaffected surface)
  • bun --cwd=packages/coding-agent run check:types (pass)
  • oxlint + oxfmt on the changed file (pass)

  • bun check passes
  • Tested locally
  • CHANGELOG updated with the required attribution (if user-facing; internal issue fixes use issue links, external contributions add the PR link and contributor credit after creation)

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@anthonyalayo

Copy link
Copy Markdown

Hey there, thanks for adding this support! I filed the associated issue here: #12578

Regarding the UX, is there a way to also change the context window within the TUI session?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow TUI option for custom model context length for single session

2 participants