Skip to content

fix(cli): submit /plan arguments as a one-shot prompt - #388

Merged
qorzj merged 1 commit into
lessweb:mainfrom
wang1408:fix/plan-slash-arguments
Oct 26, 2026
Merged

qorzj merged 1 commit into
lessweb:mainfrom
wang1408:fix/plan-slash-arguments

Conversation

@wang1408

Copy link
Copy Markdown
Contributor

Summary

  • /plan <text> now enables Plan Mode and submits <text> immediately as a one-shot prompt instead of leaving the whole line in the input.
  • /raw <mode> now applies a valid declared mode directly (lite, normal, raw-scrollback) and reports an unknown mode instead of dropping the argument.
  • Other commands keep their existing behavior, including /compact with trailing text.

Bare commands (/plan, /raw, /new, ...), Shift+Tab, and normal prompts behave as before.

Related issue

Fixes #328

Tests

  • node --import tsx --test src/tests/slash-commands.test.ts
  • npm test --workspace=@vegamo/deepcode-cli
  • npm run typecheck --workspace=@vegamo/deepcode-cli
  • npx prettier --check and npx eslint on the changed files

\/plan <text>\ now enables Plan Mode and sends <text> immediately instead of leaving the line in the input. \/raw <mode>\ applies a declared mode directly and reports an unknown mode. Other commands keep their existing behavior.

Fixes lessweb#328
@wang1408

Copy link
Copy Markdown
Contributor Author

CI is showing \�ction_required\ because this is my first contribution to the repo, so the workflow needs a maintainer approval to run. The same commands pass locally: 355 tests (353 pass, 2 skipped), plus typecheck and prettier/eslint on the changed files.

@qorzj
qorzj merged commit 1990562 into lessweb:main Oct 26, 2026
6 checks passed
@qorzj

qorzj commented Oct 26, 2026

Copy link
Copy Markdown
Collaborator

@wang1408 Merged. But this feature may have breaking changes in version 1.0.0, so please stay tuned.

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.

[Bug] /plan 后跟文本回车时仅切换 Plan Mode,文本被静默丢弃

2 participants