From bb79074234a991c4574af5fc2f4cce01cbaf7985 Mon Sep 17 00:00:00 2001 From: Qwen Code Bot Date: Mon, 23 Mar 2026 13:52:07 +0800 Subject: [PATCH 1/2] fix(vscode): align preview version format with CLI - Use scripts/get-release-version.js for version calculation - Preview versions now use incrementing format (0.13.0-preview.N) - Matches CLI release version format - Fixes inconsistency between CLI and VSCode preview versions --- .../workflows/release-vscode-companion.yml | 45 ++++++------------- 1 file changed, 13 insertions(+), 32 deletions(-) diff --git a/.github/workflows/release-vscode-companion.yml b/.github/workflows/release-vscode-companion.yml index 1011975291..9a3ded1231 100644 --- a/.github/workflows/release-vscode-companion.yml +++ b/.github/workflows/release-vscode-companion.yml @@ -87,46 +87,27 @@ jobs: - name: 'Get the version' id: 'version' - working-directory: 'packages/vscode-ide-companion' run: | - # Get the base version from package.json regardless of scenario - BASE_VERSION=$(node -p "require('./package.json').version") - + VERSION_ARGS=() if [[ "${IS_PREVIEW}" == "true" ]]; then - # Generate preview version. If a manual version is provided and already - # contains -preview., use it as-is (no timestamp). Otherwise, append - # a timestamp for uniqueness. + VERSION_ARGS+=(--type=preview) if [[ -n "${MANUAL_VERSION}" ]]; then - MANUAL_CLEAN="${MANUAL_VERSION#v}" # Remove 'v' prefix if present - if [[ "${MANUAL_CLEAN}" == *"-preview."* ]]; then - PREVIEW_VERSION="${MANUAL_CLEAN}" - else - PREVIEW_BASE="${MANUAL_CLEAN%%-*}" # Strip any prerelease/build - TIMESTAMP=$(date +%Y%m%d%H%M%S) - PREVIEW_VERSION="${PREVIEW_BASE}-preview.${TIMESTAMP}" - fi - else - TIMESTAMP=$(date +%Y%m%d%H%M%S) - PREVIEW_VERSION="${BASE_VERSION}-preview.${TIMESTAMP}" + VERSION_ARGS+=("--preview_version_override=${MANUAL_VERSION}") fi - - RELEASE_TAG="${PREVIEW_VERSION}" - - echo "RELEASE_TAG=${RELEASE_TAG}" >> "$GITHUB_OUTPUT" - echo "RELEASE_VERSION=${PREVIEW_VERSION}" >> "$GITHUB_OUTPUT" - echo "VSCODE_TAG=preview" >> "$GITHUB_OUTPUT" else - # Use specified version or get from package.json + VERSION_ARGS+=(--type=stable) if [[ -n "${MANUAL_VERSION}" ]]; then - RELEASE_VERSION="${MANUAL_VERSION#v}" # Remove 'v' prefix if present - RELEASE_TAG="${MANUAL_VERSION#v}" # Remove 'v' prefix if present - else - RELEASE_VERSION="${BASE_VERSION}" - RELEASE_TAG="${BASE_VERSION}" + VERSION_ARGS+=("--stable_version_override=${MANUAL_VERSION}") fi + fi + + VERSION_JSON=$(node scripts/get-release-version.js "${VERSION_ARGS[@]}") + echo "RELEASE_TAG=$(echo "$VERSION_JSON" | jq -r .releaseTag)" >> "$GITHUB_OUTPUT" + echo "RELEASE_VERSION=$(echo "$VERSION_JSON" | jq -r .releaseVersion)" >> "$GITHUB_OUTPUT" - echo "RELEASE_TAG=${RELEASE_TAG}" >> "$GITHUB_OUTPUT" - echo "RELEASE_VERSION=${RELEASE_VERSION}" >> "$GITHUB_OUTPUT" + if [[ "${IS_PREVIEW}" == "true" ]]; then + echo "VSCODE_TAG=preview" >> "$GITHUB_OUTPUT" + else echo "VSCODE_TAG=latest" >> "$GITHUB_OUTPUT" fi env: From a863d3f8082a870654715882bebe32a5501f39a3 Mon Sep 17 00:00:00 2001 From: Qwen Code Dev Bot Date: Wed, 25 Mar 2026 12:23:53 +0800 Subject: [PATCH 2/2] fix: change default context filename from QWEN.md to AGENTS.md - Update DEFAULT_CONTEXT_FILENAME to 'AGENTS.md' so /init command creates AGENTS.md - Keep QWEN.md in the filename list for backward compatibility - Update help text and comments to reflect the new default --- packages/core/src/tools/memoryTool.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/core/src/tools/memoryTool.ts b/packages/core/src/tools/memoryTool.ts index 6554490684..db5a85b4e6 100644 --- a/packages/core/src/tools/memoryTool.ts +++ b/packages/core/src/tools/memoryTool.ts @@ -44,7 +44,7 @@ const memoryToolSchemaData: FunctionDeclaration = { scope: { type: 'string', description: - 'Where to save the memory: "global" saves to user-level ~/.qwen/QWEN.md (shared across all projects), "project" saves to current project\'s QWEN.md (project-specific). If not specified, will prompt user to choose.', + 'Where to save the memory: "global" saves to user-level ~/.qwen/AGENTS.md (shared across all projects), "project" saves to current project\'s AGENTS.md (project-specific). If not specified, will prompt user to choose.', enum: ['global', 'project'], }, }, @@ -70,19 +70,19 @@ Do NOT use this tool: - \`fact\` (string, required): The specific fact or piece of information to remember. This should be a clear, self-contained statement. For example, if the user says "My favorite color is blue", the fact would be "My favorite color is blue". - \`scope\` (string, optional): Where to save the memory: - - "global": Saves to user-level ~/.qwen/QWEN.md (shared across all projects) - - "project": Saves to current project's QWEN.md (project-specific) + - "global": Saves to user-level ~/.qwen/AGENTS.md (shared across all projects) + - "project": Saves to current project's AGENTS.md (project-specific) - If not specified, the tool will ask the user where they want to save the memory. `; export const QWEN_CONFIG_DIR = '.qwen'; -export const DEFAULT_CONTEXT_FILENAME = 'QWEN.md'; +export const DEFAULT_CONTEXT_FILENAME = 'AGENTS.md'; export const AGENT_CONTEXT_FILENAME = 'AGENTS.md'; export const MEMORY_SECTION_HEADER = '## Qwen Added Memories'; // This variable will hold the currently configured filename for context files. -// It defaults to include both QWEN.md and AGENTS.md but can be overridden by setGeminiMdFilename. -// QWEN.md is first to maintain backward compatibility (used by /init command and save_memory tool). +// It defaults to include both AGENTS.md and QWEN.md but can be overridden by setGeminiMdFilename. +// AGENTS.md is first as the new default, QWEN.md is kept for backward compatibility. let currentGeminiMdFilename: string | string[] = [ DEFAULT_CONTEXT_FILENAME, AGENT_CONTEXT_FILENAME,