Skip to content

feat(qwencode): carry tools.lspEnabled through the override, global scope only - #3915

Merged
dyoshikawa merged 3 commits into
mainfrom
resolve-issue-2668-qwen-lsp-enabled
Nov 20, 2026
Merged

dyoshikawa merged 3 commits into
mainfrom
resolve-issue-2668-qwen-lsp-enabled

Conversation

@dyoshikawa

Copy link
Copy Markdown
Owner

Refs #2668

Summary

Follows the 2026-11-19 re-check on #2668: Qwen Code v0.27.1 (QwenLM/qwen-code#14613) added tools.lspEnabled, which turns on experimental LSP code intelligence without --experimental-lsp. Upstream lists it in WORKSPACE_RESTRICTED_SETTINGS (packages/cli/src/config/settingsUtils.ts, verified at v0.28.0), so a workspace value is stripped before the merge.

  • Add lspEnabled to QWEN_OVERRIDE_TOOLS_KEYS, so import lifts it back into the qwencode.tools override instead of dropping it.
  • Add lspEnabled: { rule: "workspace-stripped" } to QWEN_SCOPED_TOOLS_KEYS. Generate now skips it with a warning in project scope instead of writing dead config, and writes it in global scope.
  • grants is value === true, because upstream opts in only on a literal true (isLspOptedIn in lsp-opt-in.ts), unlike the booleans it reads for truth.
  • The global note covers folder trust for workspace .lsp.json servers, the refusal when tools.executionSandbox is set, and the QWEN_CODE_ENABLE_LSP / QWEN_CODE_DISABLE_LSP overrides.
  • Update docs/reference/file-formats.md (regenerated src/generated/docs-content.ts) and the type comment in src/types/permissions.ts.

Remaining on #2668

The older items still need a maintainer decision and are not touched here: the .qwen/review-rules.md checks surface, fork profiles, server-level mcp.allowed / mcp.excluded, style files and .qwen/workflows/.

Side note, not changed here: at v0.28.0 upstream WORKSPACE_RESTRICTED_SETTINGS also lists security.folderTrust, which rulesync currently models as user-scope-trust-check. That may need a separate look.

Tests

  • New unit tests in qwencode-permissions.test.ts: project-scope skip with a warning, global write with an announcement, no announcement for false / 1 / "true", and the import round-trip.
  • pnpm cicheck passes. src/utils/glob.test.ts timed out once under load and passed when run alone.

🤖 Generated with Claude Code

https://claude.ai/code/session_01JdNNKCxxrKAMDANMGDEGP4

dyoshikawa and others added 3 commits November 20, 2026 11:27
…cope only

Qwen Code v0.27.1 added `tools.lspEnabled` and lists it in
WORKSPACE_RESTRICTED_SETTINGS, so a workspace value is stripped before the
merge. Lift it on import, skip it with a warning in project scope, and
announce a literal `true` in global scope (Qwen Code opts in only on
`=== true`).

Refs #2668

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01JdNNKCxxrKAMDANMGDEGP4
…en-lsp-enabled

# Conflicts:
#	src/generated/docs-content.ts
@dyoshikawa
dyoshikawa merged commit 5fd48eb into main Nov 20, 2026
10 checks passed
@dyoshikawa
dyoshikawa deleted the resolve-issue-2668-qwen-lsp-enabled branch November 20, 2026 02:58
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