()
| 621 | let lastAgentInputTables: string[] = []; |
| 622 | |
| 623 | const genTableId = () => { |
| 624 | let tableSuffix = Number.parseInt((Date.now() - Math.floor(Math.random() * 10000)).toString().slice(-6)); |
| 625 | let tId = `table-${tableSuffix}`; |
| 626 | while (tables.find(t => t.id === tId) !== undefined || createdTables.some(t => t.id === tId)) { |
| 627 | tableSuffix += 1; |
| 628 | tId = `table-${tableSuffix}`; |
| 629 | } |
| 630 | return tId; |
| 631 | }; |
| 632 | |
| 633 | // Accumulate thinking phase steps for progressive display |
| 634 | // Steps are joined with \x1E (Record Separator) to avoid splitting multi-line content |
no outgoing calls
no test coverage detected