X-Git-Url: https://git.giacomolli.uk/onechat/blobdiff_plain/496569ab5b179932c60b2924bf4c61176c8be004..6c7859cfea123479aba046614ee81028651ddaf5:/tools.go diff --git a/tools.go b/tools.go index 191bb25..24e745b 100644 --- a/tools.go +++ b/tools.go @@ -419,10 +419,15 @@ func (b *Toolbox) zoomAgent(ctx context.Context, name string) (string, error) { subagent, err := b.subagents.Get(ctx, name) if err != nil { - return "", err + return "", fmt.Errorf("open worker log: %w", err) } - return subagent.Show() + text, err := subagent.Show() + if err != nil { + return text, fmt.Errorf("read worker log: %w", err) + } + + return text, nil } // zoom returns message id whole for n = 1, or else the two lines under the line