mirror of
https://github.com/BaaRai/ARTEX.git
synced 2026-11-27 10:20:54 +08:00
chore: address review feedback on skill hint, triage logging, and archive log level
This commit is contained in:
@@ -1437,7 +1437,7 @@ func warnBrokenSkills(dir string) {
|
||||
if s.Dir == "" || s.Name == filepath.Base(s.Dir) {
|
||||
continue
|
||||
}
|
||||
slog.Warn("[skill] frontmatter did not parse", "skill", s.Name, "path", filepath.Join(s.Dir, "SKILL.md"))
|
||||
slog.Warn("[skill] frontmatter did not parse (loaded under directory name; fix YAML in SKILL.md)", "skill", s.Name, "path", filepath.Join(s.Dir, "SKILL.md"))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -157,7 +157,7 @@ func (s *Server) deleteRemoteTaskArchive(job *pgdb.TaskArchive) error {
|
||||
}
|
||||
if err := s.recoverRemoteArchiveJournal(journal); err != nil {
|
||||
// The task is gone; the durable outbox retries the remaining object cleanup.
|
||||
slog.Info("[task-archive] archive deleted, remote cleanup pending", "archive_id", job.ID, "err", err)
|
||||
slog.Warn("[task-archive] archive deleted, remote cleanup pending", "archive_id", job.ID, "err", err)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
+1
-1
@@ -23,10 +23,10 @@ import (
|
||||
// no base_url/model returns nil, and report_finding behaves exactly as before.
|
||||
func (s *Server) triageClient() agent.TriageClient {
|
||||
id := s.triageProfileID()
|
||||
slog.Info("[triage] initialized triage client", "profile_id", id)
|
||||
if id <= 0 {
|
||||
return nil
|
||||
}
|
||||
slog.Info("[triage] initialized triage client", "profile_id", id)
|
||||
p, err := s.m.pg.ProfileByID(id)
|
||||
if err != nil || p == nil {
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user