Skip to content

fix(update): restore the browser after switching builds - #397

Merged
Ed1s0nZ merged 3 commits into
AIPentest:mainfrom
Sycun:codex/fix-update-auto-refresh
Nov 13, 2026
Merged

Ed1s0nZ merged 3 commits into
AIPentest:mainfrom
Sycun:codex/fix-update-auto-refresh

Conversation

@Sycun

@Sycun Sycun commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

After a one-click update, the browser can stay on the old page if it misses the final progress response. With automatically generated HTTPS certificates, restarting the server also used to change the certificate, so Chrome could reject the request that checks whether the new process is ready.

The update page now starts checking when the server accepts the job. It identifies the replacement by the activation ID and checks the running Git revision when the target is known. The settings page shows the running build revision alongside the checkout revision.

For local HTTPS with tls_auto_self_sign, the server saves the certificate and private key under data/tls/ and reuses them on restart. The first upgrade from an in-memory certificate creates a new certificate, so Chrome may still show a warning on that transition.

Validation

  • On this branch: 337 frontend tests, go build ./..., the self-update and authentication Go race tests, and shell syntax checks passed.
  • On Kali, a real update reproduced the Chrome certificate error after the process switched. The existing administrator session was still valid after reconnecting.
  • In an isolated Chrome HTTPS update with the certificate fix, the certificate fingerprint stayed the same, the new build activated, and the page automatically returned to the update console with the original session.

(cherry picked from commit aa7a533497a6b524fbd4d7d330ca06b04414e2fb)
# Conflicts:
#	internal/app/app.go
(cherry picked from commit 4f2af3371bd5ff89721f222462713bc16beed4b2)
@Sycun Sycun changed the title fix(update): reload after the accepted update takes effect fix(update): restore the browser after switching builds Nov 13, 2026
@Ed1s0nZ
Ed1s0nZ merged commit b165fb4 into AIPentest:main Nov 13, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants