Skip to content

feat(host-bash-proxy): resolve and validate target client; pass targetClientId through broadcast#29313

Merged
credence-the-bot[bot] merged 2 commits into
Credence/targeted-host-proxyfrom
targeted-host-proxy/pr-4-proxy-target-routing
May 3, 2026
Merged

feat(host-bash-proxy): resolve and validate target client; pass targetClientId through broadcast#29313
credence-the-bot[bot] merged 2 commits into
Credence/targeted-host-proxyfrom
targeted-host-proxy/pr-4-proxy-target-routing

Conversation

@credence-the-bot
Copy link
Copy Markdown
Contributor

@credence-the-bot credence-the-bot Bot commented May 3, 2026

Summary

  • Add targetClientId? to HostBashProxy.request() input and PendingRequest tracking
  • Resolve target client: validate explicit ID, auto-resolve when single capable client, error when multiple
  • Pass resolvedTargetClientId through broadcastMessage payload and hub options for targeted delivery

Part of plan: targeted-host-proxy.md (PR 4 of 8)


Open in Devin Review

Copy link
Copy Markdown

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

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.

Reviewed commit: a7d81ca123

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread assistant/src/daemon/host-bash-proxy.ts Outdated
Comment on lines +99 to +103
} else if (capableClients.length > 1) {
return Promise.resolve({
content: `Error: multiple clients support host_bash (${capableClients.length} connected). Specify which client to use with \`target_client_id\`. Run \`assistant clients list --capability host_bash\` to see client IDs and labels.`,
isError: true,
});
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 Preserve host_bash execution when multiple clients connected

Returning an error whenever capableClients.length > 1 makes host_bash unusable in multi-client sessions, because no current caller can actually provide a target client: HostShellTool still defines no target_client_id input and its HostBashProxy.instance.request(...) calls never pass targetClientId (see assistant/src/tools/host-terminal/host-shell.ts). Before this change, commands still executed by routing to a recent capable client; after this commit they fail with an instruction users/LLM cannot satisfy through the existing tool interface.

Useful? React with 👍 / 👎.

devin-ai-integration[bot]

This comment was marked as resolved.

@credence-the-bot credence-the-bot Bot merged commit 5a4ec61 into Credence/targeted-host-proxy May 3, 2026
13 checks passed
@credence-the-bot credence-the-bot Bot deleted the targeted-host-proxy/pr-4-proxy-target-routing branch May 3, 2026 02:55
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.

0 participants