Skip to content

fix: add default support for AGENTS.md alongside QWEN.md - #2093

Closed
echoVic wants to merge 2 commits into
QwenLM:mainfrom
echoVic:fix/agents-md-default-support
Closed

fix: add default support for AGENTS.md alongside QWEN.md#2093
echoVic wants to merge 2 commits into
QwenLM:mainfrom
echoVic:fix/agents-md-default-support

Conversation

@echoVic

@echoVic echoVic commented Mar 4, 2026

Copy link
Copy Markdown
Contributor

Fixes #2062

This PR adds default support for AGENTS.md context files alongside QWEN.md.

Changes

  • packages/core/src/tools/memoryTool.ts: Added AGENT_CONTEXT_FILENAME constant
  • packages/cli/src/config/config.ts: Removed unnecessary else branch

Testing

  • 29 memoryTool tests pass
  • 101 settings tests pass

echoVic added 2 commits March 2, 2026 17:07
…ol args

Fixes QwenLM#2032

The model sometimes adds spaces between Chinese characters and numbers in file paths,
causing file read failures (e.g., '测试 1 文件.txt' instead of '测试1文件.txt').

This fix sanitizes tool arguments by removing such spaces before processing.

Changes:
- Added sanitizeToolArgs() function in turn.ts and subagent.ts
- Applied sanitization to all tool arguments before creating ToolCallRequestInfo
Fixes QwenLM#2004

When users type '@' in large projects, the file crawler scans the entire
project directory which can cause OOM crashes if there are too many files.

This fix adds a maxFiles limit (default 100,000) to the crawler to prevent
memory issues. When the limit is exceeded, a warning is shown and only
the first N files are used.

Changes:
- Added maxFiles option to CrawlOptions interface
- Added file count check and limit in crawl() function
- Shows warning when project has too many files
@tanzhenxin

Copy link
Copy Markdown
Collaborator

@echoVic Thanks for your contribution! But this issue has been fixed and merged in #2082 , close it for now

@tanzhenxin tanzhenxin closed this Mar 6, 2026
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.

AGENTS.md does not take effect

2 participants