Skip to content

fix: respect CORTEX_HOME in stats command#258

Open
mi6886 wants to merge 1 commit into
CortexLM:mainfrom
mi6886:codex-fix-stats-cortex-home-51554
Open

fix: respect CORTEX_HOME in stats command#258
mi6886 wants to merge 1 commit into
CortexLM:mainfrom
mi6886:codex-fix-stats-cortex-home-51554

Conversation

@mi6886
Copy link
Copy Markdown

@mi6886 mi6886 commented May 12, 2026

Fixes PlatformNetwork/bounty-challenge#51554.

This updates cortex stats to use the shared Cortex home resolver instead of hardcoding ~/.cortex, so sessions are read from the active CORTEX_HOME when it is set.

Changes:

  • Uses cortex_common::get_cortex_home() in the stats command.
  • Preserves the existing ~/.cortex fallback if common directory resolution is unavailable.
  • Adds regression coverage that verifies CORTEX_HOME is respected.

Verification:

  • git diff --check

Note: I could not run the focused Rust tests locally because this environment does not currently have cargo installed in PATH.

Copy link
Copy Markdown

@greptile-apps greptile-apps Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

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.

cortex stats ignores CORTEX_HOME env var — always reads from ~/.cortex

1 participant