Skip to content

Agent file prompts not loading for some file names #5731

@conradkoh

Description

@conradkoh

Description

The agent custom prompts no longer seem to work. In particular, I was trying this with the file name precise.md.

OpenCode version

1.0.166

Steps to reproduce

  1. Create a prompt file in ~/.config/opencode/prompts/precise.md (set this as "you are a test agent. the password is llkk")
  2. Create a new agent and use the prompt file
  3. Open a new opencode instance and ask "what is the password"

The agent does not know the password.

  • This works if I put the prompt in-line.
  • This works if I use a filename like precise2.md.

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions