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

Open Beginner friendly
#7,665 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 4 days

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
76/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
bun, css, javascript

Research direction

Read app/host/src/styles/liquid.css around lines 2598 and 4864, then inspect app/host/scripts/measure.mjs and the Reply width choices from #5066 to establish the intended width. Run bun run measure in app/host to reproduce the failure. Done when the intended reply width and measure check agree, with the reported character counts passing the configured band.

Written by the indexing model from the issue text.

Description

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

Dominant language
C++
Stars
11.6k
Forks
1k
Avg merge
6d 2h
Merged PRs (30d)
21

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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 Niko1221/Strata

All issues in Niko1221/Strata

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.