Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 52379c2434 | |||
| 48d17e0e9f |
@@ -5,6 +5,11 @@ All notable changes to the `theta-agent` daemon will be documented in this file.
|
|||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
## [v1.3.0] - 2026-08-04
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
- **Silently ignore `heartbeat_ack`** — the server replies to the agent's own periodic heartbeat with `heartbeat_ack`. The agent had no case for it, so it fell through to the unknown-command handler, logged `Unknown command type: heartbeat_ack` every minute, and answered with a spurious error response. Heartbeat acks are fire-and-forget; the agent now ignores them silently.
|
||||||
|
|
||||||
## [v1.2.0] - 2026-08-03
|
## [v1.2.0] - 2026-08-03
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|||||||
@@ -311,6 +311,13 @@ func handleCommand(cm *ConfigManager, msg WSMessage, c MessageWriter, exec Execu
|
|||||||
respPayload, _ := json.Marshal(resp)
|
respPayload, _ := json.Marshal(resp)
|
||||||
c.WriteMessage(websocket.TextMessage, respPayload)
|
c.WriteMessage(websocket.TextMessage, respPayload)
|
||||||
return
|
return
|
||||||
|
// heartbeat_ack is the server's acknowledgement of the agent's own periodic
|
||||||
|
// heartbeat (the agent sends `heartbeat`, the server answers `heartbeat_ack`).
|
||||||
|
// There is nothing to do with it -- it is not a command to run, and answering
|
||||||
|
// an ack with an error response would inject spurious errors into the
|
||||||
|
// command-response channel every minute. Silently ignore.
|
||||||
|
case "heartbeat_ack":
|
||||||
|
return
|
||||||
default:
|
default:
|
||||||
log.Printf("Unknown command type: %s", msg.Type)
|
log.Printf("Unknown command type: %s", msg.Type)
|
||||||
sendResponse("error", "unknown command type")
|
sendResponse("error", "unknown command type")
|
||||||
|
|||||||
Reference in New Issue
Block a user