fix: 日志路径迁移到 StateDirResolver (#21)#63
Merged
raysonmeng merged 2 commits intomasterfrom Apr 14, 2026
Merged
Conversation
…o StateDirResolver (#21) claude-adapter.ts 和 codex-adapter.ts 移除硬编码 /tmp/agentbridge.log, 通过构造函数注入 logFile 参数,默认值从 StateDirResolver 获取。 bridge.ts 和 daemon.ts 显式传入 stateDir.logFile。
2 tasks
…log write
Codex review 反馈:fresh machine 首次启动时 state dir 不存在,
早期日志会被 catch {} 吞掉。在 bridge.ts 顶层加 stateDir.ensure()。
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
claude-adapter.ts和codex-adapter.ts移除硬编码/tmp/agentbridge.loglogFile参数,默认从StateDirResolver获取bridge.ts和daemon.ts显式传入stateDir.logFileSupersedes PR #22(base branch 过时,冲突太多)
Closes #21
Test plan