perf: init shell (#5651)

* perf: init shell

* fix: tool run select

* border radius
This commit is contained in:
Archer
2025-09-15 22:21:24 +08:00
committed by GitHub
parent 2ed1545eb5
commit cb7d1a3205
11 changed files with 134 additions and 104 deletions

View File

@@ -153,7 +153,10 @@ export const dispatchRunTool = async (props: RunToolProps): Promise<RunToolRespo
}
const usagePoints = (() => {
if (params.system_input_config?.type !== SystemToolInputTypeEnum.system) {
if (
params.system_input_config?.type === SystemToolInputTypeEnum.team ||
params.system_input_config?.type === SystemToolInputTypeEnum.manual
) {
return 0;
}
return (tool.systemKeyCost ?? 0) + (tool.currentCost ?? 0);

View File

@@ -15,7 +15,7 @@ function UserBox({ sourceMember, avatarSize = '1.25rem', ...props }: UserBoxProp
return (
<HStack space="1" {...props}>
<Avatar src={sourceMember.avatar} w={avatarSize} />
<Avatar src={sourceMember.avatar} w={avatarSize} borderRadius={'xs'} />
<Box maxW={'150px'} whiteSpace={'nowrap'} overflow={'hidden'}>
{sourceMember.name}
</Box>