You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Slash-command arguments should be inserted verbatim #755
A command template containing $ARGUMENTS interprets dollar signs in the supplied text. On current main (3b73f8d), entering $$\\alpha + \\beta$$ with $& and $' kept produces $$ as $, turns $& into $ARGUMENTS, and drops text after $'.
Steps to reproduce
Create a command template whose body is Explain: $ARGUMENTS.
Invoke it with $$\\alpha + \\beta$$ with $& and $' kept.
Observe the command text passed to the model; it no longer matches the input.
The focused regression in test/session/command-arguments.test.ts fails on 3b73f8d and passes with the fix. It stops before any model call.
How did you install OpenScience?
From source (bun dev).
OpenScience version
Source commit 3b73f8d.
Provider and model
Not applicable; the reproduction captures the command before a model call.
Operating system
Not OS-specific; reproduced in the Bun test harness.
Activity