feat: increase ask_user label limit to 16 characters (#18320)

This commit is contained in:
Jack Wotherspoon
2026-02-04 12:50:01 -05:00
committed by GitHub
parent 0012d95848
commit b987e1780d
2 changed files with 3 additions and 3 deletions

View File

@@ -71,7 +71,7 @@ describe('AskUserTool', () => {
const result = tool.validateToolParams({
questions: [{ question: 'Test?', header: 'This is way too long' }],
});
expect(result).toContain('must NOT have more than 12 characters');
expect(result).toContain('must NOT have more than 16 characters');
});
it('should return error if options has fewer than 2 items', () => {

View File

@@ -50,9 +50,9 @@ export class AskUserTool extends BaseDeclarativeTool<
},
header: {
type: 'string',
maxLength: 12,
maxLength: 16,
description:
'Very short label displayed as a chip/tag (max 12 chars). Examples: "Auth method", "Library", "Approach".',
'Very short label displayed as a chip/tag (max 16 chars). Examples: "Auth method", "Library", "Approach".',
},
type: {
type: 'string',