openhands 1.0.1__py3-none-any.whl → 1.0.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of openhands might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: openhands
3
- Version: 1.0.1
3
+ Version: 1.0.2
4
4
  Summary: OpenHands CLI - Terminal User Interface for OpenHands AI Agent
5
5
  Author-email: OpenHands Team <contact@all-hands.dev>
6
6
  License: MIT
@@ -8,8 +8,8 @@ Classifier: Programming Language :: Python :: 3 :: Only
8
8
  Classifier: Programming Language :: Python :: 3.12
9
9
  Classifier: Programming Language :: Python :: 3.13
10
10
  Requires-Python: >=3.12
11
- Requires-Dist: openhands-sdk
12
- Requires-Dist: openhands-tools
11
+ Requires-Dist: openhands-sdk==1.0.0a3
12
+ Requires-Dist: openhands-tools==1.0.0a3
13
13
  Requires-Dist: prompt-toolkit>=3
14
14
  Requires-Dist: typer>=0.17.4
15
15
  Description-Content-Type: text/markdown
@@ -20,12 +20,12 @@ openhands_cli/tui/settings/mcp_screen.py,sha256=LMdcGD6DfwZQ4jnp-KM4gYiPXfNGHHPA
20
20
  openhands_cli/tui/settings/settings_screen.py,sha256=CRekM2ZgWJ_YgzC-Jg1SgX2YeviU69Hb1cuzi5pVdio,7087
21
21
  openhands_cli/tui/settings/store.py,sha256=tTMvYbdu9gs4GDNBoHFGFJnwm1PfjShgsVoMDjpQJ2Y,3485
22
22
  openhands_cli/user_actions/__init__.py,sha256=Tf-lQj7-6bNl5rohSdcAFApkKbQb-N9JcKZgHa1HF60,501
23
- openhands_cli/user_actions/agent_action.py,sha256=0v6kQPh8iE4CGjARA8vVD_TqSpS-aiscE3ucLC7jlZA,3283
23
+ openhands_cli/user_actions/agent_action.py,sha256=Q0nW6zv7j1D1ys95FCI13rqQhw0sXlw820Dp9qR4WyY,2704
24
24
  openhands_cli/user_actions/exit_session.py,sha256=3u1CqWeYAEYfZi9BFh_dUwvy9aXXuvFbsZUHNGjVzuY,624
25
25
  openhands_cli/user_actions/settings_action.py,sha256=QqWj37CAlrkV6FW9SEmmwsvKzdGyUYv4DlGjUweKsmg,5707
26
26
  openhands_cli/user_actions/types.py,sha256=zMHoJqxmtbxAIq6O3RC-XoGzgbZzWZvRFNMOGW4MViQ,407
27
27
  openhands_cli/user_actions/utils.py,sha256=qPTgP_1shnWgA7itrzTyfEGb_meXO-zq98JzFMUqCx4,6362
28
- openhands-1.0.1.dist-info/METADATA,sha256=GV83vM7e_TD4avAskm3v-ZbwzJ_1EZ-A9jEAOzEF94I,1370
29
- openhands-1.0.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
30
- openhands-1.0.1.dist-info/entry_points.txt,sha256=CltyhTfx4lPndNPQXrZZDj5LmXrYXykVyIqoedPXsas,61
31
- openhands-1.0.1.dist-info/RECORD,,
28
+ openhands-1.0.2.dist-info/METADATA,sha256=5gHL3EOjKBnIudPRwnTlEf6bklW03QK19fV6yXtvxxA,1388
29
+ openhands-1.0.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
30
+ openhands-1.0.2.dist-info/entry_points.txt,sha256=CltyhTfx4lPndNPQXrZZDj5LmXrYXykVyIqoedPXsas,61
31
+ openhands-1.0.2.dist-info/RECORD,,
@@ -44,8 +44,7 @@ def ask_user_confirmation(
44
44
  question = 'Choose an option:'
45
45
  options = [
46
46
  'Yes, proceed',
47
- 'No, reject (w/o reason)',
48
- 'No, reject with reason',
47
+ 'Reject',
49
48
  "Always proceed (don't ask again)",
50
49
  ]
51
50
 
@@ -61,32 +60,18 @@ def ask_user_confirmation(
61
60
  if index == 0:
62
61
  return ConfirmationResult(decision=UserConfirmation.ACCEPT)
63
62
  elif index == 1:
64
- return ConfirmationResult(decision=UserConfirmation.REJECT)
65
- elif index == 2:
63
+ # Handle "Reject" option with optional reason
66
64
  try:
67
- reason_result = cli_text_input(
68
- 'Please enter your reason for rejecting these actions: '
69
- )
70
- except Exception:
71
- return ConfirmationResult(decision=UserConfirmation.DEFER)
72
-
73
- # Support both string return and (reason, cancelled) tuple for tests
74
- cancelled = False
75
- if isinstance(reason_result, tuple) and len(reason_result) >= 1:
76
- reason = reason_result[0] or ''
77
- cancelled = bool(reason_result[1]) if len(reason_result) > 1 else False
78
- else:
79
- reason = str(reason_result or '').strip()
80
-
81
- if cancelled:
65
+ reason = cli_text_input('Reason (and let OpenHands know why): ').strip()
66
+ except (EOFError, KeyboardInterrupt):
82
67
  return ConfirmationResult(decision=UserConfirmation.DEFER)
83
68
 
84
69
  return ConfirmationResult(decision=UserConfirmation.REJECT, reason=reason)
85
- elif index == 3:
70
+ elif index == 2:
86
71
  return ConfirmationResult(
87
72
  decision=UserConfirmation.ACCEPT, policy_change=NeverConfirm()
88
73
  )
89
- elif index == 4:
74
+ elif index == 3:
90
75
  return ConfirmationResult(
91
76
  decision=UserConfirmation.ACCEPT,
92
77
  policy_change=ConfirmRisky(threshold=SecurityRisk.HIGH),