fix: pass the provider list to create_server_dict in the cli #178
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/cli-connect-args"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
#132: both cli call sites (establish_connection and set_hop) pass (server_dict, protocol_dict) to utils.create_server_dict, whose signature is (current_dict, protocol_dict, SUPPORTED_PROVIDERS) with no default — so
-cand-vdie on TypeError before reaching the service. Inherited from upstream; the cli connect path has never run since the fork.Fix
Pass the module's existing SUPPORTED_PROVIDERS alias at both sites, matching the gui's three call sites.
Landing this before #125 on purpose: the catalog extraction absorbs create_server_dict as the model's connect-time projection, and refactoring a path that has never run can't be verified as behavior-preserving. This gives #125 a live-tested baseline.
Checked while here: the service methods the path hits (connect_to_server
a{ss}, set_hop, disconnect) are the same ones the gui uses, and the hop dict'shop: 1marker the gui sets is never read by the service or tunnel — only the main dict's hop value is (tunnel.py:58), which the cli sets. So this one argument is the whole of #132.Verification
-c/-vrun pending — steps belowRelated fixes #132
🤖 Generated with Claude Code