Skip to content

In the picoclaw runtime, when calling commands, the timeout passed by the agent seems invalid #174

@jialudev

Description

@jialudev
Image

picoclaw runtime里面 调用命令时 agent 传的 timeout 是无效的

https://github.com/sipeed/picoclaw/blob/5224b9a4bc1d18e168692af1f0975c7f80d68fd1/pkg/tools/shell.go#L387

初步分析,t.timeout 这个超时时间来源于项目启动配置设置,

csgclaw/internal/runtime/picoclawsandbox/defaults/picoclaw-config.json:154

picoclaw/pkg/tools/shell.go:166:

  if config != nil && config.Tools.Exec.TimeoutSeconds > 0 {
      timeout = time.Duration(config.Tools.Exec.TimeoutSeconds) * time.Second
  }

所以现在所有 picoclaw 执行命令的超时时间都是 600 s

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions