Skip to content

Commit 320f379

Browse files
committed
handle all events
1 parent 4aaf9d8 commit 320f379

1 file changed

Lines changed: 1 addition & 16 deletions

File tree

  • packages/opencode/src/cli/cmd/tui/context

packages/opencode/src/cli/cmd/tui/context/event.ts

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,7 @@ export function useEvent() {
1212
return
1313
}
1414

15-
// Special hack for truly global events
16-
if (event.directory === "global") {
17-
handler(event.payload)
18-
}
19-
20-
if (project.workspace.current()) {
21-
if (event.workspace === project.workspace.current()) {
22-
handler(event.payload)
23-
}
24-
25-
return
26-
}
27-
28-
if (event.directory === project.instance.directory()) {
29-
handler(event.payload)
30-
}
15+
handler(event.payload)
3116
})
3217
}
3318

0 commit comments

Comments
 (0)