Skip to content

🔄 Sync with upstream Qwen Code#11

Closed
davipeterlini wants to merge 174 commits intomainfrom
merge-back
Closed

🔄 Sync with upstream Qwen Code#11
davipeterlini wants to merge 174 commits intomainfrom
merge-back

Conversation

@davipeterlini
Copy link
Copy Markdown
Owner

🔄 Sync with Upstream Repository

This PR syncs the latest changes from the official Qwen Code repository.

📊 Changes Summary

⚠️ Manual Steps Required

Before merging this PR, please:

  1. Review conflicts: Check if there are any merge conflicts with our custom changes
  2. Test locally: Pull the merge-back branch and test the application
    git fetch origin merge-back
    git checkout merge-back
    npm install
    npm run build
    npm test
  3. Verify custom features: Ensure our custom implementations still work:
    • ESC to restore prompt feature
    • SuperClaude features (agents, intelligence, planning, robustness)
    • Custom workflows and examples
    • Documentation updates
  4. Update dependencies: Check if any dependencies need updates
  5. Run full test suite: Ensure all tests pass
    npm run test:all
    npm run lint

🔗 References

📝 Merge Instructions

After verifying everything:

  1. Resolve any conflicts manually
  2. Update the changelog if needed
  3. Merge this PR using merge commit (not squash) to preserve upstream history

🤖 This PR was automatically created by the sync-upstream workflow.

LaZzyMan and others added 30 commits January 26, 2026 15:17
…n matching

Fixes QwenLM#1760

Windows file system is case-insensitive (e:\work equals E:\work),
but string hashing is case-sensitive, causing different session
directories for the same physical path.

Solution: normalize paths to lowercase on Windows before hashing
to ensure consistent session directory across different case variations.
Ensures consistent Windows path normalization across all path hashing.
Previously Storage used its own getFilePathHash() which didn't apply
Windows lowercase normalization, causing test failures on Windows CI.
- Add HTML template for insights display.
- Create JavaScript application logic for rendering insights.
- Introduce CSS styles for layout and design.
- Develop a test generator for validating the static insight generator.
- Define TypeScript interfaces for structured insight data.
- Refactor insight command to generate insights and open in browser.
- Remove the need for a server process by generating static files directly.
- Refine DataProcessor and StaticInsightGenerator logic
- Update StaticInsightTypes definitions
- Enhance insight command implementation
- Update package dependencies
tanzhenxin and others added 28 commits February 27, 2026 21:32
…e-pr

fix: unblock input after ESC cancel
…1305

- Add error code 1305 to RATE_LIMIT_ERROR_CODES for DashScope/IdealTalk internal rate limit detection (issue QwenLM#1918)
- Add test case for 1305 error code detection
- Update existing test cases to use 9999 as custom error code to avoid conflict
- Remove unused sdk-java/.gitignore file

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
…guage path priority

- Add 3 tests for SubAgentScope.buildChatSystemPrompt appending userMemory
- Add 3 tests for project-level output-language.md path resolution priority

Made-with: Cursor
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
- Add AuthDisplayType enum and helper for Coding Plan detection
- Remove formatAuthType/titleizeAuthType functions
- Update tests for new auth types

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
- Add i18n keys for modality types and status labels
- Update ModelDialog to use t() for user-facing strings

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
- Update error messages for unsupported image/PDF inputs with clearer guidance
- Add `modalities` setting to override auto-detected input modalities
- Document `modalities` config in model-providers.md and settings.md
- Update converter tests to match new error message format

This provides users with actionable alternatives when their selected model doesn't support certain input types, and allows manual modality overrides for models not recognized by auto-detection.

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>

- Add 5MB limit for image files to prevent API errors

- Add 10MB limit for PDF files based on provider constraints

- Return FILE_TOO_LARGE error with clear message when limits exceeded

- Add tests for both image and PDF size limit enforcement

This prevents errors when attempting to process large binary files that exceed provider API limits.
Add AGENT_CONTEXT_FILENAME constant and include AGENTS.md in default
context file search alongside QWEN.md. This enables out-of-the-box
support for the AGENTS.md standard (https://agents.md/) without
requiring manual configuration.

Changes:
- Add AGENT_CONTEXT_FILENAME = 'AGENTS.md' constant
- Update currentGeminiMdFilename default to include both AGENTS.md and QWEN.md
- AGENTS.md takes precedence (first in array) for the de facto standard

Closes QwenLM#2006
- Add weighted tip system to make certain tips appear more frequently
- Set /insight tip to weight 3 (3x more likely than regular tips)
- Add i18n translations for the new tip across all supported languages
- Add comprehensive unit tests for weighted tip selection

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
…sure

feat(cli): Increase /insight feature exposure via weighted tips
- Removed exact match assertion for help text that changed in UI
- Test now only verifies the dialog title renders correctly

The help text changed from 'Enter to select · Esc to close' to
'Enter to select, ↑↓ to navigate, Esc to close', causing the test
to fail unnecessarily.

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
…heck

- Reduce general file size limit from 20MB to 10MB (using 9.9MB threshold)
- Remove per-type size limits (5MB images, 10MB PDFs)
- Add base64 encoding size check for PDFs to prevent data URI limit errors
- Update all tests to reflect new 10MB limit

This fixes issue QwenLM#1880 where large PDFs could exceed API data URI limits
after base64 encoding, causing errors. The 9.9MB threshold provides
margin for encoding overhead.

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>

Replace generic skill suggestion with specific guidance to install

the document-skills extension for PDF processing.
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
Keep QWEN.md as the first element in the default context filenames array
to maintain backward compatibility with /init command and save_memory tool.
Both QWEN.md and AGENTS.md will still be searched and loaded, but QWEN.md
takes precedence for file creation operations.
…logs

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
…default

feat: support AGENTS.md as default context file
…anguage

fix(subagent): append output-language.md to subagent system prompt and prioritize project-level settings
fix(core/rateLimit): add support for rate limit error code 1305 and custom retry error codes
…utput

fix(logging): reduce excessive streaming output in session history logs
docs: update installation instructions
…error

fix: add modality defaults to prevent API errors when reading PDFs and other media
Upstream workflows are removed to avoid permission issues when pushing the merge-back branch. Only sync-upstream.yml is kept.

Co-Authored-By: GitHub Actions <github-actions[bot]@users.noreply.github.com>
@davipeterlini davipeterlini deleted the merge-back branch March 9, 2026 09:50
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.