debug opentui windows crash

This commit is contained in:
Sebastian Herrlinger
2026-05-16 14:01:46 +02:00
parent 3a209b42b8
commit 53dd9cc462
+15
View File
@@ -63,6 +63,21 @@ jobs:
turbo-${{ runner.os }}-${{ hashFiles('turbo.json', '**/package.json') }}-
turbo-${{ runner.os }}-
- name: Run OpenTUI crash diagnostics
if: runner.os == 'Windows'
continue-on-error: true
working-directory: packages/opencode
run: |
set -euxo pipefail
bun --revision
bun -e 'console.log({ platform: process.platform, arch: process.arch, versions: process.versions })'
bun -e 'console.log("@opentui/core-win32-x64", (await import("@opentui/core-win32-x64")).default)'
bun -e 'import { EditBuffer } from "@opentui/core"; let cursor = 0; let content = 0; for (let i = 0; i < 5000; i++) { const b = EditBuffer.create("unicode"); b.on("cursor-changed", () => cursor++); b.on("content-changed", () => content++); b.setText(`draft-${i}`); await Bun.sleep(0); b.destroy(); } console.log({ cursor, content })'
for i in 1 2 3 4 5; do
echo "dialog-prompt targeted run $i"
bun test --timeout 30000 test/cli/tui/dialog-prompt.test.tsx
done
- name: Run unit tests
run: bun turbo test:ci
env: