153d6d1612
Update ghostty-web to b0aa99e which wraps the requestAnimationFrame render loop in try/catch. Previously, any exception in renderer.render() or wasmTerm.getCursor() would silently kill the loop, permanently freezing the terminal canvas while input continued to flow normally. The fix ensures requestAnimationFrame is always re-scheduled and logs errors to console for diagnosis. This addresses intermittent terminal stalls that were not correlated with resize, focus, or user interaction.
19 lines
855 B
JSON
19 lines
855 B
JSON
{
|
|
"name": "webterm-frontend",
|
|
"private": true,
|
|
"type": "module",
|
|
"dependencies": {
|
|
"ghostty-web": "github:rcarmo/ghostty-web#b0aa99e8d06069d4bda6ffae87c9de4bb17b2699"
|
|
},
|
|
"devDependencies": {
|
|
"typescript": "^5.7.0"
|
|
},
|
|
"scripts": {
|
|
"build": "bun run typecheck && bun build webterm/static/js/terminal.ts --outfile=webterm/static/js/terminal.js --minify --target=browser && cp node_modules/ghostty-web/ghostty-vt.wasm webterm/static/js/",
|
|
"build:fast": "bun build webterm/static/js/terminal.ts --outfile=webterm/static/js/terminal.js --minify --target=browser",
|
|
"watch": "bun build webterm/static/js/terminal.ts --outfile=webterm/static/js/terminal.js --watch --target=browser",
|
|
"typecheck": "bun x tsc --noEmit -p tsconfig.json",
|
|
"copy-wasm": "cp node_modules/ghostty-web/ghostty-vt.wasm webterm/static/js/"
|
|
}
|
|
}
|