Skip to content

Add get_daemon#19

Merged
InftyAI-Agent merged 4 commits into
InftyAI:mainfrom
kerthcet:feat/add-get_daemon
Jun 16, 2026
Merged

Add get_daemon#19
InftyAI-Agent merged 4 commits into
InftyAI:mainfrom
kerthcet:feat/add-get_daemon

Conversation

@kerthcet

Copy link
Copy Markdown
Member

What this PR does / why we need it

Which issue(s) this PR fixes

Fixes #

Special notes for your reviewer

Does this PR introduce a user-facing change?


Signed-off-by: kerthcet <kerthcet@gmail.com>
Copilot AI review requested due to automatic review settings June 16, 2026 10:32
@InftyAI-Agent InftyAI-Agent added needs-triage Indicates an issue or PR lacks a label and requires one. needs-priority Indicates a PR lacks a label and requires one. do-not-merge/needs-kind Indicates a PR lacks a label and requires one. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Jun 16, 2026
@kerthcet

Copy link
Copy Markdown
Member Author

/lgtm

@kerthcet

Copy link
Copy Markdown
Member Author

/kind feature

@InftyAI-Agent InftyAI-Agent added the lgtm Looks good to me, indicates that a PR is ready to be merged. label Jun 16, 2026
@InftyAI-Agent InftyAI-Agent added feature Categorizes issue or PR as related to a new feature. and removed do-not-merge/needs-kind Indicates a PR lacks a label and requires one. labels Jun 16, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a get_daemon(daemon_id) lookup API to the Rust-backed server and exposes it through the Python Server wrapper, enabling callers to fetch daemon metadata by ID without listing all daemons.

Changes:

  • Add Rust Server.get_daemon() returning daemon info (or None if not connected).
  • Add Python Server.get_daemon() returning Optional[DaemonInfo] and update wait_for_daemon() to use it.
  • Add unit + integration tests for get_daemon.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 6 comments.

File Description
server/src/lib.rs Adds a new PyO3-exposed get_daemon method backed by the daemon registry.
python/sandd/server.py Exposes get_daemon in the Python API and uses it to speed up wait_for_daemon.
python/tests/test_unit.py Adds unit tests validating get_daemon returns None when not found.
python/tests/test_integration.py Adds integration tests for get_daemon with real daemon processes.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread python/tests/test_integration.py
Comment thread python/tests/test_integration.py Outdated
Comment thread python/tests/test_integration.py Outdated
Comment thread python/tests/test_integration.py
Comment thread python/tests/test_integration.py
Comment thread python/sandd/server.py
"""
return ServerStats(self._server.get_stats())

def get_daemon(self, daemon_id: str) -> Optional[DaemonInfo]:
Signed-off-by: kerthcet <kerthcet@gmail.com>
@InftyAI-Agent InftyAI-Agent removed the lgtm Looks good to me, indicates that a PR is ready to be merged. label Jun 16, 2026
kerthcet added 2 commits June 16, 2026 19:01
Signed-off-by: kerthcet <kerthcet@gmail.com>
Signed-off-by: kerthcet <kerthcet@gmail.com>
@kerthcet

Copy link
Copy Markdown
Member Author

/lgtm

@InftyAI-Agent InftyAI-Agent added the lgtm Looks good to me, indicates that a PR is ready to be merged. label Jun 16, 2026

@InftyAI-Agent InftyAI-Agent left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved: PR has both lgtm and approved labels

@InftyAI-Agent InftyAI-Agent merged commit fdde485 into InftyAI:main Jun 16, 2026
12 checks passed
@kerthcet kerthcet deleted the feat/add-get_daemon branch June 16, 2026 11:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. feature Categorizes issue or PR as related to a new feature. lgtm Looks good to me, indicates that a PR is ready to be merged. needs-priority Indicates a PR lacks a label and requires one. needs-triage Indicates an issue or PR lacks a label and requires one.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants