Skip to content

Reconcile local main with origin/main (webhook landed twice, 61-file drift) - #663

Merged
currentbits merged 6 commits into
mainfrom
coder/reconcile-main
Aug 22, 2026
Merged

currentbits merged 6 commits into
mainfrom
coder/reconcile-main

Conversation

@currentbits

Copy link
Copy Markdown
Owner

Housekeeping, no new features. Local main and origin/main had 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/main only: #641 periodic retention sweeper, per-project setup commands, Linear ticket ingestion (#169), agent conflict-resolve.
Local main only: electron/image-store.js (userData image stores).
Both, differently: #167 outbound webhooks.

Resolutions — 31 hunks, 10 files

  • electron/notify.js — kept local's factored postWebhook + testWebhook. origin's squashed feat(notify): outbound webhook on done/failed/waiting (#167) #658 inlined the same POST body into dispatchWebhook; postWebhook does 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-chained scheduleImagePrune after 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 for linearApiKey (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: linearApiKey from origin, WebhookTestResult and the Send test button from local.
  • Four settings tests — took origin's expected settings shape (adds linearApiKey: null), kept local's added webhook cases.

Verification

Run on the merge result:

  • npm run typecheck — clean
  • npx vite build — clean
  • npm run test:core — 38 pass / 0 fail
  • npm run test:memory — 204 pass / 0 fail
  • npm run test:electron — 1928 pass / 0 fail
  • npm run test:renderer — 1492 pass / 0 fail

3662 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-only makes the local checkout identical to origin, and #661 gets rebased on top.

🤖 Generated with Claude Code

Willem and others added 6 commits August 22, 2026 12:02
… 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]>
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@currentbits
currentbits merged commit ab5606c into main Aug 22, 2026
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant