Repository navigation
Reconcile local main with origin/main (webhook landed twice, 61-file drift) - #663
Merged
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
… Fork: userData image stores (tool-images/, attachments/) are
… Fork: Outbound webhook notifications (done/failed/waiting) f
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]>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
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.
Housekeeping, no new features. Local
mainandorigin/mainhad drifted apart by 61 files, +3499/-1449, because worker branches get merged into the local checkout while the same work squash-merges onto origin through PRs. The two histories never reconcile, so the gap compounds with every round.This surfaced when PR #661 (#305 install scanning) reported conflicts: the conflicts were trivial, but the branch was sitting on 5 unpushed local commits, which made #661 read as +2838/-159 across 56 files instead of its actual ~1577/28.
What each side had
origin/mainonly: #641 periodic retention sweeper, per-project setup commands, Linear ticket ingestion (#169), agent conflict-resolve.Local
mainonly:electron/image-store.js(userData image stores).Both, differently: #167 outbound webhooks.
Resolutions — 31 hunks, 10 files
electron/notify.js— kept local's factoredpostWebhook+testWebhook. origin's squashed feat(notify): outbound webhook on done/failed/waiting (#167) #658 inlined the same POST body intodispatchWebhook;postWebhookdoes not exist anywhere on origin/main, so that is the earlier revision. Same behaviour plus a result value "Send test" can display.electron/main.js— took origin's boot chain (Worktree retention has no periodic sweep: grace-period crossings while the app runs are never reclaimed #641 moved retention out of the boot timer into the periodic sweeper) and re-chainedscheduleImagePruneafter the orphan sweep. origin/main never had the image prune; taking its side wholesale would have silently disabled userData image GC.electron/secrets.js,electron/store.js— took origin forlinearApiKey(Ticket ingestion beyond GitHub (Linear first) #169); local's webhook sealing auto-merged beside it. Both secrets seal and open.src/shared/ipc.ts,src/components/SettingsModal.tsx— kept both:linearApiKeyfrom origin,WebhookTestResultand the Send test button from local.linearApiKey: null), kept local's added webhook cases.Verification
Run on the merge result:
npm run typecheck— cleannpx vite build— cleannpm run test:core— 38 pass / 0 failnpm run test:memory— 204 pass / 0 failnpm run test:electron— 1928 pass / 0 failnpm run test:renderer— 1492 pass / 0 fail3662 tests, zero failures.
Merging this
Merge commit, not squash. A squash would create a third divergent history and put us straight back here. After it lands,
git checkout main && git pull --ff-onlymakes the local checkout identical to origin, and #661 gets rebased on top.🤖 Generated with Claude Code