Skip to content

Conversation

@Zeko369
Copy link

@Zeko369 Zeko369 commented Oct 28, 2025

Problem

When using overmind with long project names or branch names, the tmux socket path can exceed the Unix filesystem limit of 108 characters, causing a 'File name too long' error.

Example error:

error connecting to /private/tmp/tmux-501/overmind-ud-1919-add-multilanguage-support-for-ticket-category-url-pOjnzr-OiCn0kjejA0933 (File name too long)

Solution

Truncate session names to 50 characters before creating the socket name. This ensures the full socket path stays within filesystem limits while still preserving uniqueness through the nanoid.

Changes

  • Session names are now truncated to 50 characters if they exceed this limit
  • The truncation happens before creating the instanceID (which becomes the socket name)
  • Preserves backward compatibility for shorter project names

Truncate session names to prevent 'File name too long' errors when
project names or branch names are very long. The tmux socket path
has a limit of 108 characters total, so session names are now
truncated to 50 characters to ensure the full socket path stays
within filesystem limits.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant