Skip to content

fix(cli): capture Claude and Codex log roots in scheduled syncs - #71

Open
maxmoneycash wants to merge 1 commit into
851-labs:mainfrom
maxmoneycash:fix/capture-claude-codex-home
Open

fix(cli): capture Claude and Codex log roots in scheduled syncs#71
maxmoneycash wants to merge 1 commit into
851-labs:mainfrom
maxmoneycash:fix/capture-claude-codex-home

Conversation

@maxmoneycash

@maxmoneycash maxmoneycash commented Sep 8, 2026

Copy link
Copy Markdown

Scheduled wrappers already capture HERMES_HOME, but not CLAUDE_CONFIG_DIR or CODEX_HOME. Foreground tokenmaxxing sync honors those roots; installed or repaired scheduled runs fall back to the default homes. I maintain turbotokens. This PR does not change the ccusage backend.

capturedServiceEnv now 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, rerun tokenmaxxing service install or tokenmaxxing service repair.

Local checks on macOS ARM64 with native bun 1.3.11 / Node 24.5.0:

  • bun run --cwd apps/cli test246 passed, 0 failed across 19 files, including a generated POSIX wrapper that exported /…/Claude Logs, extra and /…/Codex Logs to a fake runner
  • bun run --cwd apps/cli typecheck
  • bun run fmt
  • bun run lint — 0 errors; one existing warning in apps/api/src/leaderboard/service.test.ts

This 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.

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.
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant