Skip to content

perf: show cached worktrees when returning to menu - #318

Merged
kbwo merged 1 commit into
mainfrom
perf/menu-2026-07-10
Jul 11, 2026
Merged

perf: show cached worktrees when returning to menu#318
kbwo merged 1 commit into
mainfrom
perf/menu-2026-07-10

Conversation

@kbwo

@kbwo kbwo commented Jul 10, 2026

Copy link
Copy Markdown
Owner

Summary

  • render the previous worktree snapshot immediately when returning to the menu
  • refresh worktrees and the default branch concurrently in the background
  • update cached entries immediately after worktree creation and deletion

Test plan

  • bun run typecheck
  • bun run test -- src/components/Menu.test.tsx src/components/App.test.tsx
  • bun run lint
  • bun run test (fails in pre-existing terminal Unicode capability tests, including duplicated dist tests)

Made with Cursor

Preserve the previous menu snapshot while Git refreshes in the background so completed worktree actions return immediately.

Co-authored-by: Cursor <cursoragent@cursor.com>
@kbwo
kbwo marked this pull request as ready for review July 11, 2026 01:32
@kbwo
kbwo merged commit 939014c into main Jul 11, 2026
1 check passed
kbwo added a commit that referenced this pull request Aug 9, 2026
…#321)

Menu started its session list empty and only filled it once the background
Git refresh resolved. Since #318 renders the cached snapshot right away, that
left every row session-less for the duration of the refresh, so the Space
session-actions shortcut was a no-op just after returning to the menu.

Seed the state from the in-memory session list, which is synchronous.

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
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