Repository navigation
Commit 8904013
committed
fix(opencode): keep the one-shot review out of the mode flag
`/ponytail review` was validated with `normalizePersistedMode`, so the
argument was written to the long-lived `.ponytail-active` flag. Every
later session then injected only the one-line `level: review` stub
instead of the ruleset, until the user switched back to a real level.
Review is a one-shot skill, never a persistent level (#377, #736), and
every other host already rejects it as a command argument.
Validate the command argument with `normalizeMode` (runtime levels only).
Reading is unchanged: a stored `review` flag is still honored.1 parent 552acd5 commit 8904013
2 files changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| 143 | + | |
143 | 144 | | |
144 | 145 | | |
145 | 146 | | |
| |||
216 | 217 | | |
217 | 218 | | |
218 | 219 | | |
| 220 | + | |
219 | 221 | | |
220 | 222 | | |
221 | 223 | | |
| |||
0 commit comments