snow-flow 10.0.116 → 10.0.117

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
- "version": "10.0.116",
3
+ "version": "10.0.117",
4
4
  "name": "snow-flow",
5
5
  "description": "Snow-Flow - ServiceNow Multi-Agent Development Framework powered by AI",
6
6
  "license": "Elastic-2.0",
@@ -118,6 +118,17 @@ export function tui(input: {
118
118
  const skipThemeDetection = !!process.env.OPENCODE_SKIP_THEME_DETECTION || !!process.env.OPENCODE_REMOTE_TUI
119
119
  // promise to prevent immediate exit
120
120
  return new Promise<void>(async (resolve) => {
121
+ // Crash handlers for debugging PTY rendering issues
122
+ process.on("uncaughtException", (err) => {
123
+ console.error("[snow-flow] UNCAUGHT:", err.message, err.stack)
124
+ })
125
+ process.on("unhandledRejection", (err) => {
126
+ console.error("[snow-flow] UNHANDLED:", err)
127
+ })
128
+ process.on("exit", (code) => {
129
+ if (code !== 0) console.error("[snow-flow] EXIT code:", code)
130
+ })
131
+
121
132
  let mode: "dark" | "light" = "dark"
122
133
  if (skipThemeDetection) {
123
134
  console.log("[snow-flow] skipping theme detection")
@@ -131,6 +142,7 @@ export function tui(input: {
131
142
  resolve()
132
143
  }
133
144
 
145
+ console.log("[snow-flow] env: OTUI_USE_ALTERNATE_SCREEN=" + (process.env.OTUI_USE_ALTERNATE_SCREEN ?? "unset"))
134
146
  try {
135
147
  console.log("[snow-flow] starting tui...")
136
148
  await render(
package/src/pty/index.ts CHANGED
@@ -115,6 +115,7 @@ export namespace Pty {
115
115
  extraEnv = {
116
116
  OPENCODE_SKIP_THEME_DETECTION: "1",
117
117
  OPENCODE_DISABLE_KITTY_KEYBOARD: "1",
118
+ OTUI_USE_ALTERNATE_SCREEN: "0",
118
119
  COLORTERM: "truecolor",
119
120
  FORCE_COLOR: "3",
120
121
  }
@@ -56,6 +56,7 @@ async function spawnTui(cols: number, rows: number, env?: Record<string, string>
56
56
  FORCE_COLOR: "3",
57
57
  OPENCODE_SKIP_THEME_DETECTION: "1",
58
58
  OPENCODE_DISABLE_KITTY_KEYBOARD: "1",
59
+ OTUI_USE_ALTERNATE_SCREEN: "0",
59
60
  },
60
61
  },
61
62
  )