feat(gemini-web): Enable config hot-reload and fix Gem selection

This commit is contained in:
hkfires
2025-10-07 20:23:33 +08:00
parent 43665cb649
commit 9bb7df7af7
3 changed files with 20 additions and 7 deletions

View File

@@ -1030,3 +1030,10 @@ func FindReusableSessionIn(items map[string]ConversationRecord, index map[string
}
return ConversationRecord{}, nil, 0, false
}
// SetConfig updates the configuration reference used by the state.
// This allows hot-reload of configuration to take effect for existing
// runtime states that were cached on auth during previous requests.
func (s *GeminiWebState) SetConfig(cfg *config.Config) {
s.cfg = cfg
}