feat(#83): Phase 6 — runtime reconnect + status polling + security + docs - #85
Merged
Merged
Conversation
- reconnect_connection(id): rebuilds live uteke_client from a connection without app restart; also health-checks and updates status - set_primary_connection now live-swaps the active backend immediately - stores/connections.svelte.ts: reactive store with periodic health polling (primary every 15s, all every 60s) so status badges stay fresh - Reconnect button per connection card - Security: db file perms 0600 on startup; clear_token wipes auth_token to NULL before row deletion; mask_token_log redacts tokens in logs - Docs: .agent.md connection-layer rule; CHANGELOG entry
This was referenced Jul 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #83
Summary
Phase 6 of the Remote Connection Manager — runtime reconnect (no restart),
live status polling, security polish, and docs.
Changes
Backend (src-tauri/)
from a connection config (local -> ensure_uteke_server, remote -> skip spawn),
swaps AppState.uteke_client in place, then health-checks and updates status.
(previously DB-only — switching primary required a restart).
(prevents forensic recovery from freed sqlite pages).
Frontend (src/lib/)
primary every 15s, all connections every 60s. Status badges stay fresh when a
server goes up/down without the user clicking "Test".
per card; onDestroy stops polling.
Docs
Acceptance (from #83)
Validation