Skip to content

feat(router): clarify auto-model UX across UI surfaces - #1221

Draft
mszostok wants to merge 4 commits into
feat/router-default-rebasedfrom
feat/auto-model-ux
Draft

mszostok wants to merge 4 commits into
feat/router-default-rebasedfrom
feat/auto-model-ux

Conversation

@mszostok

@mszostok mszostok commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

  • Rename Auto model label to a descriptive tagline so /model shows
    what it does instead of internal branding
  • Add auto (<model id>) row to prompt summaries once the router
    resolves a target, mirroring the status bar segment
  • Announce the router pick via a status-line notice when the
    decision happens instead of silently recording it
Screenshot 2026-09-18 at 00 05 44 Screenshot 2026-09-18 at 00 05 18

mszostok and others added 2 commits September 17, 2026 23:57
- Rename Auto model label to a descriptive tagline so /model shows
  what it does instead of internal branding
- Add `auto (<model id>)` row to prompt summaries once the router
  resolves a target, mirroring the status bar segment
- Announce the router pick via a status-line notice when the
  decision happens instead of silently recording it

Co-Authored-By: Kimchi <noreply@kimchi.dev>
Pre-push hook was failing on three files; auto-fixed with biome.

Co-Authored-By: Kimchi <noreply@kimchi.dev>
@kimchi-review

kimchi-review Bot commented Sep 17, 2026

Copy link
Copy Markdown

Kimchi Code Review

Property Value
Commit 01da6c3
Author @mszostok
Files changed 10
Review status Completed
Comments 6 (3 info, 3 warning)
Duration 46s

Summary

📊 Review Score: 84/100 (overall code quality — 0 lowest, 100 highest)
⏱️ Estimated effort to review: 2/5 (1 = trivial, 5 = very complex)

🧪 Tests: yes — Good coverage overall: new unit tests in prompt-summary.test.ts cover the resolved, unresolved, and concrete-model cases for the new model row; router/index.test.ts was updated to assert the new notify call; models.test.ts and the e2e /model autocomplete test were updated for the rename. Minor gap: the multi-row (subagent) renderer branch that also appends the model row has no test.

📝 Found 6 issue(s). See inline comments for details.

What to expect

Kimchi will analyze the changes in this pull request and post:

  • A summary of the overall changes
  • Inline comments on specific lines with findings categorized by issue type

The review typically completes within a few minutes. This comment will be updated once the review is ready.

Interact with Kimchi
  • @getkimchi review — re-trigger a full review on the latest commit
  • @getkimchi summary — regenerate the PR summary
  • @getkimchi ignore — skip this PR (no review will be posted)
  • Reply to any inline comment to ask follow-up questions or request clarification
Configuration

Reviews are configured by your organization admin.
Review instructions, excluded directories, and severity thresholds can be adjusted per repository in the Kimchi dashboard.


Powered by Kimchi — AI-powered code review by CAST AI

@kimchi-review kimchi-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

📊 Review Score: 84/100 (overall code quality — 0 lowest, 100 highest)
⏱️ Estimated effort to review: 2/5 (1 = trivial, 5 = very complex)

🧪 Tests: yes — Good coverage overall: new unit tests in prompt-summary.test.ts cover the resolved, unresolved, and concrete-model cases for the new model row; router/index.test.ts was updated to assert the new notify call; models.test.ts and the e2e /model autocomplete test were updated for the rename. Minor gap: the multi-row (subagent) renderer branch that also appends the model row has no test.

📝 Found 6 issue(s). See inline comments for details.

Comment thread src/extensions/router/constants.ts
Comment thread src/extensions/router/index.ts Outdated
Comment thread src/extensions/prompt-summary.ts Outdated
Comment thread src/extensions/prompt-summary.ts Outdated
Comment thread src/extensions/prompt-summary.ts
Comment thread tests/e2e/tui/auto-model.test.ts
mszostok and others added 2 commits September 18, 2026 00:15
Address PR #1221 review feedback:

- Extract formatAutoModelLabel() into router/state.ts so the status
  bar's model segment and the prompt summary's model row share one
  source for the `auto (<model id>)` format instead of open-coding it
- Hoist the duplicated model-row block in the prompt-summary renderer
  so both the single-row and multi-row branches share one implementation
- Add a multi-row (subagent breakdown) renderer test asserting the model
  row is placed after the per-model rows

Co-Authored-By: Kimchi <noreply@kimchi.dev>
The Auto-model pick notice was shown with a transient ctx.ui.notify, so
it vanished on session resume even though the decision itself persisted
in the kimchi_auto_resolution custom entry. Render that entry via
pi.registerEntryRenderer instead: the same status line now appears when
the decision is made and on every replay, reusing data already on disk,
and custom entries stay out of LLM context (unlike sendMessage).

Co-Authored-By: Kimchi <noreply@kimchi.dev>
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