fix: restore StatusResponse daemon config fields and remove duplicate --type flag
Two swarm merge bugs fixed: 1. StatusResponse in protocol.go lost daemon config fields (AutoCommit, AutoPush, LocalMode, SyncInterval, DaemonMode) during merge60ae6586. These were added in4e87ae18but lost when merging bd-zbyb-gusher which had an outdated protocol.go. 2. Duplicate --type flag definition on updateCmd in show.go causing panic on startup. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -276,6 +276,12 @@ type StatusResponse struct {
|
||||
LastActivityTime string `json:"last_activity_time"` // ISO 8601 timestamp of last request
|
||||
ExclusiveLockActive bool `json:"exclusive_lock_active"` // Whether an exclusive lock is held
|
||||
ExclusiveLockHolder string `json:"exclusive_lock_holder,omitempty"` // Lock holder name if active
|
||||
// Daemon configuration
|
||||
AutoCommit bool `json:"auto_commit"` // Whether auto-commit is enabled
|
||||
AutoPush bool `json:"auto_push"` // Whether auto-push is enabled
|
||||
LocalMode bool `json:"local_mode"` // Whether running in local-only mode (no git)
|
||||
SyncInterval string `json:"sync_interval"` // Sync interval (e.g., "5s")
|
||||
DaemonMode string `json:"daemon_mode"` // Sync mode: "poll" or "events"
|
||||
}
|
||||
|
||||
// HealthResponse is the response for a health check operation
|
||||
|
||||
Reference in New Issue
Block a user