peppa/openspec/changes/pep-114-stale-page-banner/proposal.md
Асель c739e877f5 PEP-114: a page opened before the site was updated asks to be reloaded
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 15:58:52 +05:00

9 lines
860 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Proposal: PEP-114 — открытая страница просит обновиться после обновления сайта
## Why
PM нажала «Оставить комментарий» на странице, открытой до перезапуска веба: ничего не произошло и ошибки не было.
## What Changes
- `lib/boot.ts`: id запуска веб-процесса (`globalThis`), `/api/health` отдаёт его в поле `boot`.
- `VersionWatch` в layout: раз в минуту и при возврате на вкладку сверяет `boot`; при расхождении — плашка «Peppa FACTORY обновилась. Обновите страницу» с кнопкой. Сама страницу не перезагружает (человек может печатать).