#3672·Provenance

[Agent] Library refresh needs to function properly.

Author: tomp8628Created Aug 20, 2026Updated Sep 24, 2026
LabelsbugtvOSimporter-relatedagent-workneeds-manual-intervention

Objective

In TVOS when the Library view option is set to TV Media (Drawer), the game library does not refresh when roms are manually added to rom directories.

Acceptance Criteria

When a rom is manually placed in a rom directory, and the library view is set to TV Media (Drawer) Provenance TVOS

  • periodically scan rom sub directories for new files
  • populate the roms in the library with metadata and cover art.
  • no attempt to match the files to a system should be made since the files are already in their correct directory
  • this functionality currently exists in UIKit (Default) library view
  • if functionality cannot be integrated, a Rescan Library, or Refresh Library button should be added to the TV Nedia Drawer Home Screen.

Affected Modules

  • PVLibrary
  • ProvenanceTVOS

Constraints

  • Do not modify submodule source code
  • Do not modify project.pbxproj unless necessary

Test Plan

  • swift build passes for affected modules
  • swift test passes for affected modules
  • swiftlint reports no new violations
  • a rom is added to a Roms subdirectory while a Provenance session is in use
  • Provenance will either periodically (30- 60 seconds) , scan rom sub directories for new files and populate any new roms with metadata and cover art. Or
  • Create a new button in the side menu to rescan the rom subdirectories and refresh the library, populating new roms based on new files that are found.

Estimated Scope

< 50 lines

Source: Provenance-Emu/Provenance