feat(home): implement count for home auth dispatch requests and enable usage statistics
- Added `count` attribute to `homeAuthCount` requests to improve home message batching. - Enabled usage statistics for home mode by default and added config-level enforcement. - Adjusted failure logging to include detailed metadata in `UsageReporter`. - Updated multiple executors to pass error details to `PublishFailure` for better debugging. - Enhanced unit tests to validate `count` behavior and usage statistics enforcement across components.
This commit is contained in:
@@ -561,6 +561,7 @@ func forceHomeRuntimeConfig(cfg *config.Config) {
|
||||
return
|
||||
}
|
||||
cfg.APIKeys = nil
|
||||
cfg.UsageStatisticsEnabled = true
|
||||
cfg.DisableCooling = true
|
||||
cfg.WebsocketAuth = false
|
||||
cfg.EnableGeminiCLIEndpoint = false
|
||||
@@ -732,6 +733,7 @@ func (s *Service) Run(ctx context.Context) error {
|
||||
homeEnabled := s.cfg != nil && s.cfg.Home.Enabled
|
||||
if homeEnabled {
|
||||
forceHomeRuntimeConfig(s.cfg)
|
||||
redisqueue.SetUsageStatisticsEnabled(true)
|
||||
}
|
||||
|
||||
shutdownCtx, shutdownCancel := context.WithTimeout(context.Background(), 30*time.Second)
|
||||
|
||||
Reference in New Issue
Block a user