Skip to content

Commit 35b381f

Browse files
bashwaramamoodi
authored andcommitted
fix: Update folder security dialog styling (#7886)
1 parent c616f32 commit 35b381f

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

openhands/core/cli.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -618,10 +618,11 @@ def check_folder_security_agreement(current_dir):
618618
f'{current_dir}\n\n'
619619
'OpenHands may read and execute files in this folder with your permission.'
620620
),
621-
style='#ffffff',
621+
style=COLOR_GREY,
622622
read_only=True,
623623
wrap_lines=True,
624-
)
624+
),
625+
style=f'fg:{COLOR_GREY}',
625626
)
626627

627628
clear()
@@ -786,9 +787,6 @@ def on_event(event: Event) -> None:
786787

787788
if not check_folder_security_agreement(current_dir):
788789
# User rejected, exit application
789-
event_stream.add_event(
790-
ChangeAgentStateAction(AgentState.STOPPED), EventSource.ENVIRONMENT
791-
)
792790
return
793791

794792
# Clear the terminal

0 commit comments

Comments
 (0)