Skip to content

TUI: wire passcode entry to connect to discovered devices#1

Draft
Copilot wants to merge 4 commits into
mainfrom
copilot/finish-tui-connect-devices
Draft

TUI: wire passcode entry to connect to discovered devices#1
Copilot wants to merge 4 commits into
mainfrom
copilot/finish-tui-connect-devices

Conversation

Copy link
Copy Markdown

Copilot AI commented Mar 23, 2026

The TUI discovered nodes via mDNS but Enter only printed a placeholder — make_connection was never called. This adds an interactive passcode entry flow so users can pair with a discovered device.

Changes

  • AppMode enum (Normal | EnteringPasscode { input: String }) added to App to track input state
  • Passcode entry mode: pressing Enter on a selected node switches to EnteringPasscode; the output pane renders a live input field with cursor glyph
  • make_connection wired up: on confirmation, calls node.make_connection(&discovered_node, &passcode) and displays ✓/✗ result
  • Esc to cancel, status bar updates dynamically to reflect current mode
Node:    my-device
Address: 192.168.1.42
Port:    52341

Enter pairing code (shown on the target device):
  > 1234█

[Enter] confirm   [Esc] cancel

📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.

Co-authored-by: Forsyth-Creations <33364183+Forsyth-Creations@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Forsyth-Creations/tui/sessions/fc3499bd-a315-4328-8ad3-da63dd8b59f8
Copilot AI changed the title [WIP] Add functionality to connect to devices using passcode TUI: wire passcode entry to connect to discovered devices Mar 23, 2026
Copilot AI requested a review from Forsyth-Creations March 23, 2026 03:31
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.

2 participants