agileflow 2.99.2 → 2.99.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [2.99.3] - 2026-02-09
11
+
12
+ ### Fixed
13
+ - Auto-heal tmux socket directory after macOS reboot
14
+
10
15
  ## [2.99.2] - 2026-02-09
11
16
 
12
17
  ### Added
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agileflow",
3
- "version": "2.99.2",
3
+ "version": "2.99.3",
4
4
  "description": "AI-driven agile development system for Claude Code, Cursor, Windsurf, and more",
5
5
  "keywords": [
6
6
  "agile",
@@ -122,6 +122,27 @@ if [ "$NO_TMUX" = true ]; then
122
122
  exec claude "$@"
123
123
  fi
124
124
 
125
+ # ── Self-healing: ensure tmux socket directory exists ──────────────────────
126
+ # macOS clears /private/tmp/ on reboot, which removes the tmux socket dir.
127
+ # This causes "error connecting to ... (No such file or directory)" on every
128
+ # tmux command. We fix it automatically so users never see this error.
129
+ # Must run BEFORE any tmux command (including --kill, --attach, --refresh).
130
+ if command -v tmux &> /dev/null; then
131
+ _TMUX_BASE="${TMUX_TMPDIR:-${TMPDIR:-/tmp}}"
132
+ # Strip trailing slash(es) to avoid double-slash in path
133
+ _TMUX_BASE="${_TMUX_BASE%/}"
134
+ _TMUX_SOCK_DIR="${_TMUX_BASE}/tmux-$(id -u)"
135
+ if [ ! -d "$_TMUX_SOCK_DIR" ]; then
136
+ mkdir -p "$_TMUX_SOCK_DIR" 2>/dev/null && chmod 700 "$_TMUX_SOCK_DIR" 2>/dev/null
137
+ if [ ! -d "$_TMUX_SOCK_DIR" ]; then
138
+ echo "Warning: Could not create tmux socket directory ($_TMUX_SOCK_DIR)."
139
+ echo "Running claude without tmux."
140
+ exec claude "$@"
141
+ fi
142
+ fi
143
+ unset _TMUX_BASE _TMUX_SOCK_DIR
144
+ fi
145
+
125
146
  # Generate directory name (used for session name patterns)
126
147
  DIR_NAME=$(basename "$(pwd)")
127
148