Commit 95adfda
chore: clean up mini-chat debug logs and remove DevTools auto-open
This commit removes temporary debugging code from the mini-chat implementation
to keep the codebase clean and improve production performance.
## Changes
### Removed Debug Logs
- **MiniChatContainer.tsx**: Removed verbose logging from onFinish callback and message rendering
- **MiniChatRichMessage.tsx**: Removed part processing logs and transfer logs
- **MiniChatHeader.tsx**: Removed provider switching log
- **MiniChatInput.tsx**: Removed message sending logs
### DevTools Auto-Open Removed
- **miniChatWindow.ts**: Removed automatic DevTools opening in development mode
- Mini-chat window now opens without DevTools for cleaner UX
### Kept Error Logging
- ✅ console.error calls retained for actual error tracking
- ✅ Critical error paths still logged for debugging production issues
## Impact
- Cleaner console output in development
- Better performance without excessive logging
- More professional production behavior
- Easier debugging with focused error messages
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 97a319e commit 95adfda
File tree
5 files changed
+10
-130
lines changed- src
- main/windows
- renderer/components/mini-chat
5 files changed
+10
-130
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | 121 | | |
128 | 122 | | |
129 | 123 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | 72 | | |
92 | 73 | | |
93 | 74 | | |
| |||
99 | 80 | | |
100 | 81 | | |
101 | 82 | | |
102 | | - | |
103 | 83 | | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
| 84 | + | |
112 | 85 | | |
113 | 86 | | |
114 | | - | |
115 | | - | |
116 | 87 | | |
117 | 88 | | |
118 | 89 | | |
119 | 90 | | |
120 | 91 | | |
121 | | - | |
122 | | - | |
123 | 92 | | |
124 | | - | |
125 | 93 | | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
| 94 | + | |
134 | 95 | | |
135 | 96 | | |
136 | | - | |
137 | | - | |
138 | 97 | | |
139 | 98 | | |
140 | 99 | | |
| |||
157 | 116 | | |
158 | 117 | | |
159 | 118 | | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
| 119 | + | |
167 | 120 | | |
168 | 121 | | |
169 | 122 | | |
| |||
210 | 163 | | |
211 | 164 | | |
212 | 165 | | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
236 | 173 | | |
237 | 174 | | |
238 | 175 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | 72 | | |
77 | 73 | | |
78 | 74 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | 41 | | |
48 | 42 | | |
49 | 43 | | |
| |||
88 | 82 | | |
89 | 83 | | |
90 | 84 | | |
91 | | - | |
92 | | - | |
93 | 85 | | |
94 | 86 | | |
95 | 87 | | |
96 | 88 | | |
97 | 89 | | |
98 | | - | |
99 | 90 | | |
100 | 91 | | |
101 | 92 | | |
| |||
Lines changed: 0 additions & 38 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | 98 | | |
119 | 99 | | |
120 | 100 | | |
| |||
130 | 110 | | |
131 | 111 | | |
132 | 112 | | |
133 | | - | |
134 | 113 | | |
135 | 114 | | |
136 | 115 | | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | 116 | | |
143 | | - | |
144 | 117 | | |
145 | 118 | | |
146 | 119 | | |
| |||
171 | 144 | | |
172 | 145 | | |
173 | 146 | | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | 147 | | |
183 | 148 | | |
184 | | - | |
185 | 149 | | |
186 | 150 | | |
187 | 151 | | |
188 | 152 | | |
189 | 153 | | |
190 | | - | |
191 | 154 | | |
192 | 155 | | |
193 | 156 | | |
| |||
228 | 191 | | |
229 | 192 | | |
230 | 193 | | |
231 | | - | |
232 | 194 | | |
233 | 195 | | |
234 | 196 | | |
| |||
0 commit comments