snow-flow 10.0.117 → 10.0.119
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/cli/cmd/tui/app.tsx
CHANGED
|
@@ -143,10 +143,24 @@ export function tui(input: {
|
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
console.log("[snow-flow] env: OTUI_USE_ALTERNATE_SCREEN=" + (process.env.OTUI_USE_ALTERNATE_SCREEN ?? "unset"))
|
|
146
|
+
// Test: can this PTY display ANSI at all?
|
|
147
|
+
process.stdout.write("\x1b[32m[snow-flow] ANSI test: this should be green\x1b[0m\n")
|
|
148
|
+
console.log("[snow-flow] stdout.isTTY=" + process.stdout.isTTY + " stdin.isTTY=" + process.stdin.isTTY)
|
|
149
|
+
console.log("[snow-flow] stdout.columns=" + process.stdout.columns + " stdout.rows=" + process.stdout.rows)
|
|
150
|
+
|
|
151
|
+
// Timeout watchdog: if render doesn't produce output in 10s, log it
|
|
152
|
+
const watchdog = setTimeout(() => {
|
|
153
|
+
console.error("[snow-flow] WATCHDOG: render() has been running for 10s without visible output")
|
|
154
|
+
console.error("[snow-flow] This suggests the Zig renderer is stuck or not writing to stdout")
|
|
155
|
+
}, 10_000)
|
|
156
|
+
|
|
146
157
|
try {
|
|
147
|
-
console.log("[snow-flow]
|
|
158
|
+
console.log("[snow-flow] calling render()...")
|
|
148
159
|
await render(
|
|
149
160
|
() => {
|
|
161
|
+
// This callback is invoked when the renderer is ready to build the component tree
|
|
162
|
+
console.error("[snow-flow] render callback invoked - component tree building")
|
|
163
|
+
clearTimeout(watchdog)
|
|
150
164
|
return (
|
|
151
165
|
<ErrorBoundary
|
|
152
166
|
fallback={(error, reset) => <ErrorComponent error={error} reset={reset} onExit={onExit} mode={mode} />}
|