Skip to content

fix(web): search files in initial workspace drafts - #2308

Open
xianjianlf2 wants to merge 1 commit into
MoonshotAI:mainfrom
xianjianlf2:markxian/fix-web-initial-file-mention
Open

fix(web): search files in initial workspace drafts#2308
xianjianlf2 wants to merge 1 commit into
MoonshotAI:mainfrom
xianjianlf2:markxian/fix-web-initial-file-mention

Conversation

@xianjianlf2

Copy link
Copy Markdown

Related Issue

Resolve #2189

Problem

See linked issue. In the empty workspace draft state, file mention search had no active session and returned no matches before the first message created a session.

What changed

  • Added a workspace-scoped file search route that reuses the same filename search behavior as session filesystem search.
  • Updated kimi-web file mention search to use session search when a session exists and workspace search while drafting the first prompt.
  • Added route coverage for searching workspace files before session creation and for unknown workspace errors.

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.
  • Ran gen-changesets skill, or this PR needs no changeset.
  • Ran gen-docs skill, or this PR needs no doc update.

@changeset-bot

changeset-bot Bot commented Jul 28, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: d31a181

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

@xianjianlf2
xianjianlf2 marked this pull request as ready for review July 28, 2026 06:57
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.

kimi-web: @ file mention shows no matches in the initial prompt of a new conversation

1 participant