(text: string, width: number)
| 44 | // even for code-heavy text (the boxed AssistantMessage would have, which caused the |
| 45 | // oscillation + non-stop scroll bug). We replicate StreamingView's height here. |
| 46 | const physicalRows = (text: string, width: number) => |
| 47 | text.split('\n').reduce((n, ln) => n + Math.max(1, Math.ceil(ln.length / Math.max(20, width))), 0); |
| 48 | |
| 49 | const cases = [ |
| 50 | Array.from({ length: 200 }, (_, i) => `line ${i}`).join('\n'), // long prose |
no outgoing calls
no test coverage detected