From ef8820e4e4068bf285ae33bd867e6556a90489ad Mon Sep 17 00:00:00 2001 From: Luis Pater Date: Thu, 11 Sep 2025 21:09:27 +0800 Subject: [PATCH] Default `tokenType` to an empty string instead of "gemini" in `watcher.go` and `run.go`. --- internal/cmd/run.go | 2 +- internal/watcher/watcher.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/cmd/run.go b/internal/cmd/run.go index 2d5d0527..1b2119c9 100644 --- a/internal/cmd/run.go +++ b/internal/cmd/run.go @@ -79,7 +79,7 @@ func StartService(cfg *config.Config, configPath string) { } // Determine token type from JSON data, defaulting to "gemini" if not specified. - tokenType := "gemini" + tokenType := "" typeResult := gjson.GetBytes(data, "type") if typeResult.Exists() { tokenType = typeResult.String() diff --git a/internal/watcher/watcher.go b/internal/watcher/watcher.go index fd75d24b..6a647c90 100644 --- a/internal/watcher/watcher.go +++ b/internal/watcher/watcher.go @@ -335,7 +335,7 @@ func (w *Watcher) createClientFromFile(path string, cfg *config.Config) (interfa return nil, nil // Not an error, just nothing to process yet. } - tokenType := "gemini" + tokenType := "" typeResult := gjson.GetBytes(data, "type") if typeResult.Exists() { tokenType = typeResult.String()