Skip to content

Add AgentCPM preset and fix host picker - #3

Merged
MilitantTurtle merged 1 commit into
mainfrom
agent/add-agentcpm-and-fix-picker
Jul 14, 2026
Merged

Add AgentCPM preset and fix host picker#3
MilitantTurtle merged 1 commit into
mainfrom
agent/add-agentcpm-and-fix-picker

Conversation

@MilitantTurtle

Copy link
Copy Markdown
Owner

What changed

  • Add an explicit reference preset for OpenBMB AgentCPM Explore.
  • Make the native GGUF picker recognize a browser using the Launchpad host's own LAN address without hardcoding interface IPs.
  • Add regression coverage for matching connection endpoints, IPv4-mapped IPv6, remote LAN clients, and request-handler wiring.

Why

The picker previously relied on hostname resolution to enumerate local addresses. On multi-adapter Windows hosts, that lookup can temporarily omit an active interface, causing a same-machine request through the host's LAN URL to receive 403.

The new check compares the normalized request peer address with the accepted socket's local endpoint, while retaining loopback and hostname-resolution fallbacks. A different LAN client remains unable to summon a dialog on the host.

AgentCPM Explore does not publish a complete sampling preset, so its profile is explicitly marked as a Qwen base-model reference rather than a creator-documented preset.

Validation

  • python -m unittest discover -s tests -v — 27 passed
  • python -m py_compile app.py setup.py
  • node --check static/app.js
  • node --check static/settings.js
  • git diff --check
  • Tracked-file scan found no private machine paths, stored credentials, secrets, logs, or runtime state

@MilitantTurtle
MilitantTurtle marked this pull request as ready for review July 14, 2026 13:38
@MilitantTurtle
MilitantTurtle merged commit b4be3e3 into main Jul 14, 2026
2 checks passed
@MilitantTurtle
MilitantTurtle deleted the agent/add-agentcpm-and-fix-picker branch July 14, 2026 13:38
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