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
+1 -1
View File
@@ -71,7 +71,7 @@ describe('AskUserTool', () => {
const result = tool.validateToolParams({ const result = tool.validateToolParams({
questions: [{ question: 'Test?', header: 'This is way too long' }], 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', () => { it('should return error if options has fewer than 2 items', () => {
+2 -2
View File
@@ -50,9 +50,9 @@ export class AskUserTool extends BaseDeclarativeTool<
}, },
header: { header: {
type: 'string', type: 'string',
maxLength: 12, maxLength: 16,
description: 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: {
type: 'string', type: 'string',