Skip to content

fix: honor cortex config dir for whoami#264

Open
Bortlesboat wants to merge 1 commit into
CortexLM:mainfrom
Bortlesboat:fix/whoami-cortex-config-dir
Open

fix: honor cortex config dir for whoami#264
Bortlesboat wants to merge 1 commit into
CortexLM:mainfrom
Bortlesboat:fix/whoami-cortex-config-dir

Conversation

@Bortlesboat
Copy link
Copy Markdown

Summary

  • Route cortex whoami stored-auth lookup through Cortex's existing home resolver so CORTEX_CONFIG_DIR / CORTEX_HOME are honored instead of always reading from ~/.cortex.
  • Add regression coverage for the whoami Cortex home resolver under a custom CORTEX_CONFIG_DIR.
  • Fix the agent command test import so the focused cortex-cli lib test target compiles.

Related to PlatformNetwork/bounty-challenge#51576.

Verification

  • cargo test -p cortex-cli test_whoami_cortex_home_uses_cortex_config_dir -- --nocapture
  • cargo check -p cortex-cli
  • cargo fmt --check --package cortex-cli
  • git diff --check

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.

1 participant