@@ -12,7 +12,12 @@ import { RpcApi } from "../frontend/app/store/wshclientapi";
1212import { getWebServerEndpoint } from "../frontend/util/endpoints" ;
1313import * as keyutil from "../frontend/util/keyutil" ;
1414import { fireAndForget , parseDataUrl } from "../frontend/util/util" ;
15- import { incrementTermCommandsRun } from "./emain-activity" ;
15+ import {
16+ incrementTermCommandsDurable ,
17+ incrementTermCommandsRemote ,
18+ incrementTermCommandsRun ,
19+ incrementTermCommandsWsl ,
20+ } from "./emain-activity" ;
1621import { createBuilderWindow , getAllBuilderWindows , getBuilderWindowByWebContentsId } from "./emain-builder" ;
1722import { callWithOriginalXdgCurrentDesktopAsync , unamePlatform } from "./emain-platform" ;
1823import { getWaveTabViewByWebContentsId } from "./emain-tabview" ;
@@ -407,9 +412,21 @@ export function initIpcHandlers() {
407412 console . log ( "fe-log" , logStr ) ;
408413 } ) ;
409414
410- electron . ipcMain . on ( "increment-term-commands" , ( ) => {
411- incrementTermCommandsRun ( ) ;
412- } ) ;
415+ electron . ipcMain . on (
416+ "increment-term-commands" ,
417+ ( event , opts ?: { isRemote ?: boolean ; isWsl ?: boolean ; isDurable ?: boolean } ) => {
418+ incrementTermCommandsRun ( ) ;
419+ if ( opts ?. isRemote ) {
420+ incrementTermCommandsRemote ( ) ;
421+ }
422+ if ( opts ?. isWsl ) {
423+ incrementTermCommandsWsl ( ) ;
424+ }
425+ if ( opts ?. isDurable ) {
426+ incrementTermCommandsDurable ( ) ;
427+ }
428+ }
429+ ) ;
413430
414431 electron . ipcMain . on ( "native-paste" , ( event ) => {
415432 event . sender . paste ( ) ;
0 commit comments