on main help sign in
fix: use proper bool check

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

commitb680a4a1cf96e757d772e7f462e08da2809418e2 authorChristian Rocha <christian@rocha.is> dateThu 9 Apr 2026, 16:20 (6 months ago) parenta02ce4a
1 file changed+1−1
internal/agent/tools/tools.go+1−1
internal/agent/tools/tools.go+1−1
@@ -61,7 +61,7 @@ func GetModelNameFromContext(ctx context.Context) string {
6161// markdown description when CRUSH_SHORT_TOOL_DESCRIPTIONS is set, significantly
6262// reducing token usage. Otherwise returns the full description.
6363func FirstLineDescription(content []byte) string {
64− if os.Getenv("CRUSH_SHORT_TOOL_DESCRIPTIONS") == "" {
64+ if v, _ := strconv.ParseBool(os.Getenv("CRUSH_SHORT_TOOL_DESCRIPTIONS")); !v {
6565 return strings.TrimSpace(string(content))
6666 }
6767 for line := range strings.SplitSeq(string(content), "\n") {