mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-12 12:54:07 -07:00
feat: increase ask_user label limit to 16 characters (#18320)
This commit is contained in:
@@ -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', () => {
|
||||||
|
|||||||
@@ -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',
|
||||||
|
|||||||
Reference in New Issue
Block a user