Problem
Huabu currently uses an internally generated Agentlet connection token. Users who want additional Agentlet daemons to connect cannot configure the connection token themselves.
Desired behavior
Add one optional Agentlet connection token setting:
- When the setting contains a non-empty token, Huabu uses that configured value as the Agentlet connection token.
- When the setting is absent or empty, Huabu falls back to the existing internally generated connection token behavior.
- The configured token applies consistently to the Huabu/Agentlet connection path that currently uses the generated token.
Scope
- Add the optional persisted setting and Settings UI control.
- Wire the effective value into Agentlet connection/authentication.
- Preserve the current internally generated token as the default fallback.
- Make configuration changes take effect using the lifecycle required by the existing Agentlet connection (for example, reconnect/restart if that is already necessary).
- Do not expose the token in ordinary logs or error messages.
Acceptance criteria
Non-goals
- Per-daemon credentials, enrollment flows, token rotation/revocation, expiry, audit UI, daemon identity management, or a broader multi-Agentlet management system.
Related
Problem
Huabu currently uses an internally generated Agentlet connection token. Users who want additional Agentlet daemons to connect cannot configure the connection token themselves.
Desired behavior
Add one optional Agentlet connection token setting:
Scope
Acceptance criteria
Non-goals
Related