fix: Auto-sync RPC client/server versions from CLI version
- Set rpc.ServerVersion from Version in daemon startup - Set rpc.ClientVersion from Version in main.go startup - Eliminates need to manually update RPC versions - Both now use 0.0.0 placeholder, overridden at runtime Amp-Thread-ID: https://ampcode.com/threads/T-03c37f7f-f41e-4b87-8700-d346c21bad30 Co-authored-by: Amp <amp@ampcode.com>
This commit is contained in:
@@ -123,6 +123,9 @@ var rootCmd = &cobra.Command{
|
||||
noAutoImport = true
|
||||
}
|
||||
|
||||
// Sync RPC client version with CLI version
|
||||
rpc.ClientVersion = Version
|
||||
|
||||
// Set auto-flush based on flag (invert no-auto-flush)
|
||||
autoFlushEnabled = !noAutoFlush
|
||||
|
||||
|
||||
Reference in New Issue
Block a user