This repository was archived by the owner on Nov 17, 2025. It is now read-only.
Commit bfda85a
committed
Fix Claude process detection overflow and reduce noise from device warnings
- Handle 0xFFFFFFFF (UINT32_MAX) as special value meaning 'no TTY device'
- Only log warnings for actual overflow cases, not the common no-device case
- Skip TTY lookup when device is 0 to avoid unnecessary filesystem operations
- Extract safe integer conversion logic into reusable helper function
This fixes the issue where most processes have device value 4294967295, which
was flooding logs with warnings and preventing Claude detection from working.1 parent ec1dedf commit bfda85a
3 files changed
Lines changed: 48 additions & 18 deletions
File tree
- Features
- Monitoring/Domain/Services
- StatusBar/UI
Lines changed: 31 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
111 | 121 | | |
112 | 122 | | |
113 | 123 | | |
| |||
121 | 131 | | |
122 | 132 | | |
123 | 133 | | |
124 | | - | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
125 | 147 | | |
126 | 148 | | |
127 | 149 | | |
128 | 150 | | |
129 | 151 | | |
130 | | - | |
131 | | - | |
| 152 | + | |
132 | 153 | | |
133 | 154 | | |
134 | 155 | | |
| |||
202 | 223 | | |
203 | 224 | | |
204 | 225 | | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
205 | 231 | | |
206 | 232 | | |
207 | 233 | | |
| |||
215 | 241 | | |
216 | 242 | | |
217 | 243 | | |
218 | | - | |
| 244 | + | |
219 | 245 | | |
220 | 246 | | |
221 | | - | |
| 247 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | 93 | | |
107 | 94 | | |
108 | 95 | | |
| |||
| 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 | + | |
0 commit comments