Skip to content
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

chore: add mutagen prompting gRPC #118

Merged
merged 1 commit into from
Mar 28, 2025
Merged

Conversation

ethanndickson
Copy link
Member

@ethanndickson ethanndickson commented Mar 21, 2025

Relates to #63.

The daemon requires this prompting communication channel be open during all requests.

@ethanndickson ethanndickson force-pushed the ethan/convert-mutagen-session branch from f0a7bbd to fa5aeb2 Compare March 24, 2025 07:06
@ethanndickson ethanndickson force-pushed the ethan/mutagen-prompting branch from 5ca8a83 to c11bc07 Compare March 24, 2025 07:06
@ethanndickson ethanndickson self-assigned this Mar 24, 2025
@ethanndickson ethanndickson force-pushed the ethan/convert-mutagen-session branch from fa5aeb2 to 7485c0f Compare March 24, 2025 07:09
@ethanndickson ethanndickson force-pushed the ethan/mutagen-prompting branch from c11bc07 to 1cac28d Compare March 24, 2025 07:09
@ethanndickson ethanndickson force-pushed the ethan/convert-mutagen-session branch from 7485c0f to 2fa9ac2 Compare March 24, 2025 09:47
@ethanndickson ethanndickson force-pushed the ethan/mutagen-prompting branch from 1cac28d to 015cd0c Compare March 24, 2025 09:47
@ethanndickson ethanndickson force-pushed the ethan/convert-mutagen-session branch from 2fa9ac2 to a1e03d6 Compare March 24, 2025 09:50
@ethanndickson ethanndickson force-pushed the ethan/mutagen-prompting branch from 015cd0c to 6a40c66 Compare March 24, 2025 09:50
@ethanndickson ethanndickson force-pushed the ethan/convert-mutagen-session branch from a1e03d6 to 8a14aa3 Compare March 24, 2025 09:51
@ethanndickson ethanndickson force-pushed the ethan/mutagen-prompting branch from 6a40c66 to 257499f Compare March 24, 2025 09:51
@ethanndickson ethanndickson force-pushed the ethan/convert-mutagen-session branch from 8a14aa3 to 397007d Compare March 24, 2025 10:51
@ethanndickson ethanndickson force-pushed the ethan/mutagen-prompting branch from 257499f to 12fa59f Compare March 24, 2025 10:51
@ethanndickson ethanndickson force-pushed the ethan/convert-mutagen-session branch from 397007d to 4fd43fd Compare March 24, 2025 12:32
@ethanndickson ethanndickson force-pushed the ethan/mutagen-prompting branch from 12fa59f to af6ba71 Compare March 24, 2025 12:32
@ethanndickson ethanndickson force-pushed the ethan/convert-mutagen-session branch from 4fd43fd to 916bec7 Compare March 24, 2025 13:12
@ethanndickson ethanndickson force-pushed the ethan/mutagen-prompting branch from af6ba71 to ae06ba2 Compare March 24, 2025 13:12
@@ -42,9 +42,9 @@ public class MutagenDaemon: FileSyncDaemon {
private let mutagenDaemonSocket: URL

// Non-nil when the daemon is running
var client: DaemonClient?
Copy link
Member Author

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) {
Copy link
Member Author

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.

@ethanndickson ethanndickson marked this pull request as ready for review March 24, 2025 13:19
@ethanndickson ethanndickson force-pushed the ethan/convert-mutagen-session branch from 916bec7 to 1950779 Compare March 25, 2025 01:52
@ethanndickson ethanndickson force-pushed the ethan/mutagen-prompting branch from ae06ba2 to 68dae7d Compare March 25, 2025 01:52
@ethanndickson ethanndickson force-pushed the ethan/convert-mutagen-session branch from 1950779 to 72ac481 Compare March 25, 2025 02:10
@ethanndickson ethanndickson force-pushed the ethan/mutagen-prompting branch from 68dae7d to c7018ec Compare March 25, 2025 02:10
Copy link
Member Author

ethanndickson commented Mar 28, 2025

Merge activity

  • Mar 27, 10:47 PM EDT: A user started a stack merge that includes this pull request via Graphite.
  • Mar 27, 10:51 PM EDT: Graphite rebased this pull request as part of a merge.
  • Mar 27, 10:53 PM EDT: A user merged this pull request with Graphite.

@ethanndickson ethanndickson changed the base branch from ethan/convert-mutagen-session to graphite-base/118 March 28, 2025 02:48
@ethanndickson ethanndickson changed the base branch from graphite-base/118 to main March 28, 2025 02:50
@ethanndickson ethanndickson force-pushed the ethan/mutagen-prompting branch from 93667f7 to 77771a7 Compare March 28, 2025 02:51
@ethanndickson ethanndickson merged commit 2669a1c into main Mar 28, 2025
4 checks passed
@ethanndickson ethanndickson deleted the ethan/mutagen-prompting branch March 28, 2025 02:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants