Repository navigation
Product check compares supported extension ids, not the daemon's executable name - #3692
Merged
Merged
Conversation
Collaborator
Author
Code Review SummaryVerdict: APPROVE (initial review; no prior reviews or comments). The change does what #3689 asks, deletes the old path with no carry-over, and core names no extension id in production code. Static review only; I did not run the test suite. Acceptance criteria
CLAUDE.md rules
FindingsCritical IssuesNone. Suggested Improvements
Nitpicks
|
malibio
commented
Oct 7, 2026
malibio
left a comment
Collaborator
Author
There was a problem hiding this comment.
Code Review Summary
Verdict: APPROVE (initial review; no prior reviews or comments). The change does what #3689 asks, deletes the old path with no carry-over, and core names no extension id in production code. Static review only; I did not run the test suite.
Acceptance criteria
GetDaemonVersioncarries the ids and the executable-name field is gone: met.supported_extensionsisrepeated string, set fromshared.extensions.supported_extensions()at both service construction sites inassembly.rs. Noexecutable_pathorrunning_daemon_executableis left inpackages/.DaemonProfile.extensions, empty for core, compared as a set: met.product_checkcomparesBTreeSets, so order and repeats don't matter, and no id is named.- Test that a different set is booted out and an equal set is kept: met by
a_daemon_without_the_profiles_extensions_is_booted_out_and_an_equal_set_is_kept, plus the unit tests inproduct_check_testsandproduct_eviction_tests. - Test with an extension-carrying daemon on the socket and a core profile: met. The existing
another_products_daemon_that_...keeps_the_hold_ontests now report["fixture"]againstcommunity(). types:checkandgen:types: not applicable, since the wire type is proto, not a promotednodespace-typestype. Runbun run test:changedbefore queueing.
CLAUDE.md rules
- No backward compatibility: clean. The "predates the report" empty-string special case is deleted. An old daemon that sends the path at tag 2 decodes as a one-element id set, so it mismatches and is evicted, which is the right outcome.
- No dead code or suppressions.
- Sync boundary: ids such as
"fixture","custom"and"other"appear only in tests and doc comments.runs_profile_binarykeeps the file-name comparison for the foreign launchd plist check incoexistence.rs. That is a separate question (what a registration runs, not what a daemon reports) and is legitimately retained.
Findings
Critical Issues
None.
Suggested Improvements
packages/desktop-app/src/lib/components/layout/other-daemon-banner.svelte(lines 18-52): the banner still reads "Another NodeSpace background service is running ({executable})" and the variable is still namedexecutable. It now renders a list of extension ids, which means nothing to a user. When the other daemon reports no ids, the user sees the id-less variant. Either drop the parenthetical or reword it, and rename the variable. The doc comment was updated but the user-visible copy was not. Check whether a banner test asserts the old text.- Docs:
architecture/daemon-cli-lifecycle.md(Startup Ordering table, around lines 132-135) still says "answers with its binary", "Another binary answers" and "never says which binary it runs". The issue asks for this file to be updated in the same change.extension-points.mdalready describesextensionscorrectly. The docs repo is outside this PR, so push the lifecycle update beforebun run merge.
Nitpicks
- Nit:
Answering::Other(String)andrecord_other_daemon(Option<String>)carry the ids as a", "-joined string, which round-trips throughget_other_daemonto the frontend. AVec<String>would keep the data structured, and joining would then happen only at the display edge. Acceptable for now since the only consumer is a notice. - Nit:
coexistence.rsdoc line wraps awkwardly after the edit ("...reported here, and the app reports ... until a"). - Nit: the nested
fn idsinsideproduct_checkcould be a closure or a one-linecollect::<BTreeSet<_>>()at each call site.
Collaborator
Author
|
Address-review summary (no code changes in this PR):
Re-review: not needed (docs-only follow-up). |
…utable name (closes #3689) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
malibio
force-pushed
the
issue-3689-daemon-extension-ids
branch
from
October 7, 2026 11:39
863c3bb to
0a2793c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #3689.
GetDaemonVersionreportssupported_extensions(fromDaemonExtensions::supported_extension); the executable-path field is gone from the proto and daemon.DaemonProfilegainsextensions(core: empty); the product check compares the sets and re-registers on a mismatch. Core names no id.binary_namestays as the sidecar to install. Launchd-plist program check keeps a file-name comparison (runs_profile_binary).🤖 Generated with Claude Code