effect(core): track stderr truncation; polish AppProcess callers (#27353)

This commit is contained in:
Kit Langton
2026-05-13 20:31:03 -04:00
committed by GitHub
parent ccb207f946
commit 42e6b7d541
5 changed files with 30 additions and 8 deletions

View File

@@ -5,6 +5,7 @@ import { InstanceState } from "@/effect/instance-state"
import path from "path"
import { mergeDeep } from "remeda"
import { Config } from "@/config/config"
import { errorMessage } from "@/util/error"
import * as Log from "@opencode-ai/core/util/log"
import * as Formatter from "./formatter"
@@ -100,7 +101,7 @@ export const layer = Layer.effect(
command: cmd,
...item.environment,
file: filepath,
cause: error.message,
cause: errorMessage(error.cause ?? error),
})
return undefined
}),