Skip to content

refactor(web): unify new-session creation behind the first message#1167

Merged
wbxl2000 merged 1 commit into
mainfrom
refactor/web-remove-new-session-dialog
Jun 28, 2026
Merged

refactor(web): unify new-session creation behind the first message#1167
wbxl2000 merged 1 commit into
mainfrom
refactor/web-remove-new-session-dialog

Conversation

@wbxl2000

Copy link
Copy Markdown
Collaborator

Related Issue

No linked issue; see Problem below.

Problem

On the web UI, the "new session" entries behaved inconsistently. With an active workspace, + New / /new / /clear opened the onboarding composer and only created the session when the first message was sent. With no active workspace, they opened the New Session dialog, which created an empty session on the backend immediately — the only web flow that produced empty sessions.

What changed

  • Removed the New Session dialog and its immediate-create code path.
  • Unified every "new session" entry onto the onboarding composer (draft state). With no active workspace, + New / /new / /clear now clear the active session and focus the composer; the session is created together with the first message through the existing add-workspace flow.
  • Removed the now-dead immediate-create helpers and the dialog-only i18n strings.

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. (Removal-only change; existing suite passes.)
  • 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 Jun 27, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 172fb8d

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

@pkg-pr-new

pkg-pr-new Bot commented Jun 27, 2026

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

commit: 172fb8d

Remove the NewSessionDialog path so every new-session entry in the web UI enters the onboarding composer, creating the session only when the first message is sent. This removes the last web flow that produced an empty session.
@wbxl2000 wbxl2000 force-pushed the refactor/web-remove-new-session-dialog branch from 26b068a to 172fb8d Compare June 28, 2026 05:41
@wbxl2000

Copy link
Copy Markdown
Collaborator Author

@codex

@wbxl2000 wbxl2000 merged commit c63edd5 into main Jun 28, 2026
9 checks passed
@wbxl2000 wbxl2000 deleted the refactor/web-remove-new-session-dialog branch June 28, 2026 09:01
@github-actions github-actions Bot mentioned this pull request Jun 28, 2026
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