Probe helper capabilities for a clear unsupported error
main·
Commit

Before opening a stateless-connect session, dial now issues the remote helper's
capabilities command and checks that stateless-connect is advertised. A helper
that lacks it (e.g. one offering only the legacy connect capability) fails
with an actionable error naming the helper and its advertised capabilities,
instead of a cryptic mid-protocol failure. The probe is a local exchange — no
network round trip happens until stateless-connect — so it adds no meaningful
cost.
Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com Entire-Checkpoint: 53d1e0ac66e6
Checkpoints
❯ GITSYNC_MAX_REF_UPDATES_PER_PUSH=5000 go run ./cmd/git-sync replicate --all-refs --stats --verbose \
Claude CodeOpus 4.8[1m]
View sessionCheckpoint 1