Skip to content

fix(shell): reduce hidden modal input latency#2136

Open
bugkeep wants to merge 1 commit into
MoonshotAI:mainfrom
bugkeep:codex/reduce-hidden-modal-latency
Open

fix(shell): reduce hidden modal input latency#2136
bugkeep wants to merge 1 commit into
MoonshotAI:mainfrom
bugkeep:codex/reduce-hidden-modal-latency

Conversation

@bugkeep
Copy link
Copy Markdown
Contributor

@bugkeep bugkeep commented Apr 30, 2026

Summary

  • skip completion startup when the active prompt delegate hides the input buffer
  • let hidden-input modals use the idle refresh interval unless a fast-refresh provider explicitly requests faster redraws
  • add focused tests for hidden modal completion suppression and refresh interval selection

Tests

  • uv run pytest tests\ui_and_conv\test_prompt_tips.py -q -k "hidden_modal_text_change or visible_prompt_text_change or hidden_modal_uses_idle or hidden_modal_keeps_fast or visible_running_prompt_uses_running"
  • uv run ruff check src\kimi_cli\ui\shell\prompt.py tests\ui_and_conv\test_prompt_tips.py
  • uv run ruff format --check src\kimi_cli\ui\shell\prompt.py tests\ui_and_conv\test_prompt_tips.py
  • uv run pyright src\kimi_cli\ui\shell\prompt.py tests\ui_and_conv\test_prompt_tips.py

Improves #2032


Open in Devin Review

Copy link
Copy Markdown
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 1 additional finding.

Open in Devin Review

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