release: v0.2.2 — fix /cursor:resume prompt-eating bug + default model = auto#6
Merged
Conversation
…del → auto `/cursor:resume <prompt…>` previously consumed the first positional token as a chat-id because `--resume` wasn't in delegate.mjs' boolean-flag whitelist. Declare `resume` as boolean; `--resume=<id>` still works via the `=` form. Also flip the default model from `composer-2-fast` to `auto` so users without a paid Composer 2 seat get a working out-of-the-box experience. Power users can pin a default via the new `CURSOR_PLUGIN_CC_DEFAULT_MODEL` env var, or per-invocation via `--model`. README install section moved up; GitHub install marked preferred; local checkout install kept below for plugin hackers. Regression tests cover both the resume parsing and the env-driven default-model behaviour. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/cursor:resume <prompt…>no longer consumes the first prompt word as a chat-id.--resumewas missing from the boolean-flag whitelist indelegate.mjs, so the argv parser greedily took the next positional token. Reported in chat:Cursor chat id: řekni — resume with cursor-agent --resume=řekni. Declaredresumeas boolean;--resume=<chat-id>still works because the=form is parsed independently.auto(wascomposer-2-fast). Users without a paid Composer 2 seat can run the plugin out of the box; Cursor picks whatever model the account is entitled to. Power users can pin a default globally viaCURSOR_PLUGIN_CC_DEFAULT_MODEL, or per-invocation via--model <id>.plugin.json+package.json(+ lockfile sync); CHANGELOG updated.Test plan
npm test— 57 tests pass (4 new: 2 for resume parsing including unicode multi-word prompt, 2 for env-driven default model)npm run lint— prettier + eslint clean/cursor:resume "follow up task"against real cursor-agent, confirm prompt arrives intact andautomodel resolves🤖 Generated with Claude Code