@@ -685,6 +685,21 @@ function DeviceIntegrationControls({
685685 }
686686 } ;
687687
688+ const checkVersions = state . supportsToolInspection ? (
689+ < Button
690+ size = "sm"
691+ variant = "outline"
692+ disabled = { ! environmentId || pending !== null || busy }
693+ onClick = { ( ) => {
694+ if ( ! environmentId ) return ;
695+ setPending ( "check" ) ;
696+ void list ( { environmentId, input : { inspectOnly : true } } ) . finally ( ( ) => setPending ( null ) ) ;
697+ } }
698+ >
699+ { pending === "check" ? "Checking…" : "Check versions" }
700+ </ Button >
701+ ) : null ;
702+
688703 return (
689704 < >
690705 < SettingsRow
@@ -695,6 +710,7 @@ function DeviceIntegrationControls({
695710 control = {
696711 < >
697712 < DeviceToolVersions
713+ action = { checkVersions }
698714 kind = "hub"
699715 tools = { state . hosts . find ( ( host ) => host . kind === "local" ) ?. tools }
700716 />
@@ -758,6 +774,7 @@ function DeviceIntegrationControls({
758774 control = {
759775 < >
760776 < DeviceToolVersions
777+ action = { checkVersions }
761778 kind = "agent"
762779 tools = { state . hosts . find ( ( host ) => host . kind === "local" ) ?. tools }
763780 />
@@ -780,31 +797,6 @@ function DeviceIntegrationControls({
780797 </ >
781798 }
782799 />
783- < SettingsRow
784- title = "Device tools"
785- description = "Managed by this environment. Updates install automatically when needed."
786- control = {
787- < div className = "flex items-center gap-4" >
788- < DeviceToolVersions tools = { state . hosts . find ( ( host ) => host . kind === "local" ) ?. tools } />
789- { state . supportsToolInspection ? (
790- < Button
791- size = "sm"
792- variant = "outline"
793- disabled = { ! environmentId || pending !== null || busy }
794- onClick = { ( ) => {
795- if ( ! environmentId ) return ;
796- setPending ( "check" ) ;
797- void list ( { environmentId, input : { inspectOnly : true } } ) . finally ( ( ) =>
798- setPending ( null ) ,
799- ) ;
800- } }
801- >
802- { pending === "check" ? "Checking…" : "Check versions" }
803- </ Button >
804- ) : null }
805- </ div >
806- }
807- />
808800 { environmentId ? (
809801 < DeviceHostUpdates
810802 state = { { ...state , hosts : state . hosts . filter ( ( host ) => host . kind === "local" ) } }
0 commit comments