Skip to content

Fill a shipped branch on a session the receiver already has - #57

Merged
gengwg merged 1 commit into
mainfrom
fix/ship-branch-backfill
Sep 7, 2026
Merged

gengwg merged 1 commit into
mainfrom
fix/ship-branch-backfill

Conversation

@gengwg

@gengwg gengwg commented Sep 7, 2026

Copy link
Copy Markdown
Owner

Shipping the branch appeared to work and did nothing. A full resend of 2,973 sessions moved 91,552 events to the shared server and left every branch null.

ensureSession returns early when a session already exists — right for the common case, and it meant a shipped branch could only ever land on a session the receiver had never seen. Every session had been seen. Same fix as titles already use: fill the field when it is empty.

Only an explicit branch from a shipper backfills. A branch derived from a local working directory still lands once, when the session is first seen, because filling it in later would stamp today's checkout onto work done on another branch.

90 tests pass, including one that resending a session with a branch fills a row that arrived without one.

https://claude.ai/code/session_01NZDHk4yVYP4jMZkTUMQ1Lw

Shipping the branch appeared to work and did nothing: a full resend of
2,973 sessions left every branch null on the shared server.

ensureSession returns early when a session already exists, so a shipped
branch could only land on a session the receiver had never seen - and it
had seen all of them. Same fix titles already use: fill when empty.

Only an explicit branch from a shipper backfills. A branch read from a
local working directory still lands once, when the session is first seen,
since filling it later would stamp today's checkout onto older work.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZDHk4yVYP4jMZkTUMQ1Lw
@gengwg
gengwg merged commit 8d3145a into main Sep 7, 2026
1 check passed
@gengwg
gengwg deleted the fix/ship-branch-backfill branch September 7, 2026 19:41
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