write_file( .. ) failed /bin/sh: EDITED_CODE: command not found #1850

Closed
opened 2026-02-16 17:32:56 -05:00 by yindo · 3 comments
Owner

Originally created by @epicwhale on GitHub (Sep 26, 2025).

Originally assigned to: @rekram1-node on GitHub.

Received a failure at this step

Image

Excellent. I'll now write the description we've discussed to the AGENTS.md file.
Plan gemini-2.5-pro (10:48 PM)

Shell Write the project description to the AGENTS.md file.

$ EDITED_CODE = """#
   #####REDACTED##
"""

write_file(
    "/Users/##/##/##/AGENTS.md",
    EDITED_CODE,
    overwrite=True
)
/bin/sh: EDITED_CODE: command not found
/bin/sh: -c: line 18: syntax error near unexpected token `newline'
/bin/sh: -c: line 18: `write_file('
Originally created by @epicwhale on GitHub (Sep 26, 2025). Originally assigned to: @rekram1-node on GitHub. Received a failure at this step <img width="898" height="136" alt="Image" src="https://github.com/user-attachments/assets/56ad604d-e65b-4b0f-84f1-46e9382835e7" /> ``` Excellent. I'll now write the description we've discussed to the AGENTS.md file. Plan gemini-2.5-pro (10:48 PM) Shell Write the project description to the AGENTS.md file. $ EDITED_CODE = """# #####REDACTED## """ write_file( "/Users/##/##/##/AGENTS.md", EDITED_CODE, overwrite=True ) /bin/sh: EDITED_CODE: command not found /bin/sh: -c: line 18: syntax error near unexpected token `newline' /bin/sh: -c: line 18: `write_file(' ```
yindo closed this issue 2026-02-16 17:32:56 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Sep 26, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #1133: Similar /bin/bash command not found error during installation/upgrade process

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Sep 26, 2025): This issue might be a duplicate of existing issues. Please check: - #1133: Similar /bin/bash command not found error during installation/upgrade process Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Sep 26, 2025):

this looks like gemini is just being dumb tbh seems like it tried to create a file with a made up command in the shell

@rekram1-node commented on GitHub (Sep 26, 2025): this looks like gemini is just being dumb tbh seems like it tried to create a file with a made up command in the shell
Author
Owner

@rekram1-node commented on GitHub (Sep 29, 2025):

closing since this is a model trying to run made up commands, not really an opencode issue.

currently I would just add that gemini models perform subpar at this type of work currently (at least compared to some of the other primary options)...

I hope gemini 3 changes that tho

@rekram1-node commented on GitHub (Sep 29, 2025): closing since this is a model trying to run made up commands, not really an opencode issue. currently I would just add that gemini models perform subpar at this type of work **currently** (at least compared to some of the other primary options)... I hope gemini 3 changes that tho
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1850