fix: use proper bool check

Christian Rocha and Andrey Nering created

Co-authored-by: Andrey Nering <andreynering@users.noreply.github.com>

Change summary

internal/agent/tools/tools.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

internal/agent/tools/tools.go 🔗

@@ -61,7 +61,7 @@ func GetModelNameFromContext(ctx context.Context) string {
 // markdown description when CRUSH_SHORT_TOOL_DESCRIPTIONS is set, significantly
 // reducing token usage. Otherwise returns the full description.
 func FirstLineDescription(content []byte) string {
-	if os.Getenv("CRUSH_SHORT_TOOL_DESCRIPTIONS") == "" {
+	if v, _ := strconv.ParseBool(os.Getenv("CRUSH_SHORT_TOOL_DESCRIPTIONS")); !v {
 		return strings.TrimSpace(string(content))
 	}
 	for line := range strings.SplitSeq(string(content), "\n") {