Skip to content

fix(settings): align model limit shortcuts with catalog specs - #2688

Merged
vastsa merged 2 commits into
mainfrom
fix/model-limit-presets
Dec 1, 2026
Merged

vastsa merged 2 commits into
mainfrom
fix/model-limit-presets

Conversation

@vastsa

@vastsa vastsa commented Dec 1, 2026

Copy link
Copy Markdown
Owner

Summary

  • Replace the five context-window and five maximum-output shortcuts with exact limits for representative models.dev entries from Claude, GPT, Gemini, and DeepSeek.
  • Show the exact token count in each shortcut tooltip. Manual entry, stored values, and catalog defaults are unchanged.
  • Document the shortcuts and extend the provider/account dialog regression probe.

Validation

  • Candidate: 40d90054e7ffc779fdf173173a6db0e79efcba9d; base: f16d775bd7a529fc4e3b3a5243ce72aac5f63ef4.
  • pnpm check:pr-base, git diff --check, desktop typecheck, and targeted Biome lint passed.
  • 30 targeted preset, advanced-settings, and catalog-binding tests passed.
  • pnpm test:e2e:provider-model-layout: 10 cases passed across provider/account dialogs and five viewport sizes in isolated Electron on macOS. Verified exact preset clicks, field independence, manual edits, and preset label fit (E2E-MODELS-list-layout).

Use exact token limits from common Claude, GPT, Gemini, and DeepSeek
models so similarly sized windows do not write rounded values. Keep the
shortcuts optional and expose their exact counts on hover.

Exercise the revised choices in both model settings dialogs.
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Deploying pi-desktop with  Cloudflare Pages  Cloudflare Pages

Latest commit: e2aca6c
Status: ✅  Deploy successful!
Preview URL: https://23727d47.pi-desktop.pages.dev
Branch Preview URL: https://fix-model-limit-presets.pi-desktop.pages.dev

View logs

Include the current main revision before re-running validation. Preserve
the published task commit rather than rewriting the pull request branch.
@vastsa

vastsa commented Dec 1, 2026

Copy link
Copy Markdown
Owner Author

Refreshed the candidate without rewriting the branch after #2687 landed.

  • Candidate: e2aca6c54a08ebe68553ce82e6904adcb93c21d7; base: 447e8e4b170e1c2efbb9ca6184eed5b25554e077.
  • Dependency build, desktop typecheck, targeted lint, PR-base check, and 30 focused tests passed.
  • All 10 cases of pnpm test:e2e:provider-model-layout passed again in isolated Electron on macOS.

@vastsa
vastsa merged commit 1b60600 into main Dec 1, 2026
7 checks passed
@vastsa
vastsa deleted the fix/model-limit-presets branch December 1, 2026 03:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant