@@ -386,16 +386,37 @@ const commandsMap: (
386
386
} ) ;
387
387
console . log ( "FIRST PEARAI LAUNCH FLAG RESET" ) ;
388
388
} ,
389
- "pearai.focusCreatorView" : async ( ) => {
390
- vscode . commands . executeCommand ( "roo-cline.SidebarProvider.focus" ) ;
389
+ "pearai.focusAgentView" : async ( ) => {
390
+ try {
391
+ vscode . commands . executeCommand ( 'workbench.action.switchToPearAIIntegrationIconBar' , { view : 'agent' } ) ;
392
+ } catch ( e ) {
393
+ console . error ( "Failed to focus pearai-roo-cline sidebar:" , e ) ;
394
+ }
395
+ vscode . commands . executeCommand ( "pearai-roo-cline.SidebarProvider.focus" ) ;
396
+
391
397
} ,
392
398
"pearai.focusPearAIMem0View" : async ( ) => {
399
+ try {
400
+ vscode . commands . executeCommand ( 'workbench.action.switchToPearAIIntegrationIconBar' , { view : 'memory' } ) ;
401
+ } catch ( e ) {
402
+ console . error ( "Failed to focus pearai-roo-cline sidebar:" , e ) ;
403
+ }
393
404
vscode . commands . executeCommand ( "pearai.mem0View.focus" ) ;
394
405
} ,
395
406
"pearai.focusPearAISearchView" : async ( ) => {
407
+ try {
408
+ vscode . commands . executeCommand ( 'workbench.action.switchToPearAIIntegrationIconBar' , { view : 'search' } ) ;
409
+ } catch ( e ) {
410
+ console . error ( "Failed to focus pearai-roo-cline sidebar:" , e ) ;
411
+ }
396
412
vscode . commands . executeCommand ( "pearai.searchView.focus" ) ;
397
413
} ,
398
414
"pearai.focusContinueInput" : async ( ) => {
415
+ try {
416
+ vscode . commands . executeCommand ( 'workbench.action.switchToPearAIIntegrationIconBar' , { view : 'chat' } ) ;
417
+ } catch ( e ) {
418
+ console . error ( "Failed to focus pearai-roo-cline sidebar:" , e ) ;
419
+ }
399
420
const fullScreenTab = getFullScreenTab ( ) ;
400
421
if ( ! fullScreenTab ) {
401
422
// focus sidebar
@@ -408,6 +429,11 @@ const commandsMap: (
408
429
await addHighlightedCodeToContext ( sidebar . webviewProtocol ) ;
409
430
} ,
410
431
"pearai.focusContinueInputWithoutClear" : async ( ) => {
432
+ try {
433
+ vscode . commands . executeCommand ( 'workbench.action.switchToPearAIIntegrationIconBar' , { view : 'chat' } ) ;
434
+ } catch ( e ) {
435
+ console . error ( "Failed to focus pearai-roo-cline sidebar:" , e ) ;
436
+ }
411
437
const fullScreenTab = getFullScreenTab ( ) ;
412
438
413
439
const isContinueInputFocused = await sidebar . webviewProtocol . request (
0 commit comments