Skip to content

Fix worktree sidebar scroll and sleep persistence - #2175

Merged
Jinwoo-H merged 1 commit into
mainfrom
Jinwoo-H/active-issue
May 17, 2026
Merged

Jinwoo-H merged 1 commit into
mainfrom
Jinwoo-H/active-issue

Conversation

@Jinwoo-H

@Jinwoo-H Jinwoo-H commented May 17, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • suppress worktree sidebar virtualizer scroll corrections during direct wheel/touch scrolling so measured row updates do not rubber-band the list
  • make workspace-session shutdown liveness use ptyIdsByTabId instead of preserved tab.ptyId wake hints, while keeping the disconnected SSH relay fallback
  • add regression coverage for scroll adjustment, slept local/SSH worktrees, and session writes when live PTY bindings change

Validation

  • pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/components/sidebar/worktree-list-scroll-adjustment.test.ts src/renderer/src/store/slices/store-session-cascades.test.ts src/renderer/src/lib/workspace-session.test.ts src/renderer/src/lib/workspace-session-liveness.test.ts src/renderer/src/lib/workspace-session-relevant-fields.test.ts src/renderer/src/lib/workspace-session-browser-history.test.ts src/renderer/src/lib/session-write-subscriber.test.ts
  • pnpm exec oxlint src/renderer/src/components/sidebar/WorktreeList.tsx src/renderer/src/hooks/useVirtualizedScrollAnchor.ts src/renderer/src/lib/workspace-session.ts src/renderer/src/lib/workspace-session.test.ts src/renderer/src/lib/workspace-session-liveness.test.ts src/renderer/src/lib/workspace-session-relevant-fields.test.ts src/renderer/src/lib/workspace-session-browser-history.test.ts src/renderer/src/lib/session-write-subscriber.test.ts src/renderer/src/components/sidebar/worktree-list-scroll-adjustment.test.ts
  • pnpm run typecheck:tsc:web
  • Electron/CDP real wheel repro: before fix, 58 backward scroll jumps; after fix, 0 reversals over 80 wheel events
  • Full isolated-profile sleep/restart repro:
    • copied dev orca-data.json into a temporary ORCA_DEV_USER_DATA_PATH
    • slept an active local worktree through live renderer/store calls
    • verified preserved tab ptyIds but empty live ptyIdsByTabId
    • verified cloned orca-data.json no longer included that worktree in workspaceSession.activeWorktreeIdsOnShutdown
    • restarted the isolated app against the same cloned profile
    • verified the slept worktree was not in pendingReconnectWorktreeIds, had no live PTYs, did not pass the Active filter, and had no mounted row under Active-only filtering

Made with Orca 🐋

@Jinwoo-H
Jinwoo-H merged commit baf99b5 into main May 17, 2026
2 checks passed
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 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