Skip to content

fix(tui): scope session list to current worktree directory#29026

Open
rodrigojimenezdencker wants to merge 1 commit into
anomalyco:devfrom
rodrigojimenezdencker:fix/tui-worktree-session-scope
Open

fix(tui): scope session list to current worktree directory#29026
rodrigojimenezdencker wants to merge 1 commit into
anomalyco:devfrom
rodrigojimenezdencker:fix/tui-worktree-session-scope

Conversation

@rodrigojimenezdencker
Copy link
Copy Markdown

Issue for this PR

Closes #8836

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Scopes the TUI session list to the current worktree directory when directory filtering is enabled.

The request now sends both the current absolute directory and relative path, so sessions from another worktree with the same relative path are not mixed in. Realtime session updates use the same filter before updating the local TUI store.

Also adds a visible session-list toggle so users can switch between the current worktree and all project sessions.

How did you verify your code works?

  • bun test test/server/session-list.test.ts
  • bun test test/cli/cmd/tui/sync.test.tsx
  • bun typecheck from packages/opencode
  • pre-push bun turbo typecheck

Screenshots / recordings

Not included; small TUI footer/action text change only.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

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.

session list is showing all sessions not only the ones scopes to the curent dir

1 participant