-
Notifications
You must be signed in to change notification settings - Fork 694
[fix] kimi_cli failed to find CHANGELOG.md #1277
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -103,6 +103,17 @@ def format_release_notes(changelog: dict[str, ReleaseEntry], include_lib_changes | |
| return "\n".join(parts).strip() | ||
|
|
||
|
|
||
| CHANGELOG = parse_changelog( | ||
| (Path(__file__).parent.parent / "CHANGELOG.md").read_text(encoding="utf-8") | ||
| ) | ||
| _cached_changelog: dict[str, ReleaseEntry] | None = None | ||
|
|
||
|
|
||
| def get_changelog() -> dict[str, ReleaseEntry]: | ||
| """Lazily load and parse the changelog on first access.""" | ||
| global _cached_changelog | ||
| if _cached_changelog is None: | ||
| path = Path(__file__).parent.parent / "CHANGELOG.md" | ||
| try: | ||
| _cached_changelog = parse_changelog( | ||
| path.read_text(encoding="utf-8")) | ||
| except FileNotFoundError: | ||
| _cached_changelog = {} | ||
| return _cached_changelog | ||
|
Comment on lines
+109
to
+119
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🟡 v1.7.0 changelog entry replaced with duplicate of v1.6 entry
In
CHANGELOG.md, the v1.7.0 entryWeb: Fix WebSocket errors during history replay by checking connection state before sendingwas replaced withWeb: Fix WebSocket disconnect when creating new sessions. However, that exact same text already exists in the v1.6 section at line 133. This means v1.7.0 now has a duplicate of the v1.6 fix note, and the original v1.7.0 fix description (which described a different bug fix — checking connection state before sending during history replay) is lost. The same duplication occurs indocs/en/release-notes/changelog.mdat line 118 vs line 127.Was this helpful? React with 👍 or 👎 to provide feedback.