mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-10-18 19:30:27 +08:00
Tolerate null agent in /node response
Public seeds return `"agent": null` because their deployed httpd binaries can't parse i2p/onion rows that newer nodes write to the address table — `AddressStore::get` fails and the handler falls back to `None`. Allow null in the zod schema and hide the user-agent row in the UI when it's missing. Workaround until heartwood ships `StoreExt::agent_of` (reads only the `agent` column, no address hydration) and httpd adopts it.
This commit is contained in:
@@ -97,7 +97,7 @@ export type Node = z.infer<typeof nodeSchema>;
|
||||
|
||||
const nodeSchema = z.object({
|
||||
id: z.string(),
|
||||
agent: z.string(),
|
||||
agent: z.string().nullable(),
|
||||
config: nodeConfigSchema.nullable(),
|
||||
state: z.union([z.literal("running"), z.literal("stopped")]),
|
||||
avatarUrl: z.string().optional(),
|
||||
|
||||
Reference in New Issue
Block a user