Skip to content

fix: open the Ask composer immediately and reuse one pane - #32

Merged
wsams merged 1 commit into
mainfrom
cursor/instant-composer-pane-60a7
Aug 28, 2026
Merged

wsams merged 1 commit into
mainfrom
cursor/instant-composer-pane-60a7

Conversation

@wsams

@wsams wsams commented Aug 28, 2026

Copy link
Copy Markdown
Owner

CTRL+I was waiting on a full cwd file listing (fd / git ls-files plus a test -d per path) before the composer split appeared. That made the prompt feel stuck, and mashing CTRL+I during the wait spawned extra input panes.

Changes

  • Split the Ask composer immediately. @/# candidates load on a background thread in composer.py (shallow cwd names first, then the full tree).
  • Reuse one composer per tab: in-flight open lock, process fingerprint (composer.py / WEZAI_COMPOSER_PANE), focus the existing pane, close extras. User vars from a leftover pane do not cancel the live one.
  • Resolve python3 via a cheap path probe (cached) so CTRL+I does not wait on a login-shell PATH scan in the common case.

Spec / docs

SPECS 搂4.2.1 records the reuse + instant-open rules. GUIDE/README note that indexing continues in the background and a second CTRL+I focuses the same pane.

Tests

  • WEZAI_COMPOSER_TEST=1 python3 plugin/composer.py --self-test (includes cwd collect + background load)
  • Existing Lua/Python smoke tests
  • luac5.4 -p plugin/composer.lua
Open in WebOpen in Cursor

CTRL+I was blocking on a full cwd file listing (fd/git plus per-path
test -d) before the input split appeared, so the prompt felt stuck and
repeat keypresses spawned extra composer panes.

Split the composer first, index @/# candidates on a background thread
in composer.py, and focus or close leftover composer panes instead of
opening a second one.

Co-authored-by: Weldon Sams <wsams@users.noreply.github.com>
@wsams
wsams marked this pull request as ready for review August 28, 2026 05:27
@wsams
wsams merged commit e1dcedf into main Aug 28, 2026
1 check passed
@wsams
wsams deleted the cursor/instant-composer-pane-60a7 branch August 28, 2026 05:48
github-actions Bot added a commit that referenced this pull request Aug 28, 2026
## [1.17.1](v1.17.0...v1.17.1) (2026-08-28)

### Bug Fixes

* open the Ask composer immediately and reuse one pane ([#32](#32)) ([e1dcedf](e1dcedf))
@github-actions

Copy link
Copy Markdown
Contributor

馃帀 This PR is included in version 1.17.1 馃帀

The release is available on GitHub release

Your semantic-release bot 馃摝馃殌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants