You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Continuing a chat after its holder was killed takes 6–16 s before the first acquire #1985
On dev at cf282ddc6 the same step took 5.8 s, and 45.5 s once just after a relay restart. Earlier dev rounds took
1.6–2.2 s. Moves between two live computers stay at 0.9–2.5 s.
The relay log puts about 9–10 s between A's object uploads (POST store/objects) and its first acquire, so the
time is spent on A, before the acquire.
Replication
Field.
Pair two computers through a codeaf relay. Continue a chat on B.
kill -9 only B's TUI and engine processes.
Wait for <device> offline on A, press alt+c, and time from the key to the first POST …/acquire in the relay
log.
Deterministic (no model). A keyless loopback measurement through the public Continuer.Take does NOT reproduce
the full delay. It gives a first acquire at 0.53 s on dev and 0.77 s with #1944. It does show two smaller things:
Continuer.retireHolder waits up to releaseWithin (5 s) for this computer's own journal lock.
Neither alone explains the field gap. The missing phase still has to be measured in the field.
Where
Continuer.take, Continuer.retireHolder and releaseWithin in internal/syncsetup/take.go.
Taker.keepLocal, Taker.fetchAndAcquire and seedFrom in internal/handoff.
Fetcher.Fetch and Fetcher.Complete in internal/cellsync/fetch.go.
TaskWorkspaceTransferPlan in internal/session/workspace_transfer.go.
The fix
Measure each phase between the key and the first acquire: local capture, retirement, dirty and unpublished checks,
kept-branch upload, fetch, staging and preflight.
Skip the whole-tree pre-acquire staging for a chat with no workspace plan.
Keep the incoming-workspace admission check before any lease or folder write.
Acceptance
Through the scripted terminal door:
kill the other holder's processes;
let its lease lapse;
assert the first acquire comes within 2 s of alt+c;
assert one continuation receipt, with the latest turn and files intact.
Also count whole-tree materializations, so faster hardware cannot hide duplicated work.
Activity
Two-computer relay: fast take-back, moved task pages, honest saving, …