Skip to content

fix: respect CORTEX_HOME in feedback command#260

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

fix: respect CORTEX_HOME in feedback command#260
mi6886 wants to merge 1 commit into
CortexLM:mainfrom
mi6886:codex-fix-feedback-cortex-home-51537

Conversation

@mi6886
Copy link
Copy Markdown

@mi6886 mi6886 commented May 12, 2026

Fixes PlatformNetwork/bounty-challenge#51537.

This updates cortex feedback to use the shared Cortex home resolver before appending the feedback directory, so feedback files are written under the active CORTEX_HOME when configured.

Changes:

  • Uses cortex_common::get_cortex_home() for feedback directory resolution.
  • Preserves the existing ~/.cortex/feedback fallback when 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 or rustfmt 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.

[BUG] [v0.0.7] cortex feedback ignores CORTEX_HOME and always writes to ~/.cortex/feedback/

1 participant