Commit 859dd18
committed
Bugfix: Enhanced Status Footer - Fix 3 critical issues
Fixed all 3 reported bugs in enhanced status footer:
## Issue #1: Session Duration Shows "0m" ⏱️
Root Cause: session-start-time file missing for old sessions
Fix: Added fallback to context-loaded.flag timestamp
Location: conversation-capture-user-prompt.sh:118-145
intelligent-status-notification.sh:144-172
Impact: Old sessions now show approximate duration
Code Changes:
- Check session-start-time first (v2.1+ sessions)
- Fallback to context-loaded.flag (old sessions)
- Cross-platform support (Linux stat -c, macOS stat -f)
- Graceful degradation (default "0m" if neither exists)
## Issue #2: Last Sync Shows "0m ago" 🔄
Root Cause: UX wording issue ("0m ago" sounds wrong)
Fix: Changed "0m ago" to "Just now" + added days support
Location: conversation-capture-user-prompt.sh:180-199
intelligent-status-notification.sh:204-223
Impact: Better UX, handles multi-day gaps
Code Changes:
- 0 minutes → "Just now"
- < 60 minutes → "Xm ago"
- < 1440 minutes (24h) → "Xh ago"
- >= 1440 minutes → "Xd ago"
## Issue #3: No Notifications Despite 174 ops 💡
Root Cause: Slash commands didn't update last-memory-sync timestamp
Fix: Created helper library + integrated with all sync operations
Files:
- NEW: .claude/hooks/lib/update-sync-timestamp.sh (helper)
- MODIFIED: pre-compact-umb-sync.sh (integration)
- MODIFIED: memory-sync.sh (integration)
Impact: Notifications now work correctly
Helper Features:
- Updates timestamp to current time
- Clears notification flags (prevent duplicates)
- Safe (exits 0 on errors, non-blocking)
- Reusable (DRY principle)
## Documentation
- NEW: docs/BUGFIX-ANALYSIS.md (350+ lines comprehensive analysis)
## Testing Strategy
Phase 1: ✅ Safe (display-only fixes #1 & #2)
Phase 2: ✅ Low risk (timestamp integration #3)
Risk Level: LOW (all changes additive, no breaking changes)
Testing Required: Restart Claude Code to verify
Next: User will restart and test all 3 fixes1 parent 7888ea3 commit 859dd18
File tree
7 files changed
+499
-7
lines changed- .claude
- cache
- hooks
- lib
- docs
7 files changed
+499
-7
lines changedWhitespace-only changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| 120 | + | |
| 121 | + | |
120 | 122 | | |
| 123 | + | |
121 | 124 | | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
122 | 134 | | |
123 | 135 | | |
124 | 136 | | |
| 137 | + | |
125 | 138 | | |
126 | 139 | | |
127 | 140 | | |
| |||
171 | 184 | | |
172 | 185 | | |
173 | 186 | | |
174 | | - | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
175 | 191 | | |
176 | | - | |
| 192 | + | |
177 | 193 | | |
178 | 194 | | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
179 | 198 | | |
180 | 199 | | |
181 | 200 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| 147 | + | |
| 148 | + | |
147 | 149 | | |
148 | | - | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
149 | 161 | | |
150 | 162 | | |
151 | 163 | | |
| 164 | + | |
152 | 165 | | |
153 | 166 | | |
154 | 167 | | |
| |||
195 | 208 | | |
196 | 209 | | |
197 | 210 | | |
198 | | - | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
199 | 215 | | |
200 | | - | |
| 216 | + | |
201 | 217 | | |
202 | 218 | | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
203 | 222 | | |
204 | 223 | | |
205 | 224 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
173 | | - | |
174 | | - | |
| 173 | + | |
| 174 | + | |
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
89 | 92 | | |
0 commit comments