Skip to content

chore: sync web dist from code-app - #4700

Open
wbxl2000 wants to merge 1 commit into
mainfrom
qer/turn-item-events-web-dist
Open

wbxl2000 wants to merge 1 commit into
mainfrom
qer/turn-item-events-web-dist

Conversation

@wbxl2000

@wbxl2000 wbxl2000 commented Nov 5, 2026 •

Copy link
Copy Markdown
Collaborator

Related Issue

No related issue — the web UI dist for #4663, split out of that PR.

Problem

#4663 replaces the transcript protocol with per-agent turn / item events. The bundled web UI (apps/kimi-code/dist-web) has to be rebuilt from the matching client change, MoonshotAI/kimi-code-app#1130, or kimi web keeps serving a UI that speaks the removed protocol.

What changed

  • Rebuilt apps/web from code-app main at 5ebfc8f6e (the merge of MoonshotAI/kimi-code-app#1130), with the kimi-code/ submodule at this PR's base 1dd557864 (the merge of feat(kap-server): stream agent conversations as turns and items #4663 on main), and synced the output into apps/kimi-code/dist-web via scripts/sync-web-to-kimi-code.mjs. No source changes in this repo — dist assets and the web changeset only.
  • Added one summary changeset (patch) for the web UI change.
  • feat(kap-server): stream agent conversations as turns and items #4663 is merged; this PR now targets main and is a single commit on top of it. Until it is merged, kimi-code main serves the previous web UI against the new server.
  • When MoonshotAI/kimi-code-app#1130 changes again, this PR is rebuilt from its new head.

Checklist

  • I have read the CONTRIBUTING document.
  • I have linked a related issue, or explained the problem above.
  • I have added tests that prove my feature works. (N/A — generated dist assets and a changeset only)
  • Ran gen-changesets skill, or this PR needs no changeset.
  • Ran gen-docs skill, or this PR needs no doc update. (No doc update needed)

@changeset-bot

changeset-bot Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: efb600b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@moonshot-ai/kimi-code Patch

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

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-06T06:26:08.667895Z efb600b New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@pkg-pr-new

pkg-pr-new Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
pnpm dlx https://pkg.pr.new/@moonshot-ai/kimi-code@efb600b
npx https://pkg.pr.new/@moonshot-ai/kimi-code@efb600b

commit: efb600b

@chatgpt-codex-connector

Copy link
Copy Markdown

💡 Codex Review

web: Improved interactions and fixed known bugs.

P2 Badge Describe the actual web behavior in the changeset

When this changeset is used to generate release notes, “Improved interactions and fixed known bugs” does not tell users that the bundled web client was migrated to the new per-agent turn/item transcript protocol, which is the material behavior this commit ships. Replace the generic text with a short, concrete user-facing description of that change so the published changelog accurately states what changed.

AGENTS.md reference: AGENTS.md:L88-L90


https://github.com/MoonshotAI/kimi-code/blob/2848fa883056836f04935225f7feb1bb3baff71e/apps/kimi-code/dist-web/assets/index-DQJHStrR.js#L175
P1 Badge Preserve hook-origin transcript text

For sessions containing a hook-result opener, such as output from a SessionStart hook, a.kind === "hook" has no switch case and falls through to the fallback that returns content: []. The server protocol explicitly emits hook-origin user messages with their text, and the previous bundle mapped hook results instead of erasing them, so configured-hook users now silently lose that output from the web transcript; add a hook case that preserves i and the hook metadata.

AGENTS.md reference: AGENTS.md:L125-L127


https://github.com/MoonshotAI/kimi-code/blob/2848fa883056836f04935225f7feb1bb3baff71e/apps/kimi-code/dist-web/assets/index-DQJHStrR.js#L175
P1 Badge Preserve audio attachments in transcript messages

When a user message contains an audio attachment, ATe only creates media entries for image and video; audio with a file_id is downgraded to a generic file, while URL-only audio returns undefined and disappears entirely. The conversation protocol permits kind: "audio", and the previous bundle handled audio media explicitly, so web users reopening such sessions lose the audio presentation or the attachment itself; handle audio alongside the other media kinds.

AGENTS.md reference: AGENTS.md:L125-L127

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Base automatically changed from qer/turn-item-events to main November 6, 2026 06:12
@wbxl2000
wbxl2000 force-pushed the qer/turn-item-events-web-dist branch from 7da8a0a to efb600b Compare November 6, 2026 06:22

This branch has not been deployed

No deployments
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