mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-27 00:31:00 +00:00
fix: bash memory usage (#22660)
This commit is contained in:
parent
074ef032ee
commit
307251bf3c
4 changed files with 132 additions and 16 deletions
|
|
@ -1362,8 +1362,8 @@ unix(
|
|||
|
||||
expect(tool.state.metadata.truncated).toBe(true)
|
||||
expect(typeof tool.state.metadata.outputPath).toBe("string")
|
||||
expect(tool.state.output).toContain("The tool call succeeded but the output was truncated.")
|
||||
expect(tool.state.output).toContain("Full output saved to:")
|
||||
expect(tool.state.output).toMatch(/\.\.\.output truncated\.\.\./)
|
||||
expect(tool.state.output).toMatch(/Full output saved to:\s+\S+/)
|
||||
expect(tool.state.output).not.toContain("Tool execution aborted")
|
||||
}),
|
||||
{ git: true, config: providerCfg },
|
||||
|
|
|
|||
|
|
@ -1116,8 +1116,8 @@ describe("tool.bash truncation", () => {
|
|||
),
|
||||
)
|
||||
mustTruncate(result)
|
||||
expect(result.output).toContain("truncated")
|
||||
expect(result.output).toContain("The tool call succeeded but the output was truncated")
|
||||
expect(result.output).toMatch(/\.\.\.output truncated\.\.\./)
|
||||
expect(result.output).toMatch(/Full output saved to:\s+\S+/)
|
||||
},
|
||||
})
|
||||
})
|
||||
|
|
@ -1138,8 +1138,8 @@ describe("tool.bash truncation", () => {
|
|||
),
|
||||
)
|
||||
mustTruncate(result)
|
||||
expect(result.output).toContain("truncated")
|
||||
expect(result.output).toContain("The tool call succeeded but the output was truncated")
|
||||
expect(result.output).toMatch(/\.\.\.output truncated\.\.\./)
|
||||
expect(result.output).toMatch(/Full output saved to:\s+\S+/)
|
||||
},
|
||||
})
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue