[GUI] 0.2.24's liquid.css widens replies to 88ch, so app/host's measure check fails at 107 characters per line

Aperta Adatta ai principianti
#7,665 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 4 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
76/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
bun, css, javascript

Direzione di ricerca

Leggi app/host/src/styles/liquid.css intorno alle righe 2598 e 4864, poi esamina app/host/scripts/measure.mjs e le opzioni di larghezza di Reply di #5066 per stabilire la larghezza prevista. Esegui bun run measure in app/host per riprodurre il problema. Il lavoro è completato quando la larghezza prevista di Reply e il controllo di measure corrispondono e il conteggio dei caratteri riportato rientra nell’intervallo configurato.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Area

[GUI] (the desktop app)

Desktop app, Terminal or source?

Source (START-HERE.bat, setup.sh or a build)

What happened

On 0.2.24, bun run check in app/host stops at its measure step: a line of assistant prose is 107 characters wide, and scripts/measure.mjs requires 45–75.

reading measure (target 45–75 characters per line)

  10px · normal    107 chars/line at 10px  FAIL
  10px · focus     107 chars/line at 10px  FAIL
  16px · normal    107 chars/line at 16px  FAIL
  16px · focus     107 chars/line at 16px  FAIL
  22px · normal     78 chars/line at 22px  FAIL
  22px · focus     107 chars/line at 22px  FAIL

reading measure: 6 failure(s)

The width comes from two rules that 0.2.24 adds to app/host/src/styles/liquid.css. They load after app.css and replace its reply widths:

  • line 2598, in the :root block: --st-measure: 88ch; (app.css: 56ch, the Comfortable choice of Settings > Reply width from #5066)
  • line 4864: :root[data-measure='wide'] { --st-measure: 112ch; } (app.css: 72ch)

With those two rules removed and nothing else changed, the same run gives 68 characters per line at every size and both modes, and all five steps of bun run check pass.

I could not tell which side is intended. If the wider reply is the new design, measure.mjs's band and the Reply width choices from #5066 no longer describe it. If it is not, the two overrides are what changed it.

Smallest steps or command that reproduce it
  1. In app/host on v0.2.24: bun install, then bun run dev with STRATA_HOME pointed at an empty folder.
  2. Dismiss setup: curl -X POST -H 'Content-Type: application/json' -d '{"step":1,"flowVersion":2,"dismissed":true}' http://127.0.0.1:8791/api/setup/step
  3. Load the simulated model: curl -X POST http://127.0.0.1:8791/api/models/qwen38-q2_k/install, wait about 10 s, then curl -X POST http://127.0.0.1:8791/api/models/qwen38-q2_k/load
  4. bun run measure
Reproduction status

Reproduced locally

Strata version

Strata 0.2.24 · app/host/src as tagged v0.2.24 (70ac2f246)

Graphics card, memory and system

Not involved: the dev server's simulated engine, headless Chromium at 1512 × 1110 · Debian sid

Lingua principale
C++
Stelle
11.6k
Fork
1k
Merge medio
6g 2h
PR unite (30g)
21

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Niko1221/Strata

Tutte le issue di Niko1221/Strata

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.