Skip to content

feat(tui): show working tips behind composing spinner#1033

Merged
liruifengv merged 14 commits into
mainfrom
add-tips
Jun 23, 2026
Merged

feat(tui): show working tips behind composing spinner#1033
liruifengv merged 14 commits into
mainfrom
add-tips

Conversation

@liruifengv

@liruifengv liruifengv commented Jun 23, 2026

Copy link
Copy Markdown
Collaborator

Related Issue

No prior issue — this is a small UX improvement to surface high-value shortcuts while the TUI is in a loading state.

Problem

While waiting for the model or for compaction, the TUI shows only a spinner/label with no indication of useful shortcuts. The footer already rotates toolbar tips, but users may not notice them during a turn. We want contextual, high-priority tips to appear right after the loading indicator.

What changed

  • Extracted toolbar tip constants into apps/kimi-code/src/tui/constant/tips.ts.
  • Added a WORKING_TIPS subset for tips shown during loading states.
  • Added currentWorkingTip() selector that picks one tip per loading session.
  • Extended MoonLoader to render an optional dim tip suffix on the same line.
  • Wired the tip through ActivityPaneComponent for waiting, tool, and composing modes.
  • Extended CompactionComponent to render a tip suffix while compaction is in progress.
  • Shared a single currentLoadingTip across waiting/tool/composing so the tip stays stable during a loading session.
  • Hid the tip automatically when the loading line does not fit in the terminal width.
  • Added unit tests for the new selector, constant module, activity-pane modes, and compaction rendering.

Checklist

  • I have read the CONTRIBUTING document.
  • I have explained the problem above.
  • I have added tests that prove my feature works.
  • Ran gen-changesets skill.

@changeset-bot

changeset-bot Bot commented Jun 23, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: b2c2068

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 23, 2026

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

commit: b2c2068

- Add pickRandomWorkingTip() for per-step tip selection

- Cache tips by loading kind (moon/composing) so continuous tool bursts keep the same tip

- Update tip inventory with /web, /plugins, /goal, /sessions, etc.

- Add unit tests for random tip selection
@liruifengv liruifengv force-pushed the add-tips branch 4 times, most recently from d91f419 to 1c0097a Compare June 23, 2026 12:06
@liruifengv liruifengv merged commit b1e6b64 into main Jun 23, 2026
8 checks passed
@liruifengv liruifengv deleted the add-tips branch June 23, 2026 12:12
@github-actions github-actions Bot mentioned this pull request Jun 23, 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