Repository navigation
Conversation
Describe the API contract, cross-process config ownership, restart orchestration, and key migration; record ADR 0002 and add glossary terms for Settings, Revision, Scope, API key, and Restart.
Add POST /api/webhook/test, which sends a test Webhook to a candidate target and secret without changing live Settings. The call is offloaded from the event loop, never follows redirects, and scrubs URL parts from errors. Covered against a local HTTP receiver.
Read Webhook timeout, maximum attempts, backoff, and Outbox capacity from the live Settings on each Delivery attempt and at enqueue. Missing or invalid values fall back to today's constants, a malformed Settings file cannot crash the dispatcher, and explicit constructor overrides still win.
Add regression coverage for remote Webhook and retry changes surviving a stale local save, and for invalid stale forms leaving Settings unchanged.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Bump the app version and changelog to 1.2.0, document the remote Settings and control API in the README, and refresh version references.
Move both text fields out of MDListItem's trailing slot into full-width rows so long Webhook targets are editable on Android.
Remove unused key adapters, share the health uptime calculation, rename the dispatcher override helper, reuse the default Webhook shape on reset, and refresh the remote API docs. Drop the no-op release-workflow comment edits.
Write resp.json atomically, give Restart intents an id so a later request is not suppressed, stop persisting a v1 key migration on launch, use only the documented key owner marker, document next-launch boot semantics, and replace private restart state in tests with a clock patch.
Reject Webhook targets without a hostname or with an invalid port; capture the Settings error message before scheduling the toast; keep unsaved port edits on a Webhook-only save; publish the bound port so the UI refreshes after a Restart; fall back to the live server port for restart_required; normalize the Webhook-test timeout; reject Restart when no consumer is registered.
Add remote Settings and control API (1.2.0)
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.
See the CHANGELOG for more details