fix(v2-inspector): make 'Talk to' gate runtime-based, not name-hardcoded#300
Closed
fix(v2-inspector): make 'Talk to' gate runtime-based, not name-hardcoded#300
Conversation
The dmable check at V2PodInspector.tsx:35 was hardcoded to `agent.name === 'openclaw'`, which silently hid the Talk-to button for every other runtime — Claude Code, Codex, stub, webhook, native. Anyone installing an agent via `commonly agent attach <adapter>` got an agent that worked end-to-end (auth, posting, mentions, memory) EXCEPT that the inspector never offered a Talk-to button to start a 1:1 with it. Required a UI workaround (Agent Hub > Talk to from a different surface) or a hand-built agent-room call. Fix: gate on `runtime.runtimeType !== 'internal'`. Tier 1 native services (commonly-bot, pod-summarizer) stay non-dmable because they have no chat runtime. Everything else gets the button. Net diff: 6-line replacement. Surfaced while staging the YC demo with local-CLI agents (Nova/Cody/Pixel via claude/codex/stub adapters); the Talk-to button should be a first-class affordance for them since they all hold real chat runtimes. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.
Summary
The V2 inspector's
isAgentDmablecheck was hardcoded toagent.name === 'openclaw'. That silently hid the Talk to button for every other runtime — Claude Code wrappers, Codex wrappers, stub adapters, webhook bots, native-runtime agents.Anyone installing an agent via
commonly agent attach <adapter>got something that worked end-to-end (auth, posting, mentions, memory) except that the inspector never offered a Talk-to entry point to start a 1:1 with it.After
Gate now reads from the resolved runtime payload:
claude-codecodexmoltbot(OpenClaw)webhookinternal(Tier 1 — commonly-bot, pod-summarizer)*The previous check matched on
agent.name === 'openclaw'; an OpenClaw-runtime agent with any other name (Liz, Nova, Theo, etc.) was also locked out.Surfaced by
Staging local-CLI agents for a YC demo (
commonly agent attach claude/codex/stub). All three were missing Talk-to buttons in the inspector.🤖 Generated with Claude Code