stash/internal/manager/config
Speck Pratt ebca98b46f Honor marker end times by default; skip zero-interval previews
Follow-up to the initial ceiling-configurable change, incorporating
product-review feedback. Two design shifts plus a read-side bug fix:

- Default MaxMarkerPreviewDuration flipped from 20 to 0 (ceiling
  disabled). User-set end times are now honored by default; the
  ceiling becomes an opt-in safety for imports or untrusted data.
  A buried setting at its old 20s default was unlikely to be found
  by users hitting the silent-truncation case.

- Non-positive intervals (endSeconds <= seconds) now skip preview
  generation entirely rather than falling back to the 20s default.
  A user who sets zero or negative duration either made a mistake
  (don't invent output) or marked a point without wanting a video
  (don't generate one they didn't ask for). Either way, skip with
  a warning log.

- Fix missing ConfigGeneralResult field wiring in
  resolver_query_configuration.go. The schema and mutation sides
  were wired in the initial commit but the query read path was
  missed, causing the Settings UI to display Go's zero-value (0)
  regardless of the stored config value.

Behavior change on upgrade: existing preview files remain unchanged.
To refresh previews for markers whose end times were previously
truncated at 20s, run Generate > Marker Previews with "Overwrite
Existing" enabled. To keep the old 20s ceiling, set Max marker
preview duration to 20 under Settings > System > Preview Generation.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-22 08:03:37 -04:00
..
config.go Honor marker end times by default; skip zero-interval previews 2026-04-22 08:03:37 -04:00
config_concurrency_test.go Fix setting pointers corrupting config in memory (#4868) 2024-05-23 10:56:18 +10:00
config_test.go Replace viper with koanf (#4845) 2024-05-21 11:24:47 +10:00
enums.go Add filesystem based blob storage (#3187) 2023-03-17 10:52:49 +11:00
init.go Upgrade to koanf 2.2.1 (#5985) 2025-11-06 18:20:52 +11:00
stash_config.go Fix panic when library path has trailing path separator (#6619) 2026-02-28 10:51:02 +11:00
tasks.go Image phash generation (#6497) 2026-01-27 17:00:56 +11:00
ui.go Respect user preference for type-to-create in image/scene multi-select form (#6376) 2025-12-11 08:22:29 +11:00