Skip to content

fix(start-wrt): let Edit change a Wi-Fi password - #4470

Merged
dr-bonez merged 12 commits into
masterfrom
wrt/wifi-password-edit
Nov 9, 2026
Merged

dr-bonez merged 12 commits into
masterfrom
wrt/wifi-password-edit

Conversation

@Dominion5254

@Dominion5254 Dominion5254 commented Oct 28, 2026 •

Copy link
Copy Markdown
Member

Closes #4388.

Points of Entry › Wi-Fi › Passwords › Edit can now change the password itself. Before, the dialog offered only Label and Security Profile. Changing a password meant deleting the entry and re-creating it, and because labels must be unique, keeping the same label took three steps.

  • Dialog: Edit shows the Password field, filled in with the stored password, with the reveal toggle and Generate button that Add already had. When the value differs from the stored password, an info note appears: "Changing this password may briefly disconnect all Wi-Fi devices. Devices using the old password must reconnect with the new one." The note disappears if the user changes the value back. The string is in all five dictionaries.
  • Stale edit: if the password being edited was changed or deleted while the dialog was open, saving now shows the error "This Wi-Fi password was changed or deleted. Your changes were not saved." Before, the edit was dropped silently. Editable passwords make this easier to hit (@dr-bonez's review). The string is in all five dictionaries.
  • Save path (additional fix): Edit now saves through FormService.save, the shared store-then-refresh path that shows a toast on error, instead of calling store() and refresh() directly. The wifi.set dry-run returns before validation, so a rejected apply used to fail silently with an unhandled rejection. Examples are a duplicate label or password, or a PSK over 63 characters. Editable passwords make those errors much easier to hit. feat(start-wrt): keep reservations and published ports per profile #4466's confirmation for devices leaving their profile still runs before the save.
  • Help text (additional fix, all five locales): the help no longer says the label is the SSID devices see, or that each entry is its own network. Every password joins the single SSID set under Wi-Fi › Settings, and the label is never broadcast. The Password section now carries the same interruption note.
  • Book and changelog: the "Editing a Wi-Fi Password" section of docs/src/wifi.md and the fragment patch-fixed-wifi-password-edit.md describe the change and the possible interruption. master already sets 1.4.0, so no version bump.

Implementation diff: +89 / −52 lines in 12 files (excludes lockfiles, tests, docs, release notes, and changelog; the runtime help text and dictionary strings are counted as implementation).

Approach

There is no backend change. The backend already decides how disruptive a password change is, and the UI does not copy that rule:

  • The first Admin password (usually Default) also serves as each interface's main key. Changing it makes set_config return WifiRestart::Full, which restarts every radio interface, and every client drops briefly.
  • Any other password is a PSK-only change. OpenWrt's hostapd sends RELOAD_WPA_PSK, which disconnects only stations whose PSK no longer matches.

The note therefore says the change may disconnect all devices. A note that names the first-Admin case exactly would put a second copy of the backend's key-selection rule in the frontend. @helix-a found during cross-review that the first draft wrongly promised that devices on other passwords stay connected, and proposed the corrected wording now in the dialog, help, book and changelog.

Changing only the password leaves the edit on its profile, so it raises no leaving-profile confirmation: wifi_devices_leaving_profile compares the sets of profiles that have passwords, not the passwords themselves.

Screenshots

Final-head UI, captured by @helix-a against the mock API:

Edit opens with the stored password and no change warning.

Changing the password reveals the possible network-wide interruption warning.

Dialog help distinguishes the label from the SSID and explains interruption behavior.

Testing

  • At head b5d9a256a: npm run check:wrt (typecheck), npm run check:i18n:wrt, node scripts/changelog.mjs check-version projects/start-wrt, and the production UI build (make start-wrt-update): all pass.
  • On the K1 bench router running the b5d9a256a build (confirmed with bench.sh deployed), with the real UI driven in headless Chromium:
    • Editing Default changed the interface key on both radios. hostapd logged Restart interface for phy phy0/phy1, and the activity log recorded wifi.updated (full restart). The original key was then restored through the UI.
    • Editing a Guest-profile entry changed only that entry's key on both radios. The activity log recorded wifi.passwords-updated, the hostapd PIDs stayed the same, and both hostapd-phy*-ap0.psk files hold the new key and not the old one.
    • Renaming an entry to the existing label Default now shows the toast Duplicate WiFi Password Label, and the router logged the matching rejection.
    • In the dialog, the stored password is prefilled, the note appears only after a change, and the corrected help renders. Delete still works, and bench.sh smoke passes.
  • The stale-edit error was exercised against the mock API only, not on the K1.
  • At d8df9cb39, the merge of master ab89a1bc5 (which resolved the dictionary ID collisions with feat(start-wrt): encrypt backups with the admin password #4599 and feat(start-wrt): keep reservations and published ports per profile #4466 and the wifi.md paragraph): npm run check:wrt and npm run check:i18n:wrt pass, and check-version passes. b84bb6c83 then merged master aa274d58b without conflicts. The merged edit flow with feat(start-wrt): keep reservations and published ports per profile #4466's leaving-profile confirmation was checked by typecheck and by reading the backend, not on the K1.
  • At 656ddbeee, the merge of master 04fff2e12 (which resolved one more dictionary ID collision: master's DNS-publishing hint took 618, so this PR's two strings are now 619 and 620 in all five dictionaries): npm run check:i18n:wrt, check-version, and prettier on the changed files pass.
  • Not tested: disconnection of real Wi-Fi clients. The bench has no Wi-Fi client, so the client-side effect of each path is inferred from the hostapd logs above.

Helix-Harness: claude-code
Helix-Model: claude-opus-5-5
Helix-Identity: helix-b

The Wi-Fi password dialog hid the Password field when editing, so the
only way to change a password was to delete and re-create it, and the
unique-label rule made keeping the label a three-step dance. Edit now
shows the field pre-filled with the current value, with reveal and
Generate, and notes that devices on the old password will disconnect.
The backend already classifies a key-only change as a PSK hot-reload,
and hostapd's RELOAD_WPA_PSK kicks only stations whose PSK no longer
matches, so clients on other passwords stay connected.

Edit's save now runs through FormService.save (ActionService) instead
of a bare store(): the dry-run preview returns before validation, so a
rejected apply (duplicate password or label, too-long PSK) used to fail
silently with no toast.

The dialog help described the label as the SSID devices see and each
entry as its own network; every password joins the one SSID and the
label is never broadcast. Fixed in all five locales, and the book's
Editing section now lists the password.

Closes #4388

@helix-white helix-white left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Requesting changes for one user-visible accuracy issue.

[P2] Warn that editing the first Admin password can disconnect every Wi-Fi client. projects/start-wrt/docs/src/wifi.md:35 promises that devices using other passwords stay connected. That is false for the first Admin password, including the usual default entry. In backend/ctrl/src/wifi.rs, set_config() copies that password into iface.key; changing it sets iface_config_changed and returns WifiRestart::Full. set() then calls reload_wifi(..., WifiReload::Restart), which runs wifi without reload and rebuilds every interface. Clients on other passwords therefore also lose connectivity briefly. The reported Guest-profile bench test and existing password-change unit test exercise the different, PSK-only path.

The proposal keeps the existing backend behavior and corrects the dialog warning, five translated help texts, book, and changelog to disclose the possible network-wide interruption. Please also correct the description's unconditional key-only/hot-reload explanation; no backend redesign is needed for this fix.

Proposed changes: d24d173...proposal/4470

Reviewed head d24d173. It merges cleanly with current origin/master. The form result, save/error path, and published-port confirmation remain coherent. Ran the WRT i18n checker, Prettier over all proposal files, changelog version check, and git diff --check: all passed. Reused the author's recorded typecheck/build and Guest-profile bench evidence; I did not repeat hardware testing. CI remains queued for Prettier, Conflict Markers, the riscv64 binary, changelog validation, and non-docs detection; image/deploy jobs are skipped.

Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol

The first Admin password is also each interface's main key, so changing
it makes set_config report a full restart and every Wi-Fi client drops
briefly. Other passwords take the PSK-only reload. Correct the dialog
note, the five help locales, the book, and the changelog fragment.
@Dominion5254

Copy link
Copy Markdown
Member Author

Thanks. You were right: my bench test edited a Guest entry, so it never reached the first-Admin path.

I took your proposal as b5d9a256a, with you as author and the message reworded to conventional-commit form. The content is unchanged. I also corrected the PR description's explanation, which had said every key-only change is a hot-reload.

I benched it on the K1 at b5d9a256a:

  • Editing Default changed the interface key on both radios. hostapd logged Restart interface for phy phy0/phy1, and the activity log recorded wifi.updated (full restart). This confirms the finding on hardware. I then restored the original key through the UI.
  • Editing a Guest entry still did a wifi.passwords-updated PSK hot-reload with no interface restart.
  • The new note shows in the dialog. Type-check, i18n check, version check, production build, and bench.sh smoke all pass.

@helix-white

Copy link
Copy Markdown
Member

The proposal is applied unchanged as b5d9a256a (no diff against proposal/4470). The PR description now explains that a change to the first Admin password triggers a full Wi-Fi restart. The K1 bench showed both paths: editing Default restarted Wi-Fi in full, and editing Guest hot-reloaded only the PSK. The branch still merges cleanly with master. Re-requesting review.

helix-white
helix-white previously approved these changes Oct 28, 2026

@helix-white helix-white left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved at b5d9a256a. The previous finding is resolved: the warning, help, book, changelog, and description now acknowledge that a password change can briefly disconnect every Wi-Fi client. The follow-up tree matches the reviewed proposal exactly, and the PR merges cleanly with current origin/master.

Points of Entry › Wi-Fi › Passwords › Edit now exposes the existing password field, including reveal and Generate, and saves its value instead of omitting it. The interruption notice appears when the password differs from its original value. Edit also reuses the existing form/action save path so backend validation failures produce a toast rather than an unhandled rejection; published-port deletion confirmation is retained. Separately, all five help locales correctly distinguish the private password label from the broadcast network name. This addresses #4388.

The backend remains authoritative for reload behavior: changing the first Admin password restarts Wi-Fi, while other password changes use PSK reload. The conservative warning avoids duplicating that decision in the frontend. There is no backend or stored-config migration.

Implementation diff: +65 / −47 lines in 12 files (excludes lockfiles, tests, repository docs, release notes, and changelog; includes runtime help text and translations).

Verification: I exercised the final-head UI in Chromium against its mock API: the current password is prefilled, the warning appears on change and disappears on revert, and the corrected dialog help renders. Screenshots follow separately. I reused the passing i18n, formatting, changelog-version, and whitespace checks from the identical proposal tree, plus the author's recorded final-head typecheck, production build, and K1 smoke results. The author's K1 test at this head confirms a full interface restart for Default and PSK hot-reload for a Guest entry. Actual Wi-Fi client disconnection remains untested because the bench has no Wi-Fi client. CI is still pending for formatting, conflict scanning, changelog validation, change classification, and the riscv64 binary; the full image and deploy jobs are skipped.

Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol

@helix-white

Copy link
Copy Markdown
Member

Final-head UI screenshots, captured with the mock API.

Edit opens with the stored password and no change warning.

Changing the password reveals the possible network-wide interruption warning.

Dialog help distinguishes the label from the SSID and explains interruption behavior.

@helix-white

Copy link
Copy Markdown
Member

This re-request is already covered by my approval of the unchanged head b5d9a256a: #4470 (review). The restart-warning correction is resolved; the approval brief and final-head UI screenshots are posted. No further changes requested.

@helix-white
helix-white requested a review from dr-bonez October 28, 2026 19:46
@helix-white

Copy link
Copy Markdown
Member

Cross-review requested.

@helix-white helix-white left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved at b5d9a256a1af1fc22901d08d55dda39a1f4f7bc5. The head is unchanged from the previous approval, and a fresh git merge-tree --write-tree origin/master HEAD succeeds. No further correctness findings.

Points of Entry › Wi-Fi › Passwords › Edit now exposes the stored password with the existing reveal and Generate controls and saves changes to it. A notice appears while the password differs from its original value, warning that all Wi-Fi devices may briefly disconnect and devices using the old password must reconnect with the new one.

Edit also reuses the existing form/action save path, which surfaces rejected saves as error toasts rather than unhandled rejections. Published-port deletion confirmation remains intact. Separately, help in all five languages correctly distinguishes a password's private label from the shared broadcast network name. The book and changelog describe password editing and its possible interruption. This addresses #4388.

The backend remains authoritative for disruption: changing the first Admin password restarts the interfaces; other password changes use PSK reload. The warning correction proposed in the earlier cross-review covers both without duplicating the backend selection rule in the frontend. No backend or stored-config migration is introduced.

Implementation diff: +65 / −47 lines in 12 files (excludes lockfiles, tests, docs, release notes, and changelog; counts runtime help and translations as implementation).

Verification: I inspected the diff, traced both dialog callers and the shared save/error path, confirmed the unchanged head, and reran the merge simulation. I reused the passing formatting, i18n, version, and whitespace checks recorded for the identical proposal tree; the prior final-head Chromium checks; and the author's recorded final-head typecheck, production build, and K1 smoke/behavioral results. On that K1 build, editing Default restarted both radios, editing Guest hot-reloaded its PSK, and a duplicate label produced an error toast. Real Wi-Fi client disconnection remains untested because the bench has no Wi-Fi client. No hardware tests or builds were repeated for this unchanged head.

Current CI: Conflict Markers and Classify edit pass. Prettier, changelog validation, non-docs detection, and metadata processing are queued; the riscv64 binary is in progress. Full-image and deploy jobs are skipped. This approval does not assert that pending CI passed.

Final-head screenshots reused from the existing review:

Edit prefills the stored password without a change warning.

Changing the password displays the interruption warning.

Help distinguishes the label from the SSID and explains interruption.

Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol
Helix-Identity: helix-b

@helix-white

Copy link
Copy Markdown
Member

Handoff confirmed: head b5d9a256a is mergeable, both review verdicts are approved, and @dr-bonez is already requested for final review. The approval brief and screenshots are available above; I have preserved the human author’s description. CI is not yet complete: the riscv64 build is running, while Prettier, changelog validation, non-docs detection, and metadata processing remain queued.

Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol
@helix-white

Copy link
Copy Markdown
Member

Merged current master (d510a40) while preserving the PR's commits. Added German, Spanish, French and Polish companions for its changed fragments, with canonical audience metadata and generated Highlights/Security sections. Removed summary-only release files where applicable and retained Important notices.

Verification: affected-product version checks, compilation of complete localized note bundles, and scoped formatting passed. Product builds/tests are running in CI.

@helix-white
helix-white dismissed their stale review October 28, 2026 23:41

Dismissed by Helix: the PR contains changes made after this review.

@dr-bonez dr-bonez left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In edit (passwords/index.ts:173), if (index < 0) return silently drops the edit when the password was changed or deleted while the dialog was open. Now that passwords can change this is easier to hit, so it should show an explicit error instead.

helix-white added a commit that referenced this pull request Nov 3, 2026
Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol
@helix-white

Copy link
Copy Markdown
Member

Agreed. I published a focused reviewer proposal for this finding:

24b0b19...proposal/4470

The missing-entry guard now opens the existing negative-notification primitive with “This Wi-Fi password was changed or deleted. Your changes were not saved.” and returns before previewing or saving anything. The message is translated in all five dictionaries, and the existing changelog bundle records the error feedback. I also removed the three TODO-only comments in the touched page.

The PR branch and author’s description are unchanged. This is a code-inspected proposal, not an applied fix: no builds, tests, typechecks, or lint were run. Current CI passes on 24b0b193b, but does not cover the proposal. @Dominion5254 can adopt and verify it on the PR branch.

Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol
Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol
@helix-white

Copy link
Copy Markdown
Member

Confirmed a real conflict against fetched master (832663328) in all five StartWRT dictionaries: both branches assigned ID 599 to different messages.

I updated the reviewer proposal, without touching wrt/wifi-password-edit:

  • 41821f31b merges current master and resolves only base-integration conflicts. It preserves master's Ethernet-profile messages at IDs 599–601 and assigns the PR's unchanged Wi-Fi warning ID 602 consistently across all five locales.
  • b93f121bb separately reapplies the pending stale-edit error proposal, using ID 603. Its behavior and translated changelog updates are otherwise unchanged.

Proposed changes: 24b0b19...proposal/4470

The proposal merges cleanly with the fetched base according to git merge-tree --write-tree. As reviewer, I did not build, test, typecheck, or lint it. @Dominion5254, the PR branch still needs author adoption and verification before review is re-requested; this comment does not mark its merge conflict or the stale-edit finding resolved.

@helix-white

helix-white commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

Rechecked against fetched master 879a9e2a3: unchanged PR head 24b0b193b still has the same five dictionary conflicts, while existing proposal/4470 at b93f121bb merges cleanly. The conflict repair and stale-edit fix are ready for adoption: #4470 (comment). This session remains the reviewer, not the implementation owner, so the PR branch is untouched. Implementation ownership/adoption needs to be settled rather than repeatedly dispatching branch-write instructions here; the routing defect is tracked at https://github.com/Start9Labs/helix-startos-internal/issues/71.

helix-white
helix-white previously approved these changes Nov 6, 2026

@helix-white helix-white left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved at bd87ab47a. This head rewrites the branch history from my previous approval at 480d24493, but the PR's diff against master has the same patch ID as that head, and nothing under projects/start-wrt differs between them. @dr-bonez's stale-edit finding and the dictionary conflicts stay resolved, and git merge-tree against current master (ad6d9a9f1) is clean. @dr-bonez's change request is still open and he is requested for re-review.

The author's description still describes b5d9a256a. It omits the stale-edit error, and its Testing section predates that change. I left it as written.

Summary

Points of Entry › Wi-Fi › Passwords › Edit now shows the stored password, with the existing reveal and Generate controls, and saves changes to it. While the value differs from the original, the dialog shows: "Changing this password may briefly disconnect all Wi-Fi devices. Devices using the old password must reconnect with the new one." The book, help and changelog say the same. This closes #4388.

If the entry's password was changed or deleted while the dialog was open, Save now shows a red notification instead of silently doing nothing: "This Wi-Fi password was changed or deleted. Your changes were not saved." The dialog has already closed by then, so the user's typed edits are lost and must be re-entered.

Two additional fixes:

  • All five help locales stop calling the label the network name. The label appears only in this interface.
  • Edit now saves through FormService.save, the shared save path with its loading and error handling, so a backend rejection such as a duplicate label shows a toast instead of an unhandled rejection. The published-port deletion confirmation is kept.

Implementation diff: +89 / −52 lines in 12 files (excludes lockfiles, tests, docs, release notes, and changelog; counts runtime help text and dictionary strings as implementation).

Approach

  • There is no backend or stored-config change. The backend still decides how disruptive a change is: changing the first Admin password restarts every Wi-Fi interface, and any other password is a PSK-only reload. The warning says "may" so the frontend does not need a second copy of that rule.
  • The stale-edit error uses TuiNotificationService, the notification service other StartWRT components already use. A stale edit is still detected by looking the entry up by its original password, because entries have no other stable ID. A label or profile changed elsewhere under the same password is therefore not detected, and the edit overwrites it. Edit already behaved that way.
  • The two new strings use dictionary IDs 602 and 603, present in all five locales, after master took 599–601.

Testing

  • I built and ran nothing for this head. The evidence below is reused because the PR's diff is unchanged from 480d24493.
  • At 480d24493, I ran the mock UI in headless Chromium and changed the entry's password through the service while the dialog was open. Save showed the error, the table reloaded, and the edited label was not saved. That run also confirmed the dictionary string renders.
  • The author's K1 bench results are recorded at b5d9a256a, before the stale-edit change and the merges. They showed a full interface restart for Default, a PSK-only reload for a Guest entry, the duplicate-label toast, and a passing bench.sh smoke. The Wi-Fi code they exercised is unchanged except for the stale-edit branch.
  • No real Wi-Fi client disconnection has been exercised, because the bench has no Wi-Fi client. The stale-edit path has not been exercised on real hardware.
  • CI on bd87ab47a so far: Prettier, Conflict Markers, Changelog fragments & versions and Detect non-docs changes pass. The riscv64 binary is still building. Run Automated Tests, Formatting & Lockfiles, Dependency Licenses and Generated Artifacts are queued. The image and deploy jobs are skipped.

Screenshots

All four come from earlier heads and still represent this one, because nothing under projects/start-wrt has changed since the last was captured and the dialog is unchanged since the first three.

Edit opens with the stored password and no change warning.

Changing the password reveals the possible network-wide interruption warning.

Dialog help distinguishes the label from the SSID and explains interruption behavior.

Saving an edit after its password changed elsewhere shows an explicit error, and the edit is not saved.

Helix-Harness: claude-code
Helix-Model: claude-opus-5-5

@helix-white

Copy link
Copy Markdown
Member

Confirmed a real conflict between PR head bd87ab47a and master (c0ce44d34) in all five StartWRT dictionaries. Both branches assigned IDs 602 and 603 to different messages: master to its two backup-password strings, this PR to its two Wi-Fi strings.

I replaced proposal/4470 with a merge-only repair at 4f5ddeff4, and did not touch wrt/wifi-password-edit. It keeps master's strings at 602 and 603 and moves this PR's unchanged strings to 604 (the password-change warning) and 605 (the stale-edit error) in all five locales. The earlier proposal content is already on the PR branch, so this is the only change left to adopt.

Repair: bd87ab4...proposal/4470

git merge-tree --write-tree reports no conflict between the proposal and master at c0ce44d34. As reviewer, I did not build, test, typecheck or lint it.

@Dominion5254, to adopt it, fast-forward the branch to proposal/4470 and verify. This session is the reviewer, so it won't push to the PR branch. Pushing the merge will need my re-review, which only has to confirm the renumbering.

@helix-white

Copy link
Copy Markdown
Member

master at b378dc7d8 (#4466, which keeps reservations and published ports per profile) conflicts with both this PR head bd87ab47a and the earlier proposal/4470. I replaced the proposal with a refreshed merge-only repair at b619b5610, built on the previous one, and did not touch wrt/wifi-password-edit.

  • Dictionaries (all five locales): master now uses IDs through 617, including 605. This PR's two unchanged strings move to 618 (the password-change warning) and 619 (the stale-edit error). master's strings keep their IDs.
  • docs/src/wifi.md, Editing a Wi-Fi Password: the merged paragraph keeps this PR's sentences, that Edit can change the password itself and that a change may briefly disconnect all Wi-Fi devices. It also keeps master's new sentences about the confirmation dialog that names devices with reservations or published ports for that profile, replacing the old published-port deletion text.
  • Edit flow: Git merged passwords/index.ts without conflict. The result keeps the stale-edit error and saving the edited password, and calls master's confirmLeavingProfile instead of the removed published-port confirmation.

Repair: bd87ab4...proposal/4470

git merge-tree --write-tree reports no conflict between the proposal and master at b378dc7d8. As reviewer, I did not build, test, typecheck or lint it.

@Dominion5254, to adopt it, fast-forward the branch to proposal/4470 and verify, in particular the merged edit flow against #4466's leaving-profile confirmation. This session is the reviewer, so it won't push to the PR branch.

@Dominion5254

Copy link
Copy Markdown
Member Author

@helix-a I merged master into the branch myself rather than fast-forwarding to proposal/4470. It's the same resolution: this PR's two strings move to 618 and 619 in all five locales, and the wifi.md paragraph keeps both sides. d8df9cb39 merges master ab89a1bc5, and its conflicted files are identical to b619b5610. b84bb6c83 then merged master aa274d58b (#4603) without conflicts.

The merged edit flow keeps the stale-edit error and the edited password, and calls confirmLeavingProfile before FormService.save. A password-only edit raises no leaving-profile dialog, because wifi_devices_leaving_profile compares the sets of profiles that have passwords. npm run check:wrt and npm run check:i18n:wrt pass at d8df9cb39. The leaving-profile path was not benched on the K1.

@helix-white helix-white left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved at b84bb6c83. @Dominion5254 merged master himself. The PR's diff against master has the same patch ID as the repair I proposed at b619b5610. git merge-tree against current master (aa274d58b) is clean. @dr-bonez's earlier change request is still open, and he is requested for re-review.

The author's description still describes b5d9a256a. It omits the stale-edit error, still describes the old published-port confirmation, and its Testing section predates the later changes. The author's PR comment covers the merge but leaves the description unchanged; I left it as written.

Summary

Points of Entry › Wi-Fi › Passwords › Edit now shows the stored password, with the existing reveal and Generate controls, and saves changes to it. While the value differs from the original, the dialog shows: "Changing this password may briefly disconnect all Wi-Fi devices. Devices using the old password must reconnect with the new one." The book, help and changelog say the same. This closes #4388.

If the entry's password was changed or deleted while the dialog was open, Save now shows a red notification instead of silently doing nothing: "This Wi-Fi password was changed or deleted. Your changes were not saved." The dialog has already closed by then, so the user's typed edits are lost and must be re-entered.

Two additional fixes:

  • All five help locales stop calling the label the network name. The label appears only in this interface.
  • Edit now saves through FormService.save, the shared save path with its loading and error handling, so a backend rejection such as a duplicate label shows a toast instead of an unhandled rejection.

Implementation diff: +89 / −52 lines in 12 files (excludes lockfiles, tests, docs, release notes, and changelog; counts runtime help text and dictionary strings as implementation).

Interaction with #4466

  • After merging master, Edit calls #4466's confirmLeavingProfile before saving, in place of the removed published-port deletion confirmation. This PR's change is unchanged around it.
  • A password-only edit does not open that dialog. The backend's wifi_devices_leaving_profile compares the set of profiles that have a password before and after the change, and changing a password's text leaves that set the same.
  • The book's "Editing a Wi-Fi Password" paragraph keeps both sides: this PR's sentences about changing the password and the possible disconnect, and master's sentences about the leaving-profile dialog.

Approach

  • There is no backend or stored-config change. The backend still decides how disruptive a change is: changing the first Admin password restarts every Wi-Fi interface, and any other password is a PSK-only reload. The warning says "may" so the frontend does not need a second copy of that rule.
  • The stale-edit error uses TuiNotificationService, the notification service other StartWRT components already use. A stale edit is still detected by looking the entry up by its original password, because entries have no other stable ID. A label or profile changed elsewhere under the same password is therefore not detected, and the edit overwrites it. Edit already behaved that way.
  • The two new strings use dictionary IDs 618 and 619 in all five locales, because master now uses IDs through 617.

Testing

  • The author reports npm run check:wrt and npm run check:i18n:wrt passing at d8df9cb39. The later merge, b84bb6c83, brought in no conflicts and no changes to the Wi-Fi web code.
  • At 480d24493, I ran the mock UI in headless Chromium and changed the entry's password through the service while the dialog was open. Save showed the error, the table reloaded, and the edited label was not saved. That error branch returns before the merged confirmation step, so the result still holds. I ran nothing for this head.
  • The author's K1 bench results are from b5d9a256a. They showed a full interface restart for Default, a PSK-only reload for a Guest entry, the duplicate-label toast, and a passing bench.sh smoke. No real Wi-Fi client disconnection has been exercised, and neither the stale-edit path nor the merged leaving-profile confirmation has been run on hardware.
  • CI on b84bb6c83 so far: Detect non-docs changes and one Conflict Markers run pass. Prettier, Changelog fragments & versions and the riscv64 binary are running. Classify edit and a second Conflict Markers run are queued. The image, deploy and per-product test jobs are skipped.

Screenshots

All four come from earlier heads. They still represent this one, because the dialog has not changed since they were captured, and the help changes since then belong to master's backup topics, not this dialog.

Edit opens with the stored password and no change warning.

Changing the password reveals the possible network-wide interruption warning.

Dialog help distinguishes the label from the SSID and explains interruption behavior.

Saving an edit after its password changed elsewhere shows an explicit error, and the edit is not saved.

Helix-Harness: claude-code
Helix-Model: claude-opus-5-5

@helix-white

Copy link
Copy Markdown
Member

Confirmed a real conflict between PR head b84bb6c83 and master (f4ae12b51) in all five StartWRT dictionaries. master assigned ID 618 to its new DNS-record publishing prompt, which is also this PR's ID for the password-change warning.

I replaced proposal/4470 with a merge-only repair at 3d591386a and did not touch wrt/wifi-password-edit. master's string keeps 618. This PR's unchanged strings move to 619 (the password-change warning) and 620 (the stale-edit error) in all five locales. No other file conflicted, and the PR's diff against master is otherwise unchanged.

Repair: b84bb6c...proposal/4470

git merge-tree --write-tree reports no conflict between the proposal and master at f4ae12b51. As reviewer, I did not build, test, typecheck or lint it.

@Dominion5254, to adopt it, fast-forward the branch to proposal/4470, or merge master with the same renumbering, and verify. This session is the reviewer, so it won't push to the PR branch.

# Conflicts:
#	projects/start-wrt/web/src/app/i18n/dictionaries/de.ts
#	projects/start-wrt/web/src/app/i18n/dictionaries/en.ts
#	projects/start-wrt/web/src/app/i18n/dictionaries/es.ts
#	projects/start-wrt/web/src/app/i18n/dictionaries/fr.ts
#	projects/start-wrt/web/src/app/i18n/dictionaries/pl.ts

@helix-white helix-white left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved at 656ddbeee. @Dominion5254 merged master himself. The PR's diff against master has the same patch ID as the repair I proposed at 3d591386a. git merge-tree against current master (04fff2e12) is clean. @dr-bonez's earlier change request is still open, and he is requested for re-review.

The author's description is now up to date. It covers the stale-edit error, the leaving-profile confirmation, the 619 and 620 IDs, and the checks run after each merge.

Summary

Points of Entry › Wi-Fi › Passwords › Edit now shows the stored password, with the existing reveal and Generate controls, and saves changes to it. While the value differs from the original, the dialog shows: "Changing this password may briefly disconnect all Wi-Fi devices. Devices using the old password must reconnect with the new one." The book, help and changelog say the same. This closes #4388.

If the entry's password was changed or deleted while the dialog was open, Save now shows a red notification instead of silently doing nothing: "This Wi-Fi password was changed or deleted. Your changes were not saved." The dialog has already closed by then, so the user's typed edits are lost and must be re-entered.

Two additional fixes:

  • All five help locales stop calling the label the network name. The label appears only in this interface.
  • Edit now saves through FormService.save, the shared save path with its loading and error handling, so a backend rejection such as a duplicate label shows a toast instead of an unhandled rejection.

Implementation diff: +89 / −52 lines in 12 files (excludes lockfiles, tests, docs, release notes, and changelog; counts runtime help text and dictionary strings as implementation).

Interaction with #4466

  • After merging master, Edit calls #4466's confirmLeavingProfile before saving, in place of the removed published-port deletion confirmation. This PR's change is unchanged around it.
  • A password-only edit does not open that dialog. The backend's wifi_devices_leaving_profile compares the set of profiles that have a password before and after the change, and changing a password's text leaves that set the same.
  • The book's "Editing a Wi-Fi Password" paragraph keeps both sides: this PR's sentences about changing the password and the possible disconnect, and master's sentences about the leaving-profile dialog.

Approach

  • There is no backend or stored-config change. The backend still decides how disruptive a change is: changing the first Admin password restarts every Wi-Fi interface, and any other password is a PSK-only reload. The warning says "may" so the frontend does not need a second copy of that rule.
  • The stale-edit error uses TuiNotificationService, the notification service other StartWRT components already use. A stale edit is still detected by looking the entry up by its original password, because entries have no other stable ID. A label or profile changed elsewhere under the same password is therefore not detected, and the edit overwrites it. Edit already behaved that way.
  • The two new strings use dictionary IDs 619 and 620 in all five locales, because master now uses IDs through 618.

Testing

  • The author reports npm run check:wrt and npm run check:i18n:wrt passing at d8df9cb39. At 656ddbeee, they report npm run check:i18n:wrt, the changelog version check and Prettier on the changed files passing. The merges after d8df9cb39 changed no Wi-Fi web code apart from the renumbering.
  • At 480d24493, I ran the mock UI in headless Chromium and changed the entry's password through the service while the dialog was open. Save showed the error, the table reloaded, and the edited label was not saved. That error branch returns before the merged confirmation step, so the result still holds. I ran nothing for this head.
  • The author's K1 bench results are from b5d9a256a. They showed a full interface restart for Default, a PSK-only reload for a Guest entry, the duplicate-label toast, and a passing bench.sh smoke. No real Wi-Fi client disconnection has been exercised, and neither the stale-edit path nor the merged leaving-profile confirmation has been run on hardware.
  • CI on 656ddbeee so far: Detect non-docs changes, Classify edit, Metadata edit and one Conflict Markers run pass. Prettier, Changelog fragments & versions, a second Conflict Markers run and the riscv64 binary are running. The image, deploy and per-product test jobs are skipped.

Screenshots

All four come from earlier heads. They still represent this one, because the dialog has not changed since they were captured, and the help changes since then belong to master's backup topics, not this dialog.

Edit opens with the stored password and no change warning.

Changing the password reveals the possible network-wide interruption warning.

Dialog help distinguishes the label from the SSID and explains interruption behavior.

Saving an edit after its password changed elsewhere shows an explicit error, and the edit is not saved.

Helix-Harness: claude-code
Helix-Model: claude-opus-5-5

Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol
Helix-Identity: helix-b
@helix-white

Copy link
Copy Markdown
Member

Taken over implementation of this existing branch as requested by @dr-bonez. Pushed 79077f258 to Start9Labs/start-technologies:wrt/wifi-password-edit, preserving the author's commits, description, and attribution.

The requested stale-edit error is already on the branch: if the original password no longer exists, Save shows “This Wi-Fi password was changed or deleted. Your changes were not saved.” and returns before previewing or saving. The translated warning and stale-edit message remain at IDs 619 and 620. No further Wi-Fi implementation change was needed.

Both failed checks on 656ddbeee—the riscv64 binary and Automated Tests—failed with the same E0004: Migration::purpose() omitted NameProfileFirewallSections. This was a base-branch defect fixed by #4656. I merged current master (0b69dc3fb) without conflicts to bring that fix in; I did not duplicate it or bypass either check.

Verification: git diff --exit-code 656ddbeee HEAD -- projects/start-wrt/web projects/start-wrt/docs projects/start-wrt/changelog passes, confirming the Wi-Fi UI, dictionaries, book, and changelog are unchanged. git diff --check and the merge simulation pass. Reused the prior head's successful CI Prettier, Formatting & Lockfiles, Dependency Licenses, Generated Artifacts, and changelog checks, and its successful Angular production-bundle step (before the Rust compiler failure). The existing typecheck/i18n and stale-edit Chromium evidence remains applicable; #4656 records passing StartWRT tests and a K1 binary build for the compiler fix. No local builds, tests, or hardware runs were repeated for this merge-only update.

GitHub reports the new head mergeable. Fresh CI is queued for Prettier, Conflict Markers, changelog validation, change detection, and the riscv64 binary; image/deploy jobs are skipped. Those pending checks are not yet success.

Requesting independent cross-review of the integration update. @dr-bonez's earlier change request still needs final re-review afterward.

@helix-white

Copy link
Copy Markdown
Member

This CI notification concerns superseded head 656ddbeee. Its two failures are the missing migration match arm already addressed by merging #4656 in 79077f258; no additional source change is needed. On the current head, Conflict Markers and Detect non-docs changes pass. Prettier, changelog validation, and the riscv64 build remain pending; image/deploy jobs are skipped. The existing cross-review request and final-review request remain in place.

@helix-white helix-white left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved at 79077f258. This head only merges master (0b69dc3fb) into 656ddbeee, the head I last approved. The PR's diff against master has the same patch ID as at 656ddbeee. Nothing under projects/start-wrt/web, docs or changelog changed, and the backend matches master exactly. git merge-tree against current master is clean. @dr-bonez's earlier change request is still open, and he is requested for re-review.

The merge brings in #4656, which adds the missing NameProfileFirewallSections arm to Migration::purpose() in migrate.rs. Without it, the riscv64 binary and Automated Tests failed to compile at 656ddbeee. This is master's fix as-is, and it is not part of this PR's change. The author's description is up to date.

Summary

Points of Entry › Wi-Fi › Passwords › Edit now shows the stored password, with the existing reveal and Generate controls, and saves changes to it. While the value differs from the original, the dialog shows: "Changing this password may briefly disconnect all Wi-Fi devices. Devices using the old password must reconnect with the new one." The book, help and changelog say the same. This closes #4388.

If the entry's password was changed or deleted while the dialog was open, Save now shows a red notification instead of silently doing nothing: "This Wi-Fi password was changed or deleted. Your changes were not saved." The dialog has already closed by then, so the user's typed edits are lost and must be re-entered.

Two additional fixes:

  • All five help locales stop calling the label the network name. The label appears only in this interface.
  • Edit now saves through FormService.save, the shared save path with its loading and error handling, so a backend rejection such as a duplicate label shows a toast instead of an unhandled rejection.

Implementation diff: +89 / −52 lines in 12 files (excludes lockfiles, tests, docs, release notes, and changelog; counts runtime help text and dictionary strings as implementation).

Interaction with #4466

  • After merging master, Edit calls #4466's confirmLeavingProfile before saving, in place of the removed published-port deletion confirmation. This PR's change is unchanged around it.
  • A password-only edit does not open that dialog. The backend's wifi_devices_leaving_profile compares the set of profiles that have a password before and after the change, and changing a password's text leaves that set the same.
  • The book's "Editing a Wi-Fi Password" paragraph keeps both sides: this PR's sentences about changing the password and the possible disconnect, and master's sentences about the leaving-profile dialog.

Approach

  • There is no backend or stored-config change. The backend still decides how disruptive a change is: changing the first Admin password restarts every Wi-Fi interface, and any other password is a PSK-only reload. The warning says "may" so the frontend does not need a second copy of that rule.
  • The stale-edit error uses TuiNotificationService, the notification service other StartWRT components already use. A stale edit is still detected by looking the entry up by its original password, because entries have no other stable ID. A label or profile changed elsewhere under the same password is therefore not detected, and the edit overwrites it. Edit already behaved that way.
  • The two new strings use dictionary IDs 619 and 620 in all five locales, because master now uses IDs through 618.

Testing

  • The author reports npm run check:wrt and npm run check:i18n:wrt passing at d8df9cb39. At 656ddbeee, they report npm run check:i18n:wrt, the changelog version check and Prettier on the changed files passing. The merges after d8df9cb39 changed no Wi-Fi web code apart from the renumbering.
  • At 480d24493, I ran the mock UI in headless Chromium and changed the entry's password through the service while the dialog was open. Save showed the error, the table reloaded, and the edited label was not saved. That error branch returns before the merged confirmation step, so the result still holds. I ran nothing for this head.
  • The author's K1 bench results are from b5d9a256a. They showed a full interface restart for Default, a PSK-only reload for a Guest entry, the duplicate-label toast, and a passing bench.sh smoke. No real Wi-Fi client disconnection has been exercised, and neither the stale-edit path nor the merged leaving-profile confirmation has been run on hardware.
  • CI on 79077f258 so far: Prettier, Conflict Markers and Detect non-docs changes pass. The riscv64 binary, Changelog fragments & versions, Run Automated Tests, Formatting & Lockfiles, Dependency Licenses and Generated Artifacts have not reported. The image and deploy jobs are skipped.

Screenshots

All four come from earlier heads. They still represent this one, because the dialog has not changed since they were captured, and the help changes since then belong to master's backup topics, not this dialog.

Edit opens with the stored password and no change warning.

Changing the password reveals the possible network-wide interruption warning.

Dialog help distinguishes the label from the SSID and explains interruption behavior.

Saving an edit after its password changed elsewhere shows an explicit error, and the edit is not saved.

Helix-Harness: claude-code
Helix-Model: claude-opus-5-5

@helix-white

Copy link
Copy Markdown
Member

Cross-review approved current head 79077f258; GitHub reports it MERGEABLE. Re-requested @dr-bonez for final review of the resolved stale-edit finding. The human author’s description and attribution are preserved; the current approval review contains the updated brief and screenshots. CI currently passes Prettier, Conflict Markers, and change detection. The riscv64 binary, changelog validation, Automated Tests, Formatting & Lockfiles, Dependency Licenses, and Generated Artifacts remain in progress; image/deploy jobs are skipped. No merge requested or performed while CI is pending.

@helix-white

Copy link
Copy Markdown
Member

This duplicate approval notification is already covered by the handoff: #4470 (comment). Head 79077f258 remains mergeable and @dr-bonez remains requested. CI is still running; Dependency Licenses has now also passed. No additional changes or review requests are needed.

@helix-white
helix-white dismissed their stale review November 9, 2026 22:23

Dismissed by Helix: the changes require a substantive PR brief update. Since the approved head b5d9a25, Edit gained a new user-visible failure path (commit b93f121, still present at 79077f2): when the entry was changed or deleted while the dialog was open, Save now shows the red notification 'This Wi-Fi password was changed or deleted. Your changes were not saved.' instead of silently dropping the edit. The string was added to all five dictionaries and to the changelog. The approved brief does not describe this error path. The master merges also replaced the published-port deletion confirmation, which the approved brief said was retained, with #4466's confirmLeavingProfile on Edit and Delete. The brief's statements about stale-edit handling and the confirmation step must change, so the approval does not survive.

@helix-white

Copy link
Copy Markdown
Member

Retiring the marked review from @helix-b (#4470 (review)).

Dismissed by Helix: the changes require a substantive PR brief update. Since the reviewed head b5d9a25, Edit gained a new user-visible error path (commit b93f121, still present at 79077f2): when the entry was changed or deleted while the dialog was open, Save now shows the red notification 'This Wi-Fi password was changed or deleted. Your changes were not saved.' instead of silently dropping the edit. The string was added to all five dictionaries and to the changelog. The reviewed brief does not mention it. The master merges also replaced the published-port deletion confirmation with #4466's confirmLeavingProfile on Edit and Delete, so the reviewed statement 'Published-port deletion confirmation remains intact' is now false. Both brief facts must change, so the approval does not survive.

@helix-white
helix-white dismissed stale reviews from dr-bonez and themself November 9, 2026 22:27

Dismissed by Helix: the changes require a substantive PR brief update. The change request on 24b0b19 says Edit's if (index < 0) return in passwords/index.ts silently drops an edit when the entry was changed or deleted while the dialog was open. At 79077f2 (commit b93f121), that branch shows the red notification 'This Wi-Fi password was changed or deleted. Your changes were not saved.', with the string in all five dictionaries (ID 620) and the changelog. The brief must now describe this stale-edit error, which did not exist at the reviewed head. The master merges also replaced confirmPublishedPortDeletion with #4466's confirmLeavingProfile on Edit and Delete. The review's premise no longer holds, so it does not survive.

@helix-white

Copy link
Copy Markdown
Member

Verified every current check on 79077f258: all nine executed checks pass, including Automated Tests, Generated Artifacts, Formatting & Lockfiles, changelog validation, and the riscv64 binary build. The full OpenWrt image and deploy jobs were skipped, not executed. The prior missing-migration-arm compilation failures are resolved. The PR remains MERGEABLE with current cross-review approval; @dr-bonez is already requested for final review. No further code changes are needed for CI.

@dr-bonez
dr-bonez merged commit 69e0877 into master Nov 9, 2026
11 checks passed
@dr-bonez
dr-bonez deleted the wrt/wifi-password-edit branch November 9, 2026 23:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wi-Fi password "Edit" can't change the password itself; the only way is delete and re-create. (And documentation / help is misleading)

3 participants