Commit a00ef87
feat: support cmux
Add cmux (https://github.com/manaflow-ai/cmux) to the terminal list.
cmux's CLI talks to the cmux daemon over a Unix socket that rejects
client processes which are not descendants of cmux.app itself, so we
cannot shell out to `cmux <path>` from OpenInTerminal-Lite — the daemon
closes the connection during the handshake ("only processes started
inside cmux can connect"). LaunchServices `open -a cmux.app <path>`
works but cmux's openFile handler creates a brand-new window for every
call, defeating the "in existing terminal" expectation.
Use cmux's AppleScript dictionary instead: `new tab in front window`
plus `input text "cd <path>" to focused terminal of newTab`. This stays
inside the existing window, adds one workspace per click, and bypasses
the socket auth entirely by going through AppleEvents.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 7ad818f commit a00ef87
2 files changed
Lines changed: 26 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
68 | 89 | | |
69 | 90 | | |
70 | 91 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
73 | | - | |
| 74 | + | |
74 | 75 | | |
75 | 76 | | |
76 | 77 | | |
| |||
116 | 117 | | |
117 | 118 | | |
118 | 119 | | |
| 120 | + | |
119 | 121 | | |
120 | 122 | | |
121 | 123 | | |
| |||
0 commit comments