feat: report agent status to remote server from hooks
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -53,6 +53,10 @@ func RunClaude(r io.Reader, cfg config.Config, event string, w io.Writer) error
|
||||
return err
|
||||
}
|
||||
logx.Append("hook claude event=%s terminalSequence OK title=%q", event, title)
|
||||
recordInbox(cfg, "Claude", event, meta.CWD, title, body)
|
||||
if cfg.Remote.Enabled {
|
||||
reportRemoteHook(cfg, "Claude", event, meta.CWD, "", "")
|
||||
} else if cfg.Inbox.Enabled {
|
||||
recordInbox(cfg, "Claude", event, meta.CWD, title, body)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user