Commit 1d5742f
committed
fix(parser): Allow multiple instances for all commands except TakeScreenshot
Refined the single-instance command logic in CommandParser.kt's
`processTextInternal` method.
Previously, several command types (e.g., home, back, model changes) were
treated as single-instance per parsing pass. This change modifies the logic
so that only `CommandTypeEnum.TAKE_SCREENSHOT` is subject to this
single-instance filtering.
All other command types can now be parsed multiple times if they appear
sequentially in the input string, allowing for sequences like
"scroll down scroll down" or "home home" to be correctly processed into
multiple distinct commands.1 parent c1d15dc commit 1d5742f
1 file changed
Lines changed: 1 addition & 7 deletions
Lines changed: 1 addition & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
| 257 | + | |
264 | 258 | | |
265 | 259 | | |
266 | 260 | | |
| |||
0 commit comments