fix(cli): capture Claude and Codex log roots in scheduled syncs - #71
Open
maxmoneycash wants to merge 1 commit into
Open
fix(cli): capture Claude and Codex log roots in scheduled syncs#71maxmoneycash wants to merge 1 commit into
maxmoneycash wants to merge 1 commit into
Conversation
Foreground sync already honors CLAUDE_CONFIG_DIR and CODEX_HOME. The service wrapper only forwarded HERMES_HOME, so installed or repaired scheduled runs dropped custom Claude and Codex roots.
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
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.
Scheduled wrappers already capture
HERMES_HOME, but notCLAUDE_CONFIG_DIRorCODEX_HOME. Foregroundtokenmaxxing synchonors those roots; installed or repaired scheduled runs fall back to the default homes. I maintain turbotokens. This PR does not change the ccusage backend.capturedServiceEnvnow keeps nonempty Claude and Codex roots with the same literal-value rule as Hermes, including spaces and commas. Empty or unset values stay omitted. After changing a custom root, reruntokenmaxxing service installortokenmaxxing service repair.Local checks on macOS ARM64 with native bun 1.3.11 / Node 24.5.0:
bun run --cwd apps/cli test— 246 passed, 0 failed across 19 files, including a generated POSIX wrapper that exported/…/Claude Logs, extraand/…/Codex Logsto a fake runnerbun run --cwd apps/cli typecheckbun run fmtbun run lint— 0 errors; one existing warning inapps/api/src/leaderboard/service.test.tsThis repo's GitHub Actions are deploy/release only, so the proof is the local CLI suite rather than a PR check.
Open PR #70 adds other source homes and still omits these two keys. This patch stays on current main so it can merge independently.