-
Notifications
You must be signed in to change notification settings - Fork 2.8k
chore: remove unused i18n keys for include max output tokens #6935
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: remove unused i18n keys for include max output tokens #6935
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR removes unused i18n translation keys that were introduced in PR #6864 but are no longer needed after the complete OpenAI provider refactoring in PR #6921. The cleanup ensures consistent translation hygiene across all 18 webview UI locale files.
Key changes:
- Removes 4 unused translation keys:
includeMaxOutputTokens,includeMaxOutputTokensDescription,maxOutputTokensLabel, andmaxTokensGenerateDescription - Preserves the
limitMaxTokensDescriptionkey which is still in use - Updates test files to remove references to deleted keys
Reviewed Changes
Copilot reviewed 34 out of 34 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| webview-ui/src/i18n/locales/*/settings.json | Removes unused translation keys from all 18 locale files while preserving limitMaxTokensDescription |
| Multiple provider and core files | Extensive refactoring of the OpenAI Native provider to use Responses API with stateless/stateful capabilities and improved error handling |
| packages/types/src/providers/openai.ts | Updates OpenAI model definitions with new capability flags and removes deprecated model variants |
| Test files | Updates tests to reflect the new provider implementation and removes references to deleted translation keys |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your contribution! I've reviewed the changes and found critical issues that need attention before this can be merged.
Main concerns:
- The PR removes translation keys that are still actively used in the codebase
- The PR includes unintended commits from PR #6921
- There's a merge conflict that needs resolution
Please see my inline comments for specific details.
| "limitMaxTokensDescription": "Limit the maximum number of tokens in the response", | ||
| "maxOutputTokensLabel": "Max output tokens", | ||
| "maxTokensGenerateDescription": "Maximum tokens to generate in response" | ||
| "limitMaxTokensDescription": "Limit the maximum number of tokens in the response" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
includeMaxOutputTokens and includeMaxOutputTokensDescription) are still being used in webview-ui/src/components/settings/providers/OpenAICompatible.tsx (lines 174, 177). Removing them will cause runtime errors.
Could you either:
- Update the OpenAICompatible component to not use these keys, or
- Keep these keys if they're still needed?
I found these references:
- OpenAICompatible.tsx:174:
t("settings:includeMaxOutputTokens") - OpenAICompatible.tsx:177:
t("settings:includeMaxOutputTokensDescription") - OpenAICompatible.spec.tsx: Multiple test references
| import { describe, it, expect } from "vitest" | ||
| import { openAiNativeModels } from "../openai.js" | ||
|
|
||
| type Dict = Record<string, unknown> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this test file change intentional for an i18n cleanup PR? While the improvements to type safety are good, they seem unrelated to removing unused translation keys. Consider moving these changes to a separate PR for clarity.
|
Additionally, I noticed this PR includes commit To fix this, you could:
This would also resolve the merge conflict issue. |
Related GitHub Issue
Closes: #6921
Roo Code Task Context (Optional)
No Roo Code task context for this PR
Description
This PR removes unused i18n translation keys that were introduced in PR #6864 but are no longer needed after the complete OpenAI provider refactoring in PR #6921.
The following keys have been removed from all 18 webview UI locale files:
includeMaxOutputTokensincludeMaxOutputTokensDescriptionmaxOutputTokensLabelmaxTokensGenerateDescriptionThese translation strings had no corresponding UI controls after the refactoring. While the OpenAI-compatible handler still supports
includeMaxTokensvia schema for power users, there is no UI component using these translation keys.Test Procedure
Verified no references remain in the codebase:
All return no results.
Confirmed no UI components reference these keys by checking:
webview-ui/src/components/settings/ApiOptions.tsxwebview-ui/src/components/settings/ThinkingBudget.tsxUpdated test file to remove reference to deleted key.
Pre-Submission Checklist
Screenshots / Videos
No UI changes in this PR
Documentation Updates
Additional Notes
This is a pure i18n hygiene change. The GPT-5 Responses API implementation and related UI components (reasoning effort/verbosity controls) remain intact and are unaffected by this cleanup.
Get in Touch
@hannesrudolph
Important
Removed unused i18n keys related to max output tokens from multiple locale files following a refactoring.
includeMaxOutputTokens,includeMaxOutputTokensDescription,maxOutputTokensLabel,maxTokensGenerateDescriptionfrom 18 locale files.grepcommands ensuring no references remain.webview-ui/src/components/settings/ApiOptions.tsxandwebview-ui/src/components/settings/ThinkingBudget.tsxfor any UI component references.This description was created by
for f3111c7. You can customize this summary. It will automatically update as commits are pushed.