Fix orchestrator logic and workspace push for planning confirmation and artifact handling
This commit is contained in:
@@ -70,6 +70,10 @@ func New(cfg Config, log *logger.Logger) *Tool {
|
||||
if cfg.Timeout <= 0 {
|
||||
cfg.Timeout = 30 * time.Second
|
||||
}
|
||||
if log != nil {
|
||||
log.Infof("giteaticket tool initialized base_url=%q owner=%q repo=%q token_set=%v",
|
||||
baseURL, strings.TrimSpace(cfg.Owner), strings.TrimSpace(cfg.Repo), strings.TrimSpace(cfg.Token) != "")
|
||||
}
|
||||
return &Tool{
|
||||
baseURL: baseURL,
|
||||
token: strings.TrimSpace(cfg.Token),
|
||||
@@ -95,6 +99,10 @@ func (t *Tool) Call(ctx context.Context, input string) (string, error) {
|
||||
return "", fmt.Errorf("create_gitea_ticket: validation failed: %w", err)
|
||||
}
|
||||
if t.baseURL == "" || t.token == "" || t.owner == "" || t.repo == "" {
|
||||
if t.log != nil {
|
||||
t.log.Errorf("giteaticket config missing: base_url=%q token_set=%v owner=%q repo=%q",
|
||||
t.baseURL, t.token != "", t.owner, t.repo)
|
||||
}
|
||||
return "", fmt.Errorf("create_gitea_ticket: missing Gitea configuration (base_url, token, owner, repo)")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user