Conversation
- 修复问题: 解决因未转义文本导致的Rich Markup解析错误 * 在 `Static` 初始化时显式设置 `markup=False` 参数以禁用自动解析 * 对动态生成的日志结果调用 `rich.markup.escape` 函数进行转义处理 * 修复了 `audit-result-log` 容器在渲染包含特殊字符的批准/拒绝状态时的崩溃逻辑
- 新增功能: 扩展文件搜索逻辑以兼容单文件输入 * `src/workspace/workspace.py`: 移除 `path.is_dir()` 强制检查,在 `files_to_search` 初始化阶段增加 `if path.is_file()` 分支判断 * `src/workspace/tools/regex_search_tool.py`: 重构 `files_to_search` 生成逻辑,添加 `search_path.is_file()` 前置判断,并调整 `relative_path` 计算逻辑以适配非目录场景 * `src/workspace/tools/exact_search_tool.py`: 统一文件遍历入口为 `files_to_search` 列表,增加 `file_path.is_file()` 过滤及 `relative_path` 条件计算 - 修复问题: 解决路径指向具体文件时搜索逻辑失效的缺陷 * 修复了当 `search_path` 或 `folder_path` 精确指向单个文件时,原代码因递归查找 (`rglob`) 导致无法读取内容的 Bug
- 文档更新: 同步项目文档与配置中的版本信息 * `README_ZH.md`: 将中文说明中的版本标识从 0.4.0 更新为 0.4.1 * `README.md`: 将英文说明中的 Version 字段从 0.4.0 更新为 0.4.1 - 代码变更: 更新核心常量定义与构建配置 * `src/constants/__init__.py`: 修改 `__version__` 常量为 "0.4.1" * `pyproject.toml`: 将 `[project]` 下的 `version` 属性从 "0.4.0" 更新为 "0.4.1"
- 新增功能: 支持单文件路径搜索与工具扩展 * 扩展 `exact_search` 和 `regex_search` 工具以直接处理单文件路径 * 在 `files_to_search` 初始化阶段增加 `is_file()` 分支判断 * 调整 `relative_path` 计算逻辑以适配非目录场景 - 修复问题: 解决审核标签页崩溃及单文件搜索失效 * 修复因未转义文本导致的 Rich Markup 解析错误 (MarkupError) * 在 `Static` 组件上设置 `markup=False` 并调用 `rich.markup.escape()` 处理动态日志结果 * 修正 `rglob` 无法处理文件路径导致的内容读取失败 Bug
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.
fix(audit_tab): 修复审核页面展开折叠组件时的MarkupError崩溃 (#124)
Static初始化时显式设置markup=False参数以禁用自动解析rich.markup.escape函数进行转义处理audit-result-log容器在渲染包含特殊字符的批准/拒绝状态时的崩溃逻辑