Skip to content

fix(plan): respect KIMI_SHARE_DIR for plan files#2129

Open
XYenon wants to merge 1 commit into
MoonshotAI:mainfrom
XYenon:fix/plan-share-dir
Open

fix(plan): respect KIMI_SHARE_DIR for plan files#2129
XYenon wants to merge 1 commit into
MoonshotAI:mainfrom
XYenon:fix/plan-share-dir

Conversation

@XYenon
Copy link
Copy Markdown

@XYenon XYenon commented Apr 30, 2026

Summary

  • resolve plan files under the configured share directory instead of hardcoding ~/.kimi/plans
  • remove the PLANS_DIR test hook and update plan-mode tests to isolate get_share_dir() directly
  • update data location docs to describe KIMI_SHARE_DIR/plans

Testing

  • uv run pytest tests/core/test_plan_mode.py tests/core/test_plan_slash.py tests/core/test_plan_flag.py tests/core/test_plan_mode_reminder.py
  • uv run ruff check src/kimi_cli/tools/plan/heroes.py tests/core/test_plan_mode.py tests/core/test_plan_slash.py tests/core/test_plan_flag.py

Open in Devin Review

Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 2 additional findings.

Open in Devin Review

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