fix(dsh): keep AI waits off task execution and adapt main capabilities
Core regression / Python 3.12 core, intervention UI and release configuration (push) Failing after 21s
Core regression / JavaScript syntax (push) Successful in 3s
Core regression / Python 3.12 core, intervention UI and release configuration (pull_request) Failing after 21s
Core regression / JavaScript syntax (pull_request) Successful in 3s

This commit is contained in:
阿白叔 committed 2026-11-05 17:15:29 +08:00
1 parent 3ecb6fa276
commit eba935e710
24 files changed
+929 -128

No files matched your search

+17
View File
@@ -11,6 +11,23 @@ def setup_view(ui, monkeypatch):
return ui.window._dsh_view
def test_confirmed_operation_rechecks_lane_after_read_preview(ui, monkeypatch):
view = setup_view(ui, monkeypatch)
ctl = ui.window._dsh_operations
ctl.request_id = '7' * 32
other_worker = object()
ui.window._workers.add(other_worker)
called = []
try:
ctl._work(lambda: called.append('mutation'), lambda _: None, request_id='7' * 32)
assert ctl.worker is None
assert ui.window._workers == {other_worker}
assert view.lifecycle_results[-1]['status'] == 'busy'
assert not called
finally:
ui.window._workers.discard(other_worker)
@pytest.mark.parametrize('missing', [False, True])
def test_terminal_history_sums_persisted_counts_and_preserves_unknown(ui, monkeypatch, qtbot, missing):
from dx_productivity.dsh.task_lifecycle import preflight