fix(tui): handle events across workspaces (#30281)

This commit is contained in:
James Long
2026-06-01 15:47:37 -04:00
committed by GitHub
parent 5f2b4eab28
commit fa23fb5d38
4 changed files with 12 additions and 21 deletions

View File

@@ -113,19 +113,6 @@ describe("useEvent", () => {
}
})
test("ignores events for other projects", async () => {
const { app, emit, seen } = await mount()
try {
emit(event(vcs("other"), { directory, project: "proj_other" }))
await Bun.sleep(30)
expect(seen).toHaveLength(0)
} finally {
app.renderer.destroy()
}
})
test("delivers current project events regardless of active workspace", async () => {
const { app, emit, project, seen } = await mount()