Skip to content

[Bug]: Desktop previews lack slug validation and boolean generation protection #20086

Closed

Description

@brandonstensby-dotcom

Summary

In backend/database/desktop_previews.py, preview slug strings lack validation and expected_generation accepts booleans.

Proposed Fix

  1. Validate slug, source_sha, and sha256 strings.
  2. Reject booleans for expected_generation.
  3. Coerce updated_at to UTC.
  4. Hermetic unit tests.

Activity

  1. added
    intelligence
    p3
    docs-tooling
    and removed
    intelligence
    p3
    on Oct 6, 2026
  2. moved this from In progress to In review in omi TODO / bountieson Oct 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    docs-toolingp3

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions