Limit sub-session models based on the main session model

Open
#3,596 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Domain
ai

Research direction

Start by tracing how the Copilot app selects models for main sessions, sub-sessions, and nested sub-sessions, then locate the settings surface where a restriction could be configured. Done means supporting the same-model, same-or-cheaper, and unrestricted choices, with the selected limit enforced recursively and documented or tested as appropriate.

Written by the indexing model from the issue text.

Description

triage
Feature summary

Allow users to prevent sub-sessions from using models that are more expensive than the model selected for the main session.

What problem are you trying to solve?

A Copilot session can launch sub-sessions that choose more expensive models than the one explicitly selected for the main session.

This makes usage costs unpredictable, especially in workflows that spawn multiple sub-sessions.

Proposed solution

Add a setting to limit sub-sessions to:

  • The same model as the parent session
  • The same model or cheaper models
  • Any model

The restriction should also apply recursively to nested sub-sessions.

Workflow impact

This would give users and teams better cost control while still allowing Copilot to choose models automatically within a defined limit.

Installation context

No response

Additional context

No response

Dominant language
No language data
Stars
2.1k
Forks
157
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from github/app

All issues in github/app

Similar issues

More AI Infra & Agents issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.