Address Greptile review on UI polish PR

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
dotta 2026-03-23 17:16:10 -05:00
parent c3f4e18a5e
commit 6960ab1106
3 changed files with 51 additions and 19 deletions

View file

@ -112,15 +112,11 @@ function buildAgentIconMask(iconName: string | null): string | null {
if (cached) return cached;
const Icon = getAgentIcon(iconName);
const rendered = (
const iconNode = (
Icon as unknown as {
render: (
props: Record<string, unknown>,
ref: unknown,
) => { props?: { iconNode?: Array<[string, Record<string, string>]> } };
iconNode?: Array<[string, Record<string, string>]>;
}
).render({ size: 12, strokeWidth: 2 }, null);
const iconNode = rendered?.props?.iconNode;
).iconNode;
if (!Array.isArray(iconNode) || iconNode.length === 0) return null;
const body = iconNode.map(([tag, attrs]) => {