feat(agent): worker 单次 run 墙钟默认 600→1200

改默认不动存量行:CREATE 列默认 + 幂等 ALTER COLUMN SET DEFAULT
补旧库列默认(仅影响将来新插入)、seedBuiltins 种子默认、运行时兜底同步 1200。
旧库存量 agent 行保持原值不变。

Claude-Session: https://claude.ai/code/session_01Qx86izpr6f5R53DW864bPB
This commit is contained in:
Autumn-27 committed 2026-08-20 13:17:24 -04:00
1 parent 0fc63ad94e
commit a98081eea9
3 files changed
+8 -6

No files matched your search

+3 -3
View File
@@ -275,14 +275,14 @@ func (s *Server) agentMaxTurns(key string) int {
}
// agentRunSeconds returns the configured wall-clock run budget (seconds) for an
// agent key (0 = unlimited; 600 fallback when no DB or no row, matching schema).
// agent key (0 = unlimited; 1200 fallback when no DB or no row, matching schema).
func (s *Server) agentRunSeconds(key string) int {
if s.m.pg == nil {
return 600
return 1200
}
a, err := s.m.pg.GetAgentByKey(key)
if err != nil || a == nil {
return 600
return 1200
}
return a.RunSecs
}