Repository navigation
Closed
Labels
Description
Overview
After the ADR-053 cleanup in #1595 removed active_database_path, the SettingsService.GetDaemonConfig / SettingsService.UpdateDaemonConfig RPCs and their sole remaining payload field grpc_address are now vestigial. This issue deletes them (greenfield — no callers, no compatibility shims).
Problem
- The two Tauri commands that were the only callers of
UpdateDaemonConfig, and theget_settingscommand that was the only caller ofGetDaemonConfig, were all removed in Remove vestigial active_database_path daemon setting (ADR-053) #1595 (they read/wrote the now-deletedactive_database_path). A tree-wide grep confirms there are zero remaining client callers of either RPC (Tauri app, CLI, or the Pro daemon). - The one field these RPCs still carry,
grpc_address, is written and read-back through the RPC but is never consumed to configure the daemon. The daemon binds a Unix Domain Socket resolved bysocket_path()(NODESPACED_SOCKETenv or default) inpackages/daemon/src/main.rs; it does not readgrpc_addressanywhere. It is a leftover from an earlier TCP-address design.
So the entire daemon-config get/update RPC pair is dead code that only round-trips an unused value.
Scope
Delete:
packages/proto/proto/settings_service.proto: theGetDaemonConfig+UpdateDaemonConfigRPCs and theGetDaemonConfigRequest,UpdateDaemonConfigRequest,DaemonConfigResponsemessages (i.e. thegrpc_addressfield goes with them). Update the service doc comment.packages/daemon/src/services/settings_service.rs: theget_daemon_config/update_daemon_confighandler impls,config_to_response, and thegrpc_addressfield on the on-diskDaemonConfigstruct.
Keep:
DaemonConfigitself and itscapture: CaptureConfigfield — still used by the liveGetCaptureSettings/UpdateCaptureSettingsRPCs.- The UDS socket resolution (
socket_path()/NODESPACED_SOCKET), which is the actual bind mechanism and unrelated to this field.
Notes
- This touches the shared
settings_service.protothatnodespaced-proalso builds from (via its pinned core rev). Because this is a removal of an RPC no client invokes — not the addition of a required field — there is no ADR-043 lock-step concern; the Pro daemon simply stops serving a dead RPC when it next bumps the core pin.SettingsServiceis not part ofBaseServices, so no compile-time completeness contract is affected.
Acceptance Criteria
-
GetDaemonConfig/UpdateDaemonConfigRPCs and their messages gone from the proto;grpc_addressgone fromDaemonConfig. - Capture-settings RPCs unaffected and still pass their tests.
- No dangling references anywhere (core daemon, CLI, Tauri, nodespace-sync).
-
cargo build/clippy/fmtclean;bun run test:allgreen;bun run quality:fixclean.
Activity