Currently hitting refresh only re-fetches current python module which was loaded from a <script> tag, because Pyscript 2025.3.1 doesn't support config reload.
As a workaround, user can click 'refresh all' button which forces reload of the whole page and resources (except pyodide).
For simple games the workaround is sufficient, if/when we plan to support multi-file games with big resources we might need to review this.