fix(browser): correct GPT-5.2 model selection and add thinking time parameter #45
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.
Fixes #46
Problem
The browser model selection was incorrectly mapping GPT-5.2 variants:
gpt-5.2-instantwas mapped to "Auto" instead of "Instant"gpt-5.2-thinkingdidn't exist as a CLI option--browser-extended-thinkingonly supported "Extended" level, not Light/Standard/HeavyAdditionally, having fine-grained control over thinking time is useful when using oracle as a tool from AI coding agents (e.g., pi). For quick web searches or simple queries, a minimal thinking budget keeps responses fast; for complex reasoning tasks, extended thinking is preferred (and don't always need to use Pro for those).
Summary
src/cli/options.ts(changes toinferModelFromLabel).--browser-thinking-time <light|standard|extended|heavy>option--browser-extended-thinkingas deprecated alias mapping toextendedTest plan
gpt-5.2→ ChatGPT 5.2 (Auto)gpt-5.2-thinking→ ChatGPT 5.2 Thinkinggpt-5.2-instant→ ChatGPT 5.2 Instantgpt-5.2-pro→ ChatGPT 5.2 Pro--browser-extended-thinkingselects Extended thinking time (kept for backward compat, but could be removed as well)--browser-thinking-time extendedselects Extended thinking time--browser-thinking-time lightselects Light thinking time--browser-thinking-time heavyselects Heavy thinking timepnpm build)