Configured commands interpret literal dollar sequences in arguments
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 74/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- typescript
- Domain
- cli
Research direction
Start at Command.execute and reproduce the configured-command case with the template Explain $ARGUMENTS. and the literal argument $&. Trace how arguments are substituted, including $$, dollar-backtick, and $'; done means these sequences remain literal while ordinary arguments and positional placeholders retain their existing behavior.
Written by the indexing model from the issue text.
Description
Description
A configured command interprets replacement-dollar sequences in its arguments instead of inserting them literally. For example, $& repeats the $ARGUMENTS placeholder.
Plugins
Built-in configured commands; no external plugins.
OpenCode version
V2 source checkout at 541937d12449e64d078c67e9013f1c288004b83f.
Steps to reproduce
- Define a custom command with the template
Explain $ARGUMENTS.. - Invoke it with the literal argument
$&. - Inspect the prompt produced by
Command.execute.
Expected: Explain $&.. Actual: Explain $ARGUMENTS.. The sequences $$, dollar-backtick and $' are also expanded by JavaScript's replacement-string rules. Ordinary arguments and positional placeholders pass their controls.
Operating System
macOS arm64, Bun 1.4.1.
- Dominant language
- TypeScript
- Stars
- 212k
- Forks
- 28.1k
- Avg merge
- 8h 49m
- Merged PRs (30d)
- 348
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from anomalyco/opencode
-
Windows: global-project session path depends on server process drive, hides API-created sessions from desktop pickerPossibly taken @1624318455 claimed this 10 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
[FEATURE]: Test that PermissionV2 declines pending requests when its scope closesPossibly taken @saeedahmed96 claimed this 8 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
EffectFlock heartbeat never refreshes, so locks held over 60 s can be brokenPossibly taken @iceteaSA claimed this 11 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
anomalyco/opencode#51159 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
All issues in anomalyco/opencode
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 4 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day