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);