Skip to content

Remove vestigial SettingsService daemon-config RPCs (GetDaemonConfig/UpdateDaemonConfig/grpc_address) #1596

Closed

Description

@mstomar125

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 the get_settings command that was the only caller of GetDaemonConfig, were all removed in Remove vestigial active_database_path daemon setting (ADR-053) #1595 (they read/wrote the now-deleted active_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 by socket_path() (NODESPACED_SOCKET env or default) in packages/daemon/src/main.rs; it does not read grpc_address anywhere. 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: the GetDaemonConfig + UpdateDaemonConfig RPCs and the GetDaemonConfigRequest, UpdateDaemonConfigRequest, DaemonConfigResponse messages (i.e. the grpc_address field goes with them). Update the service doc comment.
  • packages/daemon/src/services/settings_service.rs: the get_daemon_config / update_daemon_config handler impls, config_to_response, and the grpc_address field on the on-disk DaemonConfig struct.

Keep:

  • DaemonConfig itself and its capture: CaptureConfig field — still used by the live GetCaptureSettings / UpdateCaptureSettings RPCs.
  • 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.proto that nodespaced-pro also 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. SettingsService is not part of BaseServices, so no compile-time completeness contract is affected.

Acceptance Criteria

  • GetDaemonConfig/UpdateDaemonConfig RPCs and their messages gone from the proto; grpc_address gone from DaemonConfig.
  • Capture-settings RPCs unaffected and still pass their tests.
  • No dangling references anywhere (core daemon, CLI, Tauri, nodespace-sync).
  • cargo build/clippy/fmt clean; bun run test:all green; bun run quality:fix clean.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions