-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Bug Fixes and Workflow Improvements #50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Jany-M
wants to merge
8
commits into
HKUDS:main
Choose a base branch
from
Jany-M:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
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
Added missing python packages
Improved paper project creation, fixed issue with pdf conversion,added progress tracking and info, added dynamic token use depending on model, added loop breaker detector
Added own versioning, translated Chinese comments to English
|
@MonkeyCode-AI review this pr plz |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我是 MonkeyCode AI 编程助手,你可以在 GitHub 任意仓库的任意 Issue 或 PR 中 at @MonkeyCode-AI 来呼唤我。
任务执行细节请参考: 0bebb7b4-af69-11f0-b1be-ee6ce69b85f1
Pull Request 概述
- 这个PR实现了多项重要的功能增强和改进,包括动态模型限制检测、循环检测系统、进度跟踪、中止机制、缓存清理脚本等。
- 修复了多个关键问题,如错误检测过于严格导致的误判、空文件生成、PDF保存位置不正确等。
- 改进了模型感知的令牌管理、成本计算、重试逻辑和错误处理机制。
- 添加了文档分割服务器到代码实现工作流,改进了代理编排引擎中的错误处理和资源清理。
Pull Request 变更详情
- 这个PR添加了新的工具和模块,增强了PDF转换和文件处理功能,改进了UI组件和处理程序,并增强了错误处理和进度跟踪机制。
变更详情
| 文件路径 | 变更类型 | 变更内容 |
|---|---|---|
| .gitignore | 修改 | 添加了对deepcode_lab、logs、mcp_agent.config.yaml和mcp_agent.secrets.yaml的忽略 |
| CHANGELOG.md | 添加 | 添加了版本更新日志,详细记录了新增功能、修复内容和改进 |
| init.py | 修改 | 更新了版本号和作者信息,添加了项目仓库URL |
| deepcode.py | 修改 | 改进了LibreOffice检测逻辑,增加了对Windows系统的更好支持 |
| requirements.txt | 修改 | 添加了openapi、openai、PyPDF2和aiohttp依赖 |
| tools/pdf_converter.py | 修改 | 增强了PDF转换功能,包括更好的LibreOffice检测、改进的文件路径管理等 |
| ui/components.py | 修改 | 增强了文件上传和转换组件,添加了缓存机制和进度显示 |
| ui/handlers.py | 修改 | 添加了全局中止标志和中止处理逻辑,增强了进度回调和错误处理 |
| utils/file_processor.py | 修改 | 改进了文件处理逻辑,包括PDF自动转换为Markdown等功能 |
| utils/loop_detector.py | 添加 | 添加了循环检测和超时保护模块 |
| utils/model_limits.py | 添加 | 添加了模型限制和能力检测模块 |
| workflows/agent_orchestration_engine.py | 修改 | 增强了代理编排引擎,包括动态令牌管理、进度跟踪、错误处理等 |
| workflows/code_implementation_workflow.py | 修改 | 增强了代码实现工作流,包括循环检测、进度跟踪、令牌使用和成本计算等 |
| workflows/code_implementation_workflow_index.py | 修改 | 增强了代码实现索引工作流,包括循环检测、进度跟踪、令牌使用和成本计算等 |
|
@AbhishekSinghVerma ai suggestions checked, nothing to fix. |
Shubhamyache
approved these changes
Nov 4, 2025
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.
[1.0.6-jm] - 2025-10-19
Added
utils/model_limits.pymodule that automatically detects and adapts to any LLM model's token limits and pricingutils/loop_detector.pyprevents infinite loops by detecting repeated tool calls, timeouts, and progress stallsFixed
paper_{timestamp}folders instead of reusingpdf_outputdeepcode_lab/papers/instead of system temp directorymax_tokensto respect model limits dynamically (e.g., gpt-4o-mini's 16,384 token limit)mcp_agent.config.yamlChanged
Technical Improvements
paper_pathkey)Documentation
Breaking Changes
Known Issues
Success Metrics
Checklist