config: warn on clamped opacity and scroll multiplier #159
No reviewers
Labels
No labels
priority/P0
priority/P1
priority/P2
release/v0.1.0
status/blocked
status/planned
type/bug
type/design
type/test-gap
type/tracker
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
natsukium/felis!159
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/config-clamp-warnings-143"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #143.
window.opacityandmouse.scroll_multiplierwere clamped silently attheir use sites, so
felis config checkpassed on files whose values theclient would not honor. Both now emit a
valuewarning naming the clampedresult, matching the two rows the reference table already advertised as
load-stage warnings.
scroll_multiplier = nanpreviously zeroed everynotch (
f64::clamppasses NaN through); it now falls back to the default,as
clamped_opacityalready did for opacity.The "must be a TOML float" claim about
font.size_pxwas false —tomldeserializes an integer into
f32, andsize_px = 14has always loaded —so that wording is removed and tests pin both spellings as one value
through
config checkandshow-effective.Doc cascade:
docs/reference/config.md(clamp/warning rows, thetheme.palette.indexedstring-key reason),docs/how-to/install.md,nix/hm-module.nix,.agents/skills/add-config-key/SKILL.md,crates/felis-client-core/felis-config.schema.json(regenerated), and aCHANGELOG.mdentry.Verified: just check green (fmt, clippy, nextest, deny, proto-compat); reviewed by pi luna + pi sol; docs proofread by Gemini gemini-3.8-flash-high
Deferred
just skill-checkcannot run in this environment:yqis absent fromPATH, so
scripts/skill_check.shfails on untouchedmainas well —an environment gap, not a repo defect.