fix(agentcompat): decouple auto-lockdown and telemetry-only mode under agentcompat build tag

This commit is contained in:
Bot
2026-09-04 19:13:27 +08:00
parent 5d0da5490c
commit 5665e0aaa1
4 changed files with 50 additions and 20 deletions
+1 -1
View File
@@ -163,7 +163,7 @@ func (a *authHandler) check(ctx context.Context) (uint64, error) {
if !hasID {
s := model.Server{UUID: clientUUID, Name: petname.Generate(2, "-"), Common: model.Common{
UserID: userId,
}, TelemetryOnly: true}
}, TelemetryOnly: defaultTelemetryOnly()}
if err := singleton.DB.Create(&s).Error; err != nil {
return 0, status.Error(codes.Unauthenticated, err.Error())
}