Repository navigation
Conversation
|
The following comment was made by an LLM, it may be inaccurate: |
|
Fixed a missed accounting path in d879f26. The main prompt bottom bar still divided token usage by the model maximum and formatted Copilot costs in USD, while the sidebar and subagent footer already used the selected context tier and AI credits. The bottom bar now uses the same Checks after syncing with current upstream The local install now identifies itself as |
|
This branch has been upgraded to V2. We're no longer taking PRs for V1. If you think this is still relevant, please port it over and open it for V2. — from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊 |
Issue for this PR
Closes #53521. Related to #38164 and #52089.
Draft for core-team design review. #53521 renews the earlier request that the inactivity bot closed.
Type of change
What does this PR do?
Keep one base Copilot model in
/models. Add Switch context window to the TUI command palette and/context-window, with Default and Long choices independent of reasoning. Changing reasoning preserves the context choice, and the footer shows the selected tier.Read account-specific boundaries and cache prices from Copilot's authenticated
/modelsendpoint. Apply the selected budget to execution and compaction. Display Copilot-only session costs in AI credits, with 1 credit = $0.01; mixed or partially loaded histories retain USD. Actual prompt size determines the price tier, and reported GitHub charges still override estimates.Preserve existing OAuth and configured Enterprise routing, fast-mode prices, and configured reasoning overrides. Context metadata stays local and is removed from inference options. This implements the legacy/TUI path, not the v2 app. It does not change authentication or add a new inference API parameter.
How did you verify your code works?
Follow-up verification: the main prompt bottom bar now uses the response context tier and AI-credit formatter, matching the sidebar and subagent footer. Reopening an existing Default-context session showed 31.6K tokens at 8% in both locations, replacing the incorrect 3% bottom-bar reading. The pre-push repository typecheck also passed after syncing with current upstream
dev, 30 tasks.Screenshots / recordings
Terminal capture from the built TUI:
Labels have since been shortened to fit the dialog. No image screenshot is attached; presentation is part of the requested design review.
Checklist