Skip to content

Commit 960660f

Browse files
authored
Merge PR #473: Add open-activity command
Add open-activity command
2 parents 3d69076 + 2e10893 commit 960660f

4 files changed

Lines changed: 34 additions & 0 deletions

File tree

client/app.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4435,6 +4435,14 @@ class ClaudeOrchestrator {
44354435
}
44364436
break;
44374437

4438+
case 'open-activity':
4439+
try {
4440+
this.activityFeedPanel?.show?.();
4441+
} catch (e) {
4442+
console.error('Failed to open activity feed:', e);
4443+
}
4444+
break;
4445+
44384446
case 'open-queue':
44394447
this.showQueuePanel?.().catch?.((err) => console.error('Failed to open queue:', err));
44404448
break;

server/commandRegistry.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,17 @@ class CommandRegistry {
254254
}
255255
});
256256

257+
this.register('open-activity', {
258+
category: 'process',
259+
description: 'Open the Activity feed panel',
260+
params: [],
261+
examples: [],
262+
handler: (params, { io }) => {
263+
io.emit('commander-action', { action: 'open-activity' });
264+
return { message: 'Opening Activity feed' };
265+
}
266+
});
267+
257268
// ============ PROCESS / WORKFLOW COMMANDS ============
258269

259270
this.register('open-queue', {

server/voiceCommandService.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,18 @@ class VoiceCommandService {
252252
command: 'open-telemetry',
253253
extractParams: () => ({})
254254
},
255+
// Open activity feed
256+
{
257+
patterns: [
258+
/open\s+activity/i,
259+
/show\s+activity/i,
260+
/activity\s+feed/i,
261+
/open\s+activity\s+feed/i,
262+
/show\s+activity\s+feed/i,
263+
],
264+
command: 'open-activity',
265+
extractParams: () => ({})
266+
},
255267
// Highlight worktree
256268
{
257269
patterns: [

tests/unit/voiceCommandService.test.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ describe('VoiceCommandService (rule parsing)', () => {
4949
const telemetry = voiceCommandService.parseWithRules('open telemetry');
5050
expect(telemetry.command).toBe('open-telemetry');
5151

52+
const activity = voiceCommandService.parseWithRules('open activity');
53+
expect(activity.command).toBe('open-activity');
54+
5255
const advice = voiceCommandService.parseWithRules('open advisor');
5356
expect(advice.command).toBe('open-advice');
5457

0 commit comments

Comments
 (0)