#!/usr/bin/env python3 """Inject co-op branding + a per-build marker into the built index.html. Non-fatal by design: if the file is missing or upstream changes shape, we exit 0 so a cosmetic patch can never break a version bump. The x-coop-build marker makes index.html unique per build, which changes the service worker's precache revision — otherwise stale clients keep running the old cached app shell (the "my changes never deploy" class of bug). """ import time PATH = "/app/code/librechat/client/dist/index.html" try: html = open(PATH, encoding="utf-8").read() except OSError: raise SystemExit(0) # 1. Title html = html.replace("