Skip to content

release: v0.2.2 — fix /cursor:resume prompt-eating bug + default model = auto#6

Merged
freema merged 1 commit into
mainfrom
release/0.2.2
May 18, 2026
Merged

release: v0.2.2 — fix /cursor:resume prompt-eating bug + default model = auto#6
freema merged 1 commit into
mainfrom
release/0.2.2

Conversation

@freema
Copy link
Copy Markdown
Owner

@freema freema commented May 18, 2026

Summary

  • Fix: /cursor:resume <prompt…> no longer consumes the first prompt word as a chat-id. --resume was missing from the boolean-flag whitelist in delegate.mjs, so the argv parser greedily took the next positional token. Reported in chat: Cursor chat id: řekni — resume with cursor-agent --resume=řekni. Declared resume as boolean; --resume=<chat-id> still works because the = form is parsed independently.
  • Change: Default model is now auto (was composer-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 via CURSOR_PLUGIN_CC_DEFAULT_MODEL, or per-invocation via --model <id>.
  • Docs: README install section moved up front; GitHub install marked preferred, local checkout install kept below for plugin hackers. Requirements list now lives under Install and no longer implies a paid subscription is mandatory.
  • Version bumped to 0.2.2 in 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
  • Manual smoke after merge: /cursor:resume "follow up task" against real cursor-agent, confirm prompt arrives intact and auto model resolves

🤖 Generated with Claude Code

…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>
@freema freema merged commit 9d05f96 into main May 18, 2026
6 checks passed
@freema freema deleted the release/0.2.2 branch May 18, 2026 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant