Skip to content

bug: ENAMETOOLONG on Taste Learning #639

Description

@dthyresson

Summary

When learning taste inside a somewhat lengthy path, encountered a ENAMETOOLONG error:

◼ taste learning failed: ENAMETOOLONG: name too long, mkdir
'/Users/xxxxxxxxxx/projects/xxxxxxxxxx/command-code-mods/.commandcode/taste/--prefers-using-command-code's-built-in-hook
-system-(`onstop`-with-`{continue:-true}`,-`preparenextturn`-for-model-switching)-over-shelling-out-to-external-api-call
s-(e.g.,-`curl`).-when-the-framework-provides-a-seam,-use-it-instead-of-reaching-for-raw-http.-confidence:-0.9'
  • notice the --
  • seems to use a taste preference as a "category" which is typically: ui, workflow, database etc something short and topical

Note xxxxxxxxxx is same number of chars but a user path.

Expected Behavior

  • taste directory and files names to be short and topical
  • taste learning to be written properly

Actual Behavior

  • error and taste failed to be saved

Steps to reproduce the issue

  • Unsure

Command Code Version

1.11.1

Operating System

macOS

Terminal/IDE

ghostty

Shell

zsh

Session file (optional)

No response

Fix prompt (optional)

No response

Additional context

OS: macOS Tahoe 26.5.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions