Skip to content

feat(coc): add tunnel ID field to Add Agent dialog#103

Merged
plusplusoneplusplus merged 1 commit into
mainfrom
pr/4fd634160-featcoc-add-tunnel-id-field-to-add-agent
May 16, 2026
Merged

feat(coc): add tunnel ID field to Add Agent dialog#103
plusplusoneplusplus merged 1 commit into
mainfrom
pr/4fd634160-featcoc-add-tunnel-id-field-to-add-agent

Conversation

@plusplusoneplusplus
Copy link
Copy Markdown
Owner

Summary

  • Adds a conditional Tunnel ID input to the Add Agent dialog, matching the edit form behavior
  • The field is shown only when the address URL ends with .devtunnels.ms
  • Updates the onAdd callback signature from (address, name?) to (address, name?, tunnelId?)
  • Resets tunnel ID state on successful submit
  • Adds 15 tests covering conditional rendering, onAdd wiring, error handling, and submit button state

Previously, users had to add the agent first (without a tunnel ID) and then click the pencil edit button to set one. Now the field is available directly in the Add dialog.

Test plan

  • Add an agent with a .devtunnels.ms address — tunnel ID field appears
  • Add an agent with a local address — tunnel ID field absent
  • Fill in tunnel ID and verify it is saved on the new agent
  • Change address from devtunnels to localhost — tunnel ID field disappears
  • All 15 new unit tests pass

🤖 Generated with Claude Code

Show the tunnel ID input in the Add Agent dialog when the address ends
with .devtunnels.ms, matching the edit form behavior. Previously, users
had to add the agent first and then edit it to set a tunnel ID.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@plusplusoneplusplus plusplusoneplusplus merged commit c7c49f7 into main May 16, 2026
27 checks passed
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