embed control center cannot read or save Unicode profile names
Bug Description
The embed control center does not URL-decode profile route segments. ProfileManager.create_profile accepts Unicode alphanumeric names, and the UI correctly uses encodeURIComponent, but HTTP handlers pass the encoded name into the profile service. Selecting an existing Unicode profile displays an empty configuration, and saving fails validation.
Steps to Reproduce
- Create a profile named
工作with a configured provider, usinghindsight-embed profile createorProfileManager.create_profile. - Start the embed control center and select that profile.
- The UI requests
/api/profiles/%E5%B7%A5%E4%BD%9C/config. - Read the response, then try saving its quick configuration.
Minimal local regression: create the profile with provider groq, then GET that URL with the control token. The response contains name: "%E5%B7%A5%E4%BD%9C" and provider: null instead of the existing profile configuration.
Expected Behavior
The selected profile can be read, updated, and deleted using its original Unicode name.
Actual Behavior
GET reads a nonexistent percent-encoded profile; POST config rejects the percent signs as an invalid profile name.
Version
1.1.0, commit 5a672f0cdb89f4a3b841770cce2036a5b28b799d
LLM Provider
Not applicable. Reproduced on Windows with Python 3.11.9, using the real control-center HTTP server on a loopback socket; no LLM/database required.
Diagnosis and proposed fix
Decode each segment once after splitting the URL path, retaining guards against decoded path separators and dot segments. A fix with an HTTP create/read/update/delete regression and encoded-separator coverage has been pushed to Web4everyone32/hindsight branch fix/control-center-unicode-profiles. The original regression fails; the fixed control-center suite passes 51 tests.
I prepared a fix for Unicode profile routing in PR #1 on my fork, including regression coverage. All 51 control-center tests pass. I understand upstream restricts external PRs—would a maintainer consider reviewing or cherry-picking this fix?