Skip to content

Commit 6e3f751

Browse files
feat: add model name required check for agent (#12463)
1 parent 6982fd2 commit 6e3f751

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

agent/app/service/agents_overview.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ func countOpenclawConfiguredChannels(conf map[string]interface{}) int {
101101
}
102102

103103
func loadOpenclawOverviewSkillStats(containerName string) (int, error) {
104-
output, err := runDockerExecWithStdout(30*time.Second, containerName, "sh", "-c", "openclaw skills list --json 2>&1")
104+
output, err := runDockerExecWithStdout(5*time.Minute, containerName, "sh", "-c", "openclaw skills list --json 2>&1")
105105
if err != nil {
106106
return 0, err
107107
}

agent/app/service/agents_skills.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func (a AgentService) ListSkills(req dto.AgentIDReq) ([]dto.AgentSkillItem, erro
4848
if err := ensureContainerRunning(install.ContainerName); err != nil {
4949
return nil, err
5050
}
51-
output, err := runDockerExecWithStdout(60*time.Second, install.ContainerName, "sh", "-c", "openclaw skills list --json 2>&1")
51+
output, err := runDockerExecWithStdout(5*time.Minute, install.ContainerName, "sh", "-c", "openclaw skills list --json 2>&1")
5252
if err != nil {
5353
return nil, err
5454
}
@@ -153,10 +153,10 @@ func parseOpenclawSkillsList(output string) ([]dto.AgentSkillItem, error) {
153153
func loadOpenclawSkillSearchOutput(containerName, source, keyword string) (string, error) {
154154
switch source {
155155
case "skillhub":
156-
return runDockerExecWithStdout(60*time.Second, containerName, "skillhub", "search", keyword, "--json")
156+
return runDockerExecWithStdout(2*time.Minute, containerName, "skillhub", "search", keyword, "--json")
157157
default:
158158
return runDockerExecWithStdout(
159-
60*time.Second,
159+
2*time.Minute,
160160
containerName,
161161
"sh",
162162
"-c",
@@ -238,7 +238,7 @@ func resolveClawhubRegistry(source string) string {
238238
}
239239

240240
func getOpenclawSkillKey(containerName, name string) (string, error) {
241-
output, err := runDockerExecWithStdout(60*time.Second, containerName, "sh", "-c", fmt.Sprintf("openclaw skills info %q --json 2>&1", name))
241+
output, err := runDockerExecWithStdout(2*time.Minute, containerName, "sh", "-c", fmt.Sprintf("openclaw skills info %q --json 2>&1", name))
242242
if err != nil {
243243
return "", err
244244
}

frontend/src/views/ai/agents/model/pool/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ const editorTitle = computed(() =>
121121
);
122122
123123
const rules = reactive({
124-
id: [Rules.noSpace],
124+
id: [Rules.requiredInput, Rules.noSpace],
125125
name: [Rules.requiredInput],
126126
contextWindow: [Rules.integerNumber],
127127
maxTokens: [Rules.integerNumber],

0 commit comments

Comments
 (0)