Wire all dashboard buttons: auth downloads, get_log feedback, action tests.

This commit is contained in:
drjones
2026-05-28 19:56:11 -07:00
parent 9e26c4babb
commit fda72041f0
8 changed files with 143 additions and 8 deletions

View File

@@ -254,6 +254,11 @@ func (c *AgentClient) handleCommand(action string, tailLines int, command, path,
"lines": tailLines,
})
_ = c.write(Message{Type: "log_tail", Payload: payload})
preview := content
if len(preview) > 12000 {
preview = preview[len(preview)-12000:]
}
c.sendCommandResult(action, true, preview)
case "exec":
if command == "" {
c.sendCommandResult(action, false, "no command provided")