Merged
Conversation
added 2 commits
October 27, 2025 14:51
## 主要改动 ### 1. 修复 Claude Code patcher 注入位置bug (src/utils/claude_code_patcher.rs) - **问题**: statusline auto-refresh 代码被错误注入到 if-else 语句中间,导致语法错误 - **原因**: 代码在 xBB() 调用后寻找分号,但实际是在 try-catch 块中用逗号分隔 - **修复**: 改为查找整个 try-catch 块的结束位置 (}});),在块结束后注入 - **效果**: patch 后的 cli.js 语法正确,Claude Code 可以正常运行 ### 2. 优化 wrapper 模式无翻译时的 I/O 处理 (src/wrapper/injector.rs) - **问题**: 无翻译模式下未使用 Stdio::inherit(),导致终端交互异常 - **修复**: 添加 stdin/stdout/stderr 的 inherit 设置 - **效果**: wrapper 模式在不启用翻译时能正常交互 ### 3. 添加配置目录自动迁移 (src/main.rs) - 添加从旧目录 ~/.claude/88code 到新目录 ~/.claude/byebyecode 的自动迁移 - 更新配置路径引用 ## 测试结果 - ✅ byebyecode --patch 可以成功修补 cli.js 且不破坏语法 - ✅ byebyecode --wrap 可以正常启动并交互 - ✅ Claude Code 在 patch 后可以正常运行 ## 版本 v1.1.11
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.
防止年久失修