Skip to content

Fix worktree status for runtime terminals - #4563

Draft
nwparker wants to merge 1 commit into
mainfrom
nwparker/sleep-state-bug
Draft

nwparker wants to merge 1 commit into
mainfrom
nwparker/sleep-state-bug

Conversation

@nwparker

@nwparker nwparker commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add a renderer runtime-terminal activity index refreshed from runtime terminal.list through the existing runtime target abstraction.
  • Feed runtime-only terminal liveness into worktree status, activity helpers, Cmd+J, section status resolution, and smart-sort cold/warm gating while preserving explicit slept-worktree behavior.
  • Add focused tests and a design note for runtime terminal activity.

Validation

  • pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/store/slices/runtime-terminal-activity.test.ts src/renderer/src/lib/worktree-status.test.ts src/renderer/src/lib/worktree-activity-state.test.ts src/renderer/src/components/sidebar/use-worktree-activity-status.test.tsx src/renderer/src/components/sidebar/worktree-section-activity.test.ts src/renderer/src/components/sidebar/smart-sort.test.ts
  • pnpm run typecheck
  • pnpm run lint (passes; existing ChecksPanel hook dependency warnings still print)
  • Electron dev validation via CDP on this worktree: confirmed terminal.list reported connected fallback PTYs, store runtimeTerminalActivityByWorktreeId populated with no error, and Search displayed the renderer-tabless nwparker/perf-agent-first-output workspace as Active. Screenshot captured locally at validation-screenshots/runtime-terminal-activity-search.png and not committed.

@nwparker
nwparker force-pushed the nwparker/sleep-state-bug branch from 4051415 to b665111 Compare June 3, 2026 19:10
@OrcaWin
OrcaWin marked this pull request as draft October 27, 2026 09:55
@OrcaWin

OrcaWin commented Oct 27, 2026

Copy link
Copy Markdown
Collaborator

Moving this PR to draft because it has been untouched for more than 80 days (latest recorded PR activity or commit timestamp: 2026-06-03T19:10:31Z; checked on 2026-10-27). This keeps the review queue focused on active work while preserving the proposal. Please mark it ready for review when work resumes.

This branch has not been deployed

No deployments
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.

2 participants