mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-24 20:25:36 -04:00
debug opentui windows crash
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user