-
Notifications
You must be signed in to change notification settings - Fork 5
chore: add mutagen prompting gRPC #118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
f0a7bbd to
fa5aeb2
Compare
5ca8a83 to
c11bc07
Compare
fa5aeb2 to
7485c0f
Compare
c11bc07 to
1cac28d
Compare
7485c0f to
2fa9ac2
Compare
1cac28d to
015cd0c
Compare
2fa9ac2 to
a1e03d6
Compare
015cd0c to
6a40c66
Compare
a1e03d6 to
8a14aa3
Compare
6a40c66 to
257499f
Compare
8a14aa3 to
397007d
Compare
257499f to
12fa59f
Compare
397007d to
4fd43fd
Compare
12fa59f to
af6ba71
Compare
4fd43fd to
916bec7
Compare
af6ba71 to
ae06ba2
Compare
| private let mutagenDaemonSocket: URL | ||
|
|
||
| // Non-nil when the daemon is running | ||
| var client: DaemonClient? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Making this internal instead of private so we can split the daemon class up into multiple extensions, across multiple files.
| // TODO: we'll always accept prompts for now | ||
| try initResp.ensureValid(first: true, allowPrompts: allowPrompts) | ||
|
|
||
| Task.detached(priority: .background) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This block is self-contained, and we're currently doing a lot on the main actor already. I was previously running into issues on startup with the VPN code getting starved by file sync code.
916bec7 to
1950779
Compare
ae06ba2 to
68dae7d
Compare
1950779 to
72ac481
Compare
68dae7d to
c7018ec
Compare
72ac481 to
fb42817
Compare
c7018ec to
820bace
Compare
fb42817 to
f25e09f
Compare
820bace to
93667f7
Compare
93667f7 to
77771a7
Compare

Relates to #63.
The daemon requires this prompting communication channel be open during all requests.