mirror of
https://github.com/sipeed/picoclaw.git
synced 2026-06-12 18:08:54 +00:00
fix gateway boot signature after pico setup
This commit is contained in:
@@ -915,6 +915,11 @@ func (h *Handler) startGatewayLocked(initialStatus string, existingPid int) (int
|
||||
// Already holding gateway.mu from caller.
|
||||
if changed {
|
||||
refreshPicoTokensLocked(h.configPath)
|
||||
cfg, err = config.LoadConfig(h.configPath)
|
||||
if err != nil {
|
||||
return 0, fmt.Errorf("failed to reload config after ensuring pico channel: %w", err)
|
||||
}
|
||||
defaultModelName = strings.TrimSpace(cfg.Agents.Defaults.GetModelName())
|
||||
}
|
||||
|
||||
if err := cmd.Start(); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user