Skip to content

fix(tui): scope events by project#26936

Merged
jlongster merged 1 commit into
devfrom
fix/tui-project-event-scope
May 12, 2026
Merged

fix(tui): scope events by project#26936
jlongster merged 1 commit into
devfrom
fix/tui-project-event-scope

Conversation

@jlongster
Copy link
Copy Markdown
Contributor

Issue for this PR

N/A

Type of change

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

What does this PR do?

Updates TUI event delivery to accept all events for the current project instead of filtering by the active directory or workspace. The event subscription API now passes event metadata as a second argument so handlers that still need workspace scoping can opt in.

vcs.branch.updated uses that metadata to only update the displayed branch for the active workspace, preventing branch changes from another workspace in the same project from overwriting local VCS state.

How did you verify your code works?

  • bun test test/cli/tui/use-event.test.tsx test/cli/cmd/tui/sync.test.tsx test/cli/cmd/tui/sync-undefined-messages.test.tsx
  • bun run typecheck
  • Push hook ran bun turbo typecheck

Screenshots / recordings

N/A

Checklist

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

@jlongster jlongster merged commit 2b432d9 into dev May 12, 2026
12 checks passed
@jlongster jlongster deleted the fix/tui-project-event-scope branch May 12, 2026 03:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant