Skip to content

fix: update upgrade command in toast notifications for consistency#1418

Merged
RealKai42 merged 2 commits intomainfrom
kaiyi/fix-sessions-bug
Mar 12, 2026
Merged

fix: update upgrade command in toast notifications for consistency#1418
RealKai42 merged 2 commits intomainfrom
kaiyi/fix-sessions-bug

Conversation

@RealKai42
Copy link
Collaborator

@RealKai42 RealKai42 commented Mar 12, 2026

Description

Checklist

  • I have read the CONTRIBUTING document.
  • I have linked the related issue, if any.
  • I have added tests that prove my fix is effective or that my feature works.
  • I have run make gen-changelog to update the changelog.
  • I have run make gen-docs to update the user documentation.

Open with Devin

Copilot AI review requested due to automatic review settings March 12, 2026 08:30
Copy link
Contributor

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 2 additional findings.

Open in Devin Review

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR centralizes the “upgrade” command text used in shell UI notifications so toast and welcome messages stay consistent and can be adjusted in one place.

Changes:

  • Introduces a shared UPGRADE_COMMAND constant for upgrade messaging.
  • Updates auto-update toast notification to reference the shared constant.
  • Updates welcome banner “new version available” message to reference the shared constant.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/kimi_cli/ui/shell/update.py Adds UPGRADE_COMMAND constant to centralize upgrade instruction text.
src/kimi_cli/ui/shell/__init__.py Uses UPGRADE_COMMAND in toast + welcome info to keep messaging consistent.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.


from kimi_cli.soul import LLMNotSet, LLMNotSupported, MaxStepsReached, RunCancelled, Soul, run_soul
from kimi_cli.soul.kimisoul import KimiSoul
from kimi_cli.ui.shell import update as _update_mod
Copy link

Copilot AI Mar 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

from kimi_cli.ui.shell import update as _update_mod imports the kimi_cli.ui.shell package while its __init__.py is still executing, which is harder to reason about and can create subtle import-order issues. Prefer importing the submodule directly (e.g., import kimi_cli.ui.shell.update as _update_mod or a relative from . import update as _update_mod).

Suggested change
from kimi_cli.ui.shell import update as _update_mod
from . import update as _update_mod

Copilot uses AI. Check for mistakes.
@RealKai42 RealKai42 merged commit 2e59ae5 into main Mar 12, 2026
13 checks passed
@RealKai42 RealKai42 deleted the kaiyi/fix-sessions-bug branch March 12, 2026 08:39
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.

2 participants