Skip to content

The cross-harness, self-improving memory layer for AI agents. Join our community: https://discord.com/invite/zdNChS2fBu

Preflight with the placeholder URL when the stored ingest URL is unusable

shukieshah5ad9952d92a3
diff --git a/cli/beacon/internal/endpoint/asymptote/connect.go b/cli/beacon/internal/endpoint/asymptote/connect.go
index dcdc926d..50f38820 100644
--- a/cli/beacon/internal/endpoint/asymptote/connect.go
+++ b/cli/beacon/internal/endpoint/asymptote/connect.go
@@ -126,9 +126,9 @@ func Connect(ctx context.Context, opts ConnectOptions) (*ConnectResult, error) {
// Prove Vector accepts this privacy mode's config before enrollment rotates the key.
// The ingest URL is the previous enrollment's when there is one; validate never
- // connects, so a placeholder serves a first enrollment.
+ // connects, so a placeholder serves a first enrollment or a record missing its URL.
preflightURL := preflightIngestURL
- if previous != nil {
+ if previous != nil && IsSecureURL(previous.IngestURL) {
preflightURL = previous.IngestURL
}
if err := ensureDir(opts.UserMode); err != nil {