Repository navigation
feat(notify): outbound webhook on done/failed/waiting (#167) - #658
Merged
currentbits merged 5 commits intoAug 22, 2026
Merged
Conversation
… We still have 5 items on in progress bt i think we finished
… Before when we had a pr it showed a link in the related thre
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
All six conflicts were the same shape: #169 (Linear API key) added its settings slice in exactly the spots the webhook slice lands. Kept both sides everywhere — settings default object, normalizeSettings, getSettings, setSettings, conceal/revealSettings, the AppSettings interface, the Settings pane keywords and the effect dep array. Verified on the merged tree: tsc --noEmit clean, test:electron 1911/1911, test:renderer 1490/1490, vite build ok. Co-Authored-By: Claude Opus 5 <[email protected]>
currentbits
deleted the
coder/fork-outbound-webhook-notifications-done-49e119
branch
October 3, 2026 16:07
currentbits
pushed a commit
that referenced
this pull request
Oct 19, 2026
Local main and origin/main had diverged: worker branches were merged into the local checkout while the same work squash-merged onto origin through PRs. 61 files, +3499/-1449, and #167 (outbound webhooks) had landed twice in two different revisions. Resolutions, 31 hunks across 10 files: - electron/notify.js — kept local's factored `postWebhook` + `testWebhook` ("Send test"). origin/main's squashed #658 inlined the same POST into dispatchWebhook and has no postWebhook anywhere, so it is the lesser revision. Behaviour is equivalent plus a result value the UI can show. - electron/main.js — took origin's boot chain (#641 moved retention to the periodic sweeper) and re-chained scheduleImagePrune after the orphan sweep. origin/main never had the image prune; dropping it would have silently disabled userData image GC. - electron/secrets.js, electron/store.js — took origin for linearApiKey (#169 ticket ingestion); local's webhook sealing auto-merged alongside. Both secrets now seal and open. - src/shared/ipc.ts, src/components/SettingsModal.tsx — kept both sides: linearApiKey from origin, WebhookTestResult and the Send test button from local. - The four settings tests — took origin's expected shape (adds linearApiKey: null) and kept local's added webhook cases. Verified on the merge result: typecheck clean, `npx vite build` clean, core 38, memory 204, electron 1928, renderer 1492 — 3662 tests, 0 fail. Co-Authored-By: Claude Opus 5 <[email protected]>
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 #167.
One generic outbound webhook hung off the existing notify event points. No notifier plugin slot, no per-service adapters.
What changed
electron/notify.js— splitshouldNotifyintoisNotifyTransition(focus-agnostic) plus the old focus-gated wrapper. The webhook uses the transition test directly, so it fires even while the window is focused. That is the point: it is the phone-push twin of the desktop notification. Mute and snooze still silence it.Title/Tagsheaders; everything else gets JSON carryingtext(Slack),content(Discord) andmessage, so one payload covers all three plus any generic endpoint. Fire-and-forget, 5sAbortSignal.timeout,redirect: "error", never throws into the run path.electron/main.js— dispatch hangs off the existingthread:updatedhandler, so--serve-websessions get it too. Desktop notifications and the webhook are independent toggles.electron/store.js—settings.webhook = { url, onDone, onFailed, onWaiting }. http(s)-only normalization so a corrupt store cannot POST somewhere unexpected; event toggles default true, so a pasted URL works immediately.electron/secrets.js— the URL is sealed in the keychain like MCP tokens. A Slack or Discord incoming-webhook URL is a credential.https://ntfy.sh/my-topicplaceholder) plus three event checkboxes.Verification
Run on the worker's worktree:
npx tsc --noEmit— cleannotify,webhook-settings,secrets,auto-settle-settings,budget-spendsettingsModalSize
Over the 400-line PR cap at 1084 changed lines, opened deliberately: ~490 of those are new tests, and the store/secrets/notify/UI pieces do nothing useful split apart.
Known gap
No "Send test" button, so the only way to confirm a URL works is to finish a run. Worth a follow-up.