Skip to content

settings: a huge interval value (1e400) saves as null and the next start rejects all settings #46

Closed

Description

@scuttletoby

Minor 2 from the data-integrity (settings) lens on #42: #42 (comment). Pre-existing upstream bug, not added by #42.

If settings.json holds a huge interval such as 1e400 (hand edit or a misbehaving client), the next save writes
null. After the next restart the whole file is rejected: every setting falls back to its default, threads stop
continuing after a server update, and saves are refused until the file is fixed by hand. Upstream's
automaticGitFetchInterval fails the same way (confirmed with a probe).

Fix: clamp or reject non-finite Duration values for all interval settings at once (schema level), with a test.
Upstream-owned: the owner decides whether to report it upstream; agents never file upstream.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions