|
190 | 190 | else if (event.data.title) text = `${event.type}: ${event.data.title}`; |
191 | 191 |
|
192 | 192 | const rawSource = event.data.source || 'robin'; |
193 | | - const source = ['kees', 'robin'].includes(rawSource) ? rawSource : 'robin'; |
194 | | - const sourceEmoji = source === 'kees' ? '🤖' : '👤'; |
| 193 | + const source = ['wingman', 'robin'].includes(rawSource) ? rawSource : 'robin'; |
| 194 | + const sourceEmoji = source === 'wingman' ? '🤖' : '👤'; |
195 | 195 | const item = document.createElement('div'); |
196 | 196 | item.className = 'activity-item'; |
197 | 197 | item.innerHTML = `<span class="a-icon">${icon}</span><span class="a-source ${source}">${sourceEmoji}</span><span class="a-text">${escapeHtml(text)}</span><span class="a-time">${time}</span>`; |
|
207 | 207 | if (id === data.tabId) { |
208 | 208 | const sourceEl = entry.tabEl.querySelector('.tab-source'); |
209 | 209 | if (sourceEl) { |
210 | | - if (data.source === 'kees') { |
| 210 | + if (data.source === 'wingman') { |
211 | 211 | sourceEl.textContent = '🤖'; |
212 | 212 | sourceEl.title = 'AI controlled — click to take over'; |
213 | 213 | sourceEl.style.display = ''; |
|
218 | 218 | } |
219 | 219 | } |
220 | 220 | // Visual indicator: purple bottom border for AI tabs |
221 | | - if (data.source === 'kees') { |
| 221 | + if (data.source === 'wingman') { |
222 | 222 | entry.tabEl.style.borderBottom = '2px solid #7c3aed'; |
223 | 223 | } else { |
224 | 224 | entry.tabEl.style.borderBottom = ''; |
|
1019 | 1019 | // msg: {id, from, text, timestamp, image} |
1020 | 1020 | // Skip robin messages — already shown optimistically in the UI |
1021 | 1021 | if (msg.from === 'robin') return; |
1022 | | - const source = msg.from; // 'kees' or 'claude' |
| 1022 | + const source = msg.from; // 'wingman' or 'claude' |
1023 | 1023 | appendMessage('assistant', msg.text, msg.timestamp, source, msg.image); |
1024 | 1024 | if (messagesEl) messagesEl.scrollTop = messagesEl.scrollHeight; |
1025 | 1025 | }); |
|
0 commit comments