| chore(core): 清理 hook/agent 模块的未用导入与死字段
消除 atomcode-core 的 9 个编译 warning,纯清理、无行为变更:
- 移除未用 import:HookEngine(background/parallel_edit)、Arc(hook mod/built_in)、AsyncWebhookConfig(webhook)
- 删除从不读取的字段:AsyncWebhookBatcher.client(后台任务用自己的 clone)、SessionSummaryHook.start_time
- 删除 finish_turn 中算出却未用的 wd_str(白白获取一次读锁)
- TurnStatsHook::on_turn_start 未用参数 ctx → _ctx
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
| 6 天前 |
| chore(core): 清理 hook/agent 模块的未用导入与死字段
消除 atomcode-core 的 9 个编译 warning,纯清理、无行为变更:
- 移除未用 import:HookEngine(background/parallel_edit)、Arc(hook mod/built_in)、AsyncWebhookConfig(webhook)
- 删除从不读取的字段:AsyncWebhookBatcher.client(后台任务用自己的 clone)、SessionSummaryHook.start_time
- 删除 finish_turn 中算出却未用的 wd_str(白白获取一次读锁)
- TurnStatsHook::on_turn_start 未用参数 ctx → _ctx
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
| 6 天前 |
| Auto-commit at turn #1 (2 files changed)
| 9 天前 |
| chore(core): 清理既有编译告警
合并后 cargo check 暴露的存量告警(均在 atomcode-core,与本次合并无关):
- 移除未使用 import(glob/bash/hook_test/webhook_test/hook_integration_test)
- 去掉多余 mut、未使用变量改 _result(turn/tests、plugin/loader)
- 死代码测试辅助函数加 #[allow(dead_code)](engine、config_loader)
- RAII Guard 的 TempDir 字段加 #[allow(dead_code)](plugin_integration)
- script_runner trait-bound 断言 require_hook::<ScriptHook>(); 改为真正调用,
消除 path_statement 告警
- hook_integration_test::create_test_runner 改 async 并 .await registry.register
(register 是 async,原先 future 被丢弃,MockEchoTool 实际从未注册——顺手修掉)
验证:cargo check --workspace --exclude atomcode-codingplan-crypto --tests 零告警零错误。
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
| 2 天前 |
| chore(core): 清理既有编译告警
合并后 cargo check 暴露的存量告警(均在 atomcode-core,与本次合并无关):
- 移除未使用 import(glob/bash/hook_test/webhook_test/hook_integration_test)
- 去掉多余 mut、未使用变量改 _result(turn/tests、plugin/loader)
- 死代码测试辅助函数加 #[allow(dead_code)](engine、config_loader)
- RAII Guard 的 TempDir 字段加 #[allow(dead_code)](plugin_integration)
- script_runner trait-bound 断言 require_hook::<ScriptHook>(); 改为真正调用,
消除 path_statement 告警
- hook_integration_test::create_test_runner 改 async 并 .await registry.register
(register 是 async,原先 future 被丢弃,MockEchoTool 实际从未注册——顺手修掉)
验证:cargo check --workspace --exclude atomcode-codingplan-crypto --tests 零告警零错误。
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
| 2 天前 |
| Auto-commit at turn #1 (2 files changed)
| 7 天前 |
| Merge branch 'pr_137' into release/v4.23.1
| 13 天前 |
| chore(core): 清理 hook/agent 模块的未用导入与死字段
消除 atomcode-core 的 9 个编译 warning,纯清理、无行为变更:
- 移除未用 import:HookEngine(background/parallel_edit)、Arc(hook mod/built_in)、AsyncWebhookConfig(webhook)
- 删除从不读取的字段:AsyncWebhookBatcher.client(后台任务用自己的 clone)、SessionSummaryHook.start_time
- 删除 finish_turn 中算出却未用的 wd_str(白白获取一次读锁)
- TurnStatsHook::on_turn_start 未用参数 ctx → _ctx
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
| 6 天前 |
| chore(core): 清理既有编译告警
合并后 cargo check 暴露的存量告警(均在 atomcode-core,与本次合并无关):
- 移除未使用 import(glob/bash/hook_test/webhook_test/hook_integration_test)
- 去掉多余 mut、未使用变量改 _result(turn/tests、plugin/loader)
- 死代码测试辅助函数加 #[allow(dead_code)](engine、config_loader)
- RAII Guard 的 TempDir 字段加 #[allow(dead_code)](plugin_integration)
- script_runner trait-bound 断言 require_hook::<ScriptHook>(); 改为真正调用,
消除 path_statement 告警
- hook_integration_test::create_test_runner 改 async 并 .await registry.register
(register 是 async,原先 future 被丢弃,MockEchoTool 实际从未注册——顺手修掉)
验证:cargo check --workspace --exclude atomcode-codingplan-crypto --tests 零告警零错误。
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
| 2 天前 |
| chore(core): 清理 hook/agent 模块的未用导入与死字段
消除 atomcode-core 的 9 个编译 warning,纯清理、无行为变更:
- 移除未用 import:HookEngine(background/parallel_edit)、Arc(hook mod/built_in)、AsyncWebhookConfig(webhook)
- 删除从不读取的字段:AsyncWebhookBatcher.client(后台任务用自己的 clone)、SessionSummaryHook.start_time
- 删除 finish_turn 中算出却未用的 wd_str(白白获取一次读锁)
- TurnStatsHook::on_turn_start 未用参数 ctx → _ctx
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
| 6 天前 |