opencode icon indicating copy to clipboard operation
opencode copied to clipboard

support multiple prompt {file:...} directives

Open nrbrd opened this issue 4 months ago • 2 comments

this is a small tweak in the config loader to support handling multiple file references in the config, so we can have something like this:

{
    "mode": {
        "foobar": {
            "prompt": "{file:./prompts/foo.txt}{file:./prompts/bar.txt}"
        }
    }

for example

nrbrd avatar Jul 15 '25 17:07 nrbrd

Doesn't the prompt key support an array of strings?

josephschmitt avatar Jul 17 '25 03:07 josephschmitt

not, it only supports a string

nrbrd avatar Jul 17 '25 11:07 nrbrd