[PR #4436] [CLOSED] [GUI] One conversation-context control, with the KV format beside it #5049

Closed
opened 2026-11-07 16:32:18 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/4436
Author: @xvcezrqpbxtpzblrt
Created: 10/28/2026
Status: ❌ Closed

Base: main ← Head: gui/context-kv-027


📝 Commits (2)

  • 8372b6b [GUI] Pick the conversation context in one place, with the KV format beside it
  • 3142515 gui: the DeepSeek context test follows the new call

📊 Changes

8 files changed (+201 additions, -21 deletions)

View changed files

📝 apps/host/src/components/NativeModels.tsx (+61 -8)
📝 apps/host/src/components/PcFitCard.tsx (+14 -3)
📝 apps/host/src/components/VersionPicker.tsx (+1 -1)
📝 apps/host/src/lib/native-fit.ts (+36 -5)
📝 apps/host/src/styles/app.css (+57 -2)
📝 apps/host/tests/deepseek-card.test.mjs (+1 -1)
📝 apps/host/tests/deepseek-context.test.mjs (+1 -1)
📝 apps/host/tests/native-fit.test.mjs (+30 -0)

📄 Description

## Problem

  • The context size had two controls side by side: a dropdown and a free-entry box that both showed 512K. Nothing said which one won.
  • The KV format (Context memory) was only reachable in Expert mode, although it is the setting that decides whether a long context fits at all.
  • The steps between 384K and 512K were missing: on a 16 GB card those are the only points between "fits comfortably" and "fits with nothing to spare".

Result

  • One control: the dropdown lists the sizes and ends with Custom; only then does the free-entry box appear. 448 is read as 448K, 448K and 1M are understood, 458752 as tokens, and the value is clamped to the model's ceiling with the result shown back.
  • Steps are doubled: 8/16/24/32/48/64/96/128/192/256/320/384/448/512K (plus 768K/1M where the catalog allows).
  • Context memory sits next to the context size, in the main form, showing the format the installed model really uses (read from its run configuration).
  • The card under the version list says when the chosen size will not fit, in the same words for every model.

Validation

node --test tests/native-fit.test.mjs tests/deepseek-card.test.mjs → 18 pass, 0 fail.

Screenshots taken of the real page (before/after): the duplicate field is gone, the four fields are one column, and Context memory shows K8 / V4 matching the running engine.

Limits

  • The ceiling is the catalog's largest listed size (512K in the app) or the DeepSeek version's own limit; per-model maxima are not exposed by Control yet, so a 256K model still shows 448K/512K in the list.
  • app.css in this branch also carries the row alignment for the model form only.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/4436 **Author:** [@xvcezrqpbxtpzblrt](https://github.com/xvcezrqpbxtpzblrt) **Created:** 10/28/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `gui/context-kv-027` --- ### 📝 Commits (2) - [`8372b6b`](https://github.com/Niko1221/Strata/commit/8372b6bf9ec0895caf27a9c9903ce32643dd6bcb) [GUI] Pick the conversation context in one place, with the KV format beside it - [`3142515`](https://github.com/Niko1221/Strata/commit/314251554402169b6348c0dcc096d441bc55ec96) gui: the DeepSeek context test follows the new call ### 📊 Changes **8 files changed** (+201 additions, -21 deletions) <details> <summary>View changed files</summary> 📝 `apps/host/src/components/NativeModels.tsx` (+61 -8) 📝 `apps/host/src/components/PcFitCard.tsx` (+14 -3) 📝 `apps/host/src/components/VersionPicker.tsx` (+1 -1) 📝 `apps/host/src/lib/native-fit.ts` (+36 -5) 📝 `apps/host/src/styles/app.css` (+57 -2) 📝 `apps/host/tests/deepseek-card.test.mjs` (+1 -1) 📝 `apps/host/tests/deepseek-context.test.mjs` (+1 -1) 📝 `apps/host/tests/native-fit.test.mjs` (+30 -0) </details> ### 📄 Description ## Problem - The context size had two controls side by side: a dropdown and a free-entry box that both showed `512K`. Nothing said which one won. - The KV format (`Context memory`) was only reachable in Expert mode, although it is the setting that decides whether a long context fits at all. - The steps between 384K and 512K were missing: on a 16 GB card those are the only points between "fits comfortably" and "fits with nothing to spare". ## Result - One control: the dropdown lists the sizes and ends with `Custom`; only then does the free-entry box appear. `448` is read as 448K, `448K` and `1M` are understood, `458752` as tokens, and the value is clamped to the model's ceiling with the result shown back. - Steps are doubled: 8/16/24/32/48/64/96/128/192/256/320/384/448/512K (plus 768K/1M where the catalog allows). - `Context memory` sits next to the context size, in the main form, showing the format the installed model really uses (read from its run configuration). - The card under the version list says when the chosen size will not fit, in the same words for every model. ## Validation `node --test tests/native-fit.test.mjs tests/deepseek-card.test.mjs` → 18 pass, 0 fail. Screenshots taken of the real page (before/after): the duplicate field is gone, the four fields are one column, and `Context memory` shows `K8 / V4` matching the running engine. ## Limits - The ceiling is the catalog's largest listed size (512K in the app) or the DeepSeek version's own limit; per-model maxima are not exposed by Control yet, so a 256K model still shows 448K/512K in the list. - `app.css` in this branch also carries the row alignment for the model form only. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 16:32:18 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#5049
No description provided.