pi-agent: Implement field Protocol Probe

This commit is contained in:
proxyctl coordinator
2026-07-18 00:27:12 +08:00
parent 21dd67cf54
commit 02b49d5112
8 changed files with 482 additions and 67 deletions
@@ -4,16 +4,16 @@
**Blocked by:** 08 — Deliver the mature Profile editor.
**Status:** ready-for-agent
**Status:** done
- [ ] The applicable URL field visibly offers Protocol Probe and documents its keyboard shortcut.
- [ ] Probe never runs when the form opens, when focus changes, or when a Profile is saved.
- [ ] Progress, endpoint-safe status, and detected capabilities render with the initiating field rather than as unrelated global status.
- [ ] HTTP-only detection populates the established HTTP representation.
- [ ] SOCKS5-only detection preserves the established `socks5h` semantics.
- [ ] Dual HTTP/SOCKS5 detection creates the established compatible Advanced Profile values.
- [ ] Editing the relevant URL, changing mode, saving, or cancelling invalidates an in-flight result.
- [ ] Repeated invocation while the same probe is active does not start duplicate work.
- [ ] Userinfo and credentials never appear in dial evidence, status, errors, or rendered frames.
- [ ] Failure and unrecognized-protocol results leave user input editable and do not prevent saving a manually chosen value.
- [ ] Complete-Model tests cover all capabilities, failure, explicit invocation, no hidden network work, duplicate suppression, resize, and every stale-result path.
- [x] The applicable URL field visibly offers Protocol Probe and documents its keyboard shortcut.
- [x] Probe never runs when the form opens, when focus changes, or when a Profile is saved.
- [x] Progress, endpoint-safe status, and detected capabilities render with the initiating field rather than as unrelated global status.
- [x] HTTP-only detection populates the established HTTP representation.
- [x] SOCKS5-only detection preserves the established `socks5h` semantics.
- [x] Dual HTTP/SOCKS5 detection creates the established compatible Advanced Profile values.
- [x] Editing the relevant URL, changing mode, saving, or cancelling invalidates an in-flight result.
- [x] Repeated invocation while the same probe is active does not start duplicate work.
- [x] Userinfo and credentials never appear in dial evidence, status, errors, or rendered frames.
- [x] Failure and unrecognized-protocol results leave user input editable and do not prevent saving a manually chosen value.
- [x] Complete-Model tests cover all capabilities, failure, explicit invocation, no hidden network work, duplicate suppression, resize, and every stale-result path.