fix(webui): strip styles and preserve multiline text on paste in chat input (#371)

* fix(webui): strip styles and preserve multiline text on paste in chat input

* fix(db): remove custom log wait strategy in test global setup to prevent postgres startup race condition
This commit is contained in:
Yiling-J
2026-08-31 21:29:00 +08:00
committed by GitHub
parent 134eb8b7fa
commit 79a479c87c
3 changed files with 157 additions and 9 deletions
+1 -8
View File
@@ -1,7 +1,6 @@
import { PostgreSqlContainer } from '@testcontainers/postgresql'
import { exec } from 'node:child_process'
import { promisify } from 'node:util'
import { Wait } from 'testcontainers'
const execAsync = promisify(exec)
@@ -9,13 +8,7 @@ let dbContainer: import('@testcontainers/postgresql').StartedPostgreSqlContainer
export async function globalTestSetup() {
console.log('Starting Testcontainers for global setup...')
dbContainer = await new PostgreSqlContainer('pgvector/pgvector:pg18')
.withWaitStrategy(
// casting to any due to testcontainers wait strategy type mismatch
// eslint-disable-next-line @typescript-eslint/no-explicit-any
Wait.forLogMessage('database system is ready to accept connections', 1) as any,
)
.start()
dbContainer = await new PostgreSqlContainer('pgvector/pgvector:pg18').start()
const databaseUrl = dbContainer.getConnectionUri()
console.log('Database started at:', databaseUrl)