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 — Expose reasoning effort for custom Claude models by IsraelAraujo70 · Pull Request #4194 · pingdotgg/t3code

Conversation

@IsraelAraujo70

@IsraelAraujo70 IsraelAraujo70 commented Jul 20, 2026 •
edited by macroscopeapp Bot
Loading

Uh oh!

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

Copy link
Copy Markdown

Summary

  • discover reasoning capabilities dynamically for each custom Claude model ID through the Claude Agent SDK
  • build the T3 reasoning selector only from the supportedEffortLevels announced for that selected model
  • avoid assigning high or any other effort by default, and hide the control when no levels are advertised
  • preserve explicit selections such as xhigh end-to-end for Claude-compatible custom models

Why

Claude-compatible gateways can expose Codex/OpenAI models through Claude Code using custom model IDs. Claude Code only announces supportedEffortLevels for a custom model when that model is selected during initialization, so static capabilities would either hide valid reasoning levels or advertise options the model does not support. T3 should respect the model's dynamically discovered reasoning capabilities instead of assuming a fixed capability set.

The custom model IDs are therefore initialized individually through the Claude Agent SDK. The resulting initializationResult().models metadata drives the provider capabilities while preserving the existing generic provider-option UI. The adapter and CLI text generation now reuse the provider’s cached capabilities for runtime validation, so they stay aligned with the levels actually announced by each model. Custom-model probes run sequentially to preserve failure isolation without unbounded subprocess fan-out.

Closes #4192.

Before / After

Before After
Custom Claude models did not expose their model-specific reasoning capabilities. Each custom Claude model exposes only the reasoning levels announced by Claude Code; models with none do not show a reasoning control, and no effort is selected by default.
Before: no reasoning control After: reasoning effort menu

Testing

  • vp test run apps/server/src/provider/Layers/ProviderRegistry.test.ts apps/server/src/provider/Layers/ClaudeAdapter.test.ts apps/server/src/textGeneration/ClaudeTextGeneration.test.ts (111 tests)
  • vp run --filter t3 typecheck
  • targeted vp lint on the four changed files
  • integrated web verification with custom gpt-5.6-sol Claude model: the Claude SDK advertised Low, Medium, High, Extra High, and Max, the selector initially had no selection, and an explicit Extra High selection worked end-to-end

Note

Medium Risk
Increases probe subprocess work and changes effort handling for custom models; behavior is localized to Claude provider paths and covered by new tests, but mis-probes could hide or mislabel reasoning options.

Overview
Custom Claude model IDs now get reasoning effort from Claude Code’s per-model SDK metadata instead of static or built-in assumptions.

The capabilities probe runs a lightweight init for each configured custom model (concurrency 2, 25s timeout per probe), merges supportedEffortLevels into provider model capabilities, and feeds that through a cached resolveModelCapabilities hook shared by the adapter, CLI text generation, and provider status. Custom models show a reasoning selector only when levels are advertised; nothing is defaulted when they are not. Explicit selections like xhigh pass through when advertised, and built-in-only mappings (e.g. coercing xhigh to max) no longer apply to custom slugs.

Reviewed by Cursor Bugbot for commit ec95dc6. Bugbot is set up for automated code reviews on this repo. Configure here.

Note

Expose reasoning effort options for custom Claude models based on SDK capability probes

  • probeClaudeCapabilities in ClaudeProvider.ts now concurrently initializes the SDK for each custom model, collects advertised supportedEffortLevels, and returns them. Individual probes time out without discarding completed results.
  • getClaudeModelCapabilities and normalizeClaudeCliEffort are extended to use SDK-advertised effort levels for custom models, and xhigh is no longer coerced to max for custom models.
  • makeClaudeAdapter and makeClaudeTextGeneration accept an async resolveModelCapabilities resolver so capability lookups use the per-instance probe cache at runtime.
  • Provider status now surfaces custom models with effort-level selectors in the model selection UI when the SDK advertises them.

Macroscope summarized ec95dc6.

Sorry, something went wrong.

Uh oh!

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

All reactions
@IsraelAraujo70
feat(claude): expoe reasoning em modelos customizados
89d2493
@coderabbitai

coderabbitai Bot commented Jul 20, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: a9dd7cfb-3beb-4c06-9bfc-1a0d377b94ca

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
  • X
  • Mastodon
  • Reddit
  • LinkedIn

Comment @coderabbitai help to get the list of available commands.

All reactions

Sorry, something went wrong.

Uh oh!

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

@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:S 10-29 changed lines (additions + deletions). labels Jul 20, 2026
chatgpt-codex-connector[bot]
chatgpt-codex-connector Bot reviewed Jul 20, 2026
View reviewed changes

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 89d24938e7

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread apps/server/src/provider/Layers/ClaudeProvider.ts Resolved

Uh oh!

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

@macroscopeapp

macroscopeapp Bot commented Jul 20, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Needs human review

This PR introduces new feature behavior - enabling reasoning effort configuration for custom Claude models by probing each model individually and propagating capabilities through multiple layers. The concurrent probing logic and new capability resolution flow represent significant runtime changes that warrant human review.

You can customize Macroscope's approvability policy. Learn more.

All reactions

Sorry, something went wrong.

Uh oh!

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

@IsraelAraujo70
feat(claude): expõe reasoning dinâmico em modelos customizados
987abd9
@github-actions github-actions Bot added size:L 100-499 changed lines (additions + deletions). and removed size:S 10-29 changed lines (additions + deletions). labels Jul 20, 2026
macroscopeapp[bot]
macroscopeapp Bot reviewed Jul 20, 2026
View reviewed changes
Comment thread apps/server/src/provider/Layers/ClaudeProvider.ts Resolved

Uh oh!

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

@IsraelAraujo70

IsraelAraujo70 commented Jul 20, 2026

Copy link
Copy Markdown
Author

Resolved the Codex feedback: removed the default high, discover capabilities from initializationResult().models / supportedEffortLevels per custom model, and added regression coverage proving no --effort is sent when nothing is selected.

All reactions

Sorry, something went wrong.

Uh oh!

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

cursor[bot]
cursor Bot reviewed Jul 20, 2026
View reviewed changes
Comment thread apps/server/src/provider/Layers/ClaudeProvider.ts Resolved

Uh oh!

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

@IsraelAraujo70
fix: preserva níveis de reasoning entre probes
863e4a8
macroscopeapp[bot]
macroscopeapp Bot reviewed Jul 20, 2026
View reviewed changes
Comment thread apps/server/src/provider/Layers/ClaudeProvider.ts Resolved

Uh oh!

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

@IsraelAraujo70
fix: alinhar validacao runtime as capabilities dinamicas
b7cff35
macroscopeapp[bot]
macroscopeapp Bot reviewed Jul 20, 2026
View reviewed changes
Comment thread apps/server/src/provider/Layers/ClaudeProvider.ts Resolved

Uh oh!

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

cursor[bot]
cursor Bot reviewed Jul 20, 2026
View reviewed changes

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

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.

Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit b7cff35. Configure here.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread apps/server/src/provider/Layers/ClaudeProvider.ts Resolved

Uh oh!

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

@IsraelAraujo70
fix: limita concorrência e preserva resultados dos probes Claude
ec95dc6
@juliusmarminge

juliusmarminge commented Jul 30, 2026

Copy link
Copy Markdown
Member

Closing in favor of #2829 (orchestration V2).

#2829 deletes the V1 orchestration layer this PR builds on — apps/server/src/orchestration/**, provider/Layers/*Adapter.ts and provider/Services/** are removed and replaced by apps/server/src/orchestration-v2/**, with the IPC surface renamed to ORCHESTRATION_V2_WS_METHODS. The files this PR touches either no longer exist or are rewritten, so it can't be rebased — it would need reimplementing against the V2 adapters.

This is not a judgement on the change itself. Several of these are real gaps we still want fixed; the base just moved out from under them.

Once #2829 merges, please rebase onto main, port the change to the V2 equivalent, and reopen (or open a fresh PR). Ping me and I'll prioritise the review.

All reactions

Sorry, something went wrong.

Uh oh!

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

@juliusmarminge juliusmarminge closed this Jul 30, 2026
@makeavish makeavish mentioned this pull request Aug 13, 2026
[Feature]: Expose reasoning effort for custom Claude models #4192
Closed
3 tasks done
@makeavish ChatGPT Codex Connector

makeavish commented Aug 13, 2026

Copy link
Copy Markdown

Also reproduced on T3 Code 0.0.33 with Claude Code 2.1.229 and OpenCodex 2.14.1. The custom gpt-5.6-sol route works, but T3 hides the Reasoning picker, forcing gateway-side defaults or model aliases. Since this implementation was tested through xhigh/max and the change is still wanted, could the V2 port and review be prioritized after #2829 lands?

All reactions

Sorry, something went wrong.

Uh oh!

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

@mimen mimen mentioned this pull request Sep 1, 2026
feat(claude): profile custom model effort #8964
Closed
4 tasks done
@juliusmarminge juliusmarminge mentioned this pull request Sep 26, 2026
[Bug]: Claude model picker not synchronized with Claude Code model list, unlike Codex #13875
Closed
2 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@macroscopeapp macroscopeapp[bot] macroscopeapp[bot] left review comments
@chatgpt-codex-connector chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] left review comments
@cursor cursor[bot] cursor[bot] left review comments

Uh oh!

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

Assignees

No one assigned

Labels

size:L 100-499 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

[Feature]: Expose reasoning effort for custom Claude models

Uh oh!

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

3 participants

@IsraelAraujo70 @juliusmarminge @makeavish
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.