fix(opencode): describe retained shell pipes
This commit is contained in:
parent
421100d322
commit
9e883bfebf
2 changed files with 2 additions and 2 deletions
|
|
@ -578,7 +578,7 @@ export const ShellTool = Tool.define(
|
||||||
if (aborted) meta.push("User aborted the command")
|
if (aborted) meta.push("User aborted the command")
|
||||||
if (incomplete)
|
if (incomplete)
|
||||||
meta.push(
|
meta.push(
|
||||||
`shell tool exited without reaching EOF within ${POST_EXIT_OUTPUT_GRACE_MS} ms; a background descendant may be holding the output pipe open`,
|
`shell process exited, but stdout/stderr did not reach EOF within ${POST_EXIT_OUTPUT_GRACE_MS} ms; a descendant process may still hold inherited pipe handles open`,
|
||||||
)
|
)
|
||||||
const raw = list.map((item) => item.text).join("")
|
const raw = list.map((item) => item.text).join("")
|
||||||
const end = tail(raw, limits.maxLines, limits.maxBytes)
|
const end = tail(raw, limits.maxLines, limits.maxBytes)
|
||||||
|
|
|
||||||
|
|
@ -1117,7 +1117,7 @@ describe("tool.shell abort", () => {
|
||||||
expect(Date.now() - started).toBeLessThan(3_000)
|
expect(Date.now() - started).toBeLessThan(3_000)
|
||||||
expect(result.output).toContain("parent done")
|
expect(result.output).toContain("parent done")
|
||||||
expect(result.output).toContain(
|
expect(result.output).toContain(
|
||||||
"shell tool exited without reaching EOF within 500 ms; a background descendant may be holding the output pipe open",
|
"shell process exited, but stdout/stderr did not reach EOF within 500 ms; a descendant process may still hold inherited pipe handles open",
|
||||||
)
|
)
|
||||||
expect(result.metadata.outputIncomplete).toBe(true)
|
expect(result.metadata.outputIncomplete).toBe(true)
|
||||||
}),
|
}),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue