Skip to content

Commit 691694a

Browse files
Fix TypeScript error: Add 'environment' source type to CommandObservation
- CommandObservation interface now includes 'environment' as a valid source - This allows setup script observations to be properly typed in the frontend - Fixes TypeScript compilation error in chat-interface.tsx
1 parent 7b22bcf commit 691694a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/src/types/core/observations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export interface AgentStateChangeObservation
1111
}
1212

1313
export interface CommandObservation extends OpenHandsObservationEvent<"run"> {
14-
source: "agent" | "user";
14+
source: "agent" | "user" | "environment";
1515
extras: {
1616
command: string;
1717
hidden?: boolean;

0 commit comments

Comments
 (0)