refactor: make baseTimestamp optional in addItem and remove redundant calls (#16471)

This commit is contained in:
Sehoon Shon
2026-01-13 14:15:04 -05:00
committed by GitHub
parent aa52462550
commit 91fcca3b1c
30 changed files with 528 additions and 888 deletions
+5 -8
View File
@@ -27,13 +27,10 @@ export const toolsCommand: SlashCommand = {
const toolRegistry = context.services.config?.getToolRegistry();
if (!toolRegistry) {
context.ui.addItem(
{
type: MessageType.ERROR,
text: 'Could not retrieve tool registry.',
},
Date.now(),
);
context.ui.addItem({
type: MessageType.ERROR,
text: 'Could not retrieve tool registry.',
});
return;
}
@@ -51,6 +48,6 @@ export const toolsCommand: SlashCommand = {
showDescriptions: useShowDescriptions,
};
context.ui.addItem(toolsListItem, Date.now());
context.ui.addItem(toolsListItem);
},
};