feat(opencode): inject file in markdown agents - #34964
viktorashi wants to merge 2 commits into
Conversation
|
Hey! Your PR title Please update it to start with one of:
Where See CONTRIBUTING.md for details. |
|
The following comment was made by an LLM, it may be inaccurate: Based on my search, here are the potentially related PRs:
The PR description also mentions these related issues:
These are the most relevant existing PRs that touch similar areas of template substitution and agent configuration. PR #33854 is particularly relevant since it deals with the same |
Run ConfigVariable.substitute on the prompt source of markdown-backed agents (load) and modes (loadMode). Resolution order: non-empty body wins; empty body falls back to frontmatter `prompt:`. Closes anomalyco#26434 Related: - anomalyco#26489 fix: honour frontmatter prompt when agent .md body is empty - anomalyco#5092 feat: {env:} support in markdown frontmatter
d653c3c to
e962f25
Compare
|
Automated PR Cleanup Thank you for contributing to opencode. Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions. This PR was closed because it matched the following cleanup criteria:
PRs created within the last month are not affected by this cleanup. If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate. Thanks again for taking the time to contribute. |
Issue for this PR
Adresses relevant to #26434
Folks already talking about this
Type of change
What does this PR do?
{file:...}and{env:...}templates for markdown-backed agent prompts using the same substitution path as JSON configpromptwhen the body is emptyIf you paste a large clearly AI generated description here your PR may be IGNORED or CLOSED!
How did you verify your code works?
bun test test/config/config.test.tsinpackages/opencodebun typecheckinpackages/opencodebun turbo typecheckScreenshots / recordings
If this is a UI change, please include a screenshot or recording.
Checklist
If you do not follow this template your PR will be automatically rejected.