Skip to content

Commit 9406acc

Browse files
committed
fix(protocol): allow paperclip field in AgentParamsSchema
Paperclip agent injects a 'paperclip' property into agent invocation payloads, but gateway validation rejects unknown fields due to additionalProperties: false. Add optional paperclip field to allow third-party integrations without breaking validation. Fixes #74635
1 parent 9cb71f7 commit 9406acc

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/gateway/protocol/schema/agent.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,9 @@ export const AgentParamsSchema = Type.Object(
173173
voiceWakeTrigger: Type.Optional(Type.String()),
174174
idempotencyKey: NonEmptyString,
175175
label: Type.Optional(SessionLabelString),
176+
// Allow Paperclip and other third-party integrations to pass runtime context
177+
// without breaking gateway validation. Gateway accepts but ignores this field.
178+
paperclip: Type.Optional(Type.Unknown()),
176179
},
177180
{ additionalProperties: false },
178181
);

0 commit comments

Comments
 (0)