mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-13 05:12:55 -07:00
style: fix formatting from rebase
This commit is contained in:
@@ -539,8 +539,7 @@ export const ToolConfirmationMessage: React.FC<
|
|||||||
REDIRECTION_WARNING_NOTE_TEXT.length;
|
REDIRECTION_WARNING_NOTE_TEXT.length;
|
||||||
const tipText = `Toggle auto-edit (${formatCommand(Command.CYCLE_APPROVAL_MODE)}) to allow redirection in the future.`;
|
const tipText = `Toggle auto-edit (${formatCommand(Command.CYCLE_APPROVAL_MODE)}) to allow redirection in the future.`;
|
||||||
const tipLength =
|
const tipLength =
|
||||||
REDIRECTION_WARNING_TIP_LABEL.length +
|
REDIRECTION_WARNING_TIP_LABEL.length + tipText.length;
|
||||||
tipText.length;
|
|
||||||
|
|
||||||
const noteLines = Math.ceil(noteLength / safeWidth);
|
const noteLines = Math.ceil(noteLength / safeWidth);
|
||||||
const tipLines = Math.ceil(tipLength / safeWidth);
|
const tipLines = Math.ceil(tipLength / safeWidth);
|
||||||
@@ -656,7 +655,6 @@ export const ToolConfirmationMessage: React.FC<
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
return { question, bodyContent, options, securityWarnings, initialIndex };
|
return { question, bodyContent, options, securityWarnings, initialIndex };
|
||||||
}, [
|
}, [
|
||||||
confirmationDetails,
|
confirmationDetails,
|
||||||
@@ -675,7 +673,6 @@ export const ToolConfirmationMessage: React.FC<
|
|||||||
settings.merged.security.autoAddToPolicyByDefault,
|
settings.merged.security.autoAddToPolicyByDefault,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|
||||||
const bodyOverflowDirection: 'top' | 'bottom' =
|
const bodyOverflowDirection: 'top' | 'bottom' =
|
||||||
confirmationDetails.type === 'mcp' && isMcpToolDetailsExpanded
|
confirmationDetails.type === 'mcp' && isMcpToolDetailsExpanded
|
||||||
? 'bottom'
|
? 'bottom'
|
||||||
|
|||||||
@@ -2891,14 +2891,10 @@ export class Config implements McpContext, AgentLoopContext {
|
|||||||
|
|
||||||
if (this.isTrackerEnabled()) {
|
if (this.isTrackerEnabled()) {
|
||||||
maybeRegister(TrackerCreateTaskTool, () =>
|
maybeRegister(TrackerCreateTaskTool, () =>
|
||||||
registry.registerTool(
|
registry.registerTool(new TrackerCreateTaskTool(this, this.messageBus)),
|
||||||
new TrackerCreateTaskTool(this, this.messageBus),
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
maybeRegister(TrackerUpdateTaskTool, () =>
|
maybeRegister(TrackerUpdateTaskTool, () =>
|
||||||
registry.registerTool(
|
registry.registerTool(new TrackerUpdateTaskTool(this, this.messageBus)),
|
||||||
new TrackerUpdateTaskTool(this, this.messageBus),
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
maybeRegister(TrackerGetTaskTool, () =>
|
maybeRegister(TrackerGetTaskTool, () =>
|
||||||
registry.registerTool(new TrackerGetTaskTool(this, this.messageBus)),
|
registry.registerTool(new TrackerGetTaskTool(this, this.messageBus)),
|
||||||
|
|||||||
Reference in New Issue
Block a user