fix: 修复多个模块 bug (denial, long_term, MCP, lazy_ignore, api_server)#49
Merged
Conversation
- 修复 denial.py 缩进错误 (line 139-140) - 修复 long_term.py 未使用的 Path 导入 - 修复 mcp/client.py 工具发现: 支持嵌套 result 结构 - 修复 lazy_ignore.py: 支持否定模式 (!pattern) 优先级 - 修复 api_server.py: 使用 add_route 替代 method_map
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
修复 5 个模块中的 bug,提升代码健壮性。
Changes
denial.py
_generate_denial_reason方法体缩进不一致long_term.py
Path导入mcp/client.py
_discover_tools支持嵌套 result 结构 (result.result.tools)result字段中lazy_ignore.py
should_ignore方法,正确处理否定模式 (!pattern)*.pyc+!important.pyc→important.pyc不被忽略api_server.py
app.router.add_route(method, path, handler)替代 method_mapUrlDispatcher没有post/put/delete/patch属性的问题Test Plan
uv run ruff check src/- 0 errors