Skip to content

fix: honor CORTEX_HOME for trusted workspaces#285

Open
Bortlesboat wants to merge 1 commit into
CortexLM:mainfrom
Bortlesboat:fix/trusted-workspaces-cortex-home
Open

fix: honor CORTEX_HOME for trusted workspaces#285
Bortlesboat wants to merge 1 commit into
CortexLM:mainfrom
Bortlesboat:fix/trusted-workspaces-cortex-home

Conversation

@Bortlesboat
Copy link
Copy Markdown

Summary:

  • Resolve the TUI trusted-workspace store through cortex_common::get_cortex_home() so CORTEX_HOME is honored.
  • Use the same resolved path for trusted-workspace reads and writes.
  • Add focused tests for path resolution, read behavior, and write behavior under CORTEX_HOME.

Tests:

  • cargo test -p cortex-tui trusted_workspaces -- --nocapture
  • cargo check -p cortex-tui
  • rustfmt --edition 2024 --check src/cortex-tui/src/runner/app_runner/trusted_workspaces.rs
  • git diff --check

Note: cargo fmt --check --package cortex-tui currently reports an unrelated existing format diff in src/cortex-tui/src/question.rs on origin/main.

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