Repository navigation
refactor(kap-server): drop the turn_id alias from the file-history queries - #4826
Merged
Merged
Conversation
…eries The file-history queries took turn_id as a deprecated alias of turn_number while clients moved over. The desktop and bundled web clients now send turn_number, so the alias goes and turn_id alone fails validation like any missing turn number.
🦋 Changeset detectedLatest commit: ddce3f4 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
commit: |
sailist
approved these changes
Nov 11, 2026
liruifengv
approved these changes
Nov 11, 2026
This was referenced Nov 11, 2026
Merged
7723qqq
pushed a commit
to 7723qqq/kimi-code
that referenced
this pull request
Nov 15, 2026
…th 2.6.0 MoonshotAI#4772: end tool calls cut short by a stop as interrupted, and keep a tool error failed when the step itself failed. MoonshotAI#4826: drop the deprecated turn_id alias from the file-history queries; a turn_id-only query now fails validation with 40001. MoonshotAI#4730: a streamed item no longer ends early from the feed clock. The source shape is in place; the remaining live-feed gap is recorded in the ledger row.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requirement or Bug
#4788 把 file-history 两个查询的参数改名为
turn_number,旧名字turn_id暂时作为别名保留,等客户端切换完。现在 desktop(MoonshotAI/kimi-code-app#1250)和 CLI 自带的 web 界面(#4816 同步进来的产物)都已改传turn_number,本 PR 删掉这个别名。Bug Reproduction Steps
N/A
Root Cause
N/A
Code Changes
req.query.turn_number,不用改。turn_id现在和其他未知查询参数一样被忽略,只带它的请求因为缺turn_number返回 40001。server-api.md(中英)删掉「仍接受已弃用的别名turn_id」。Behavior Changes and Affected Users
changes/content查询只带turn_idturn_number接受turn_number)turn_id的外部 API 调用方。desktop(kimi-code-app#1250)和 CLI 自带的 web 界面(#4816)都已改传turn_number;仓库里没有其他调用方turn_number。维护者已确认直接移除(这组 API 在文档中标注为实验性)turn_number和turn_idturn_numberturn_number,turn_id被忽略契约:OpenAPI 里这两个接口的查询参数去掉
turn_id;apiSurface快照只记路径,没有变化。changeset 写明了失去的行为。测试(
test/fileHistory.test.ts):turn_id时返回 40001,在改动前的代码上会失败;Checklist
/approve).(没有关联 issue,背景见上)gen-changesetsskill, or this PR needs no changeset.gen-docsskill, or this PR needs no doc update.