fix: add parentAgentId to stored agent record schema
- Added `parentAgentId` field to `STORED_AGENT_SCHEMA` in agent-registry.ts - Updated `toStoredAgentRecord()` in agent-projections.ts to include parentAgentId - This ensures parentAgentId is persisted to agents.json for parent/child hierarchy 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.5
parent
2d147f9a93
commit
2e8444eaac
@@ -52,6 +52,7 @@ export function toStoredAgentRecord(
|
||||
attentionTimestamp: agent.attention.requiresAttention
|
||||
? agent.attention.attentionTimestamp.toISOString()
|
||||
: null,
|
||||
parentAgentId: agent.parentAgentId ?? null,
|
||||
} satisfies StoredAgentRecord;
|
||||
}
|
||||
|
||||
|
||||
@@ -53,6 +53,7 @@ const STORED_AGENT_SCHEMA = z.object({
|
||||
requiresAttention: z.boolean().optional(),
|
||||
attentionReason: z.enum(["finished", "error", "permission"]).nullable().optional(),
|
||||
attentionTimestamp: z.string().nullable().optional(),
|
||||
parentAgentId: z.string().nullable().optional(),
|
||||
});
|
||||
|
||||
export type SerializableAgentConfig = Pick<
|
||||
|
||||
Reference in New Issue
Block a user