(text: string)
| 15 | } |
| 16 | |
| 17 | setText(text: string) { |
| 18 | this.value = text; |
| 19 | const rendered = formatResponse(text); |
| 20 | // Prevent "⏺" from appearing on its own line when model output starts with newlines. |
| 21 | const normalized = rendered.replace(/^\n+/, ''); |
| 22 | this.body.setText(`${theme.primary('⏺ ')}${normalized}`); |
| 23 | } |
| 24 | } |
no test coverage detected