Skip to content

feat: codex/major-change-002: toolbox parity + web search + MCP (one-shot) - #11

Open
Da3dalusCode wants to merge 9 commits into
mainfrom
codex/major-change-002
Open

feat: codex/major-change-002: toolbox parity + web search + MCP (one-shot)#11
Da3dalusCode wants to merge 9 commits into
mainfrom
codex/major-change-002

Conversation

@Da3dalusCode

Copy link
Copy Markdown
Owner

No description provided.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +182 to +188
def _get_exposed_entities(self) -> list[dict[str, Any]]:
if self._exposed_entities is not None:
return self._exposed_entities

exposed: list[dict[str, Any]] = []
for state in self.hass.states.async_all():
if async_should_expose(self.hass, "conversation", state.entity_id):

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Respect per-agent exposure rules when collecting entities

The new ToolsOrchestrator caches exposed entities by calling async_should_expose(self.hass, "conversation", state.entity_id). Because the agent ID is hard‑coded to the literal string "conversation", the check ignores any entity exposure configuration that is specific to this conversation entity (self.agent_id). In a multi‑agent setup this will expose whatever is configured for the default conversation agent, potentially allowing tool executions against entities that the user intentionally hid (or hiding entities that were explicitly exposed) for this agent. Pass self.agent_id to async_should_expose so the exposure logic matches the actual agent being used.

Useful? React with 👍 / 👎.

@Da3dalusCode
Da3dalusCode force-pushed the codex/major-change-002 branch from 340733c to a6aa4b6 Compare October 29, 2025 23: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.

1 participant