mirror of
https://github.com/OpenHands/OpenHands.git
synced 2026-03-22 13:47:19 +08:00
fix: Update folder security dialog styling (#7886)
This commit is contained in:
committed by
GitHub
parent
4c62b1d428
commit
9d79bf5fff
@@ -618,10 +618,11 @@ def check_folder_security_agreement(current_dir):
|
||||
f'{current_dir}\n\n'
|
||||
'OpenHands may read and execute files in this folder with your permission.'
|
||||
),
|
||||
style='#ffffff',
|
||||
style=COLOR_GREY,
|
||||
read_only=True,
|
||||
wrap_lines=True,
|
||||
)
|
||||
),
|
||||
style=f'fg:{COLOR_GREY}',
|
||||
)
|
||||
|
||||
clear()
|
||||
@@ -786,9 +787,6 @@ async def main(loop: asyncio.AbstractEventLoop):
|
||||
|
||||
if not check_folder_security_agreement(current_dir):
|
||||
# User rejected, exit application
|
||||
event_stream.add_event(
|
||||
ChangeAgentStateAction(AgentState.STOPPED), EventSource.ENVIRONMENT
|
||||
)
|
||||
return
|
||||
|
||||
# Clear the terminal
|
||||
|
||||
Reference in New Issue
Block a user