fix(core): clarify user-executed shell history (#37515)

Co-authored-by: Aiden Cline <rekram1-node@users.noreply.github.com>
This commit is contained in:
opencode-agent[bot] 2026-07-17 10:49:02 -05:00 committed by GitHub
commit 9b3a4655f1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 2 deletions

View file

@ -124,7 +124,12 @@ describe("toLLMMessages", () => {
)
expect(messages.slice(2).map((message) => message.content)).toEqual([
[{ type: "text", text: "Synthetic context" }],
[{ type: "text", text: "Shell command: pwd\n\n/project" }],
[
{
type: "text",
text: "The following shell command was executed by the user:\n\nCommand:\npwd\n\nOutput:\n/project",
},
],
[
{
type: "text",