mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-07-13 12:38:02 +00:00
Stabilize local dev merge
Align regression tests with the current Odysseus behavior after merging origin/dev into local main. - keep phone/name-only contacts valid and cover null email without crashes - pin explicit web-search false form submission in chat.js - update Cookbook dependency/download completion tests for combined live + persisted output - expose SGLang OS package repair hints from backend diagnosis - treat MLX and MLX-community repos as servable on Apple Metal while keeping CUDA behavior unchanged - keep desktop new-chat coverage on the shared preferred-model helper - remove a hardcoded crop overlay portal z-index literal - include the local agent-loop cleanup that removes the old manage_notes reminder repair shim Verified with: docker run --rm -v /home/pewds/odysseus-cookbook-fresh:/app -w /app odysseus-cookbook-fresh-odysseus python3 -m pytest -q (4515 passed, 4 skipped).
This commit is contained in:
@@ -20,7 +20,9 @@ def test_background_status_poll_reconciles_into_local_tasks():
|
||||
source = _read("static/js/cookbookRunning.js")
|
||||
|
||||
assert "const statusById = new Map(tasks.map(t => [t.session_id, t]));" in source
|
||||
assert "const nextStatus = live.status === 'completed'" in source
|
||||
assert "const completedByOutput = depDone || downloadDone;" in source
|
||||
assert "const nextStatus = completedByOutput" in source
|
||||
assert "live.status === 'completed'" in source
|
||||
assert "? 'done'" in source
|
||||
assert ": (live.status === 'error'" in source
|
||||
assert "? 'error'" in source
|
||||
@@ -75,7 +77,8 @@ def test_background_poll_recovers_done_for_stopped_dependency_install():
|
||||
downgrading the card to crashed."""
|
||||
source = _read("static/js/cookbookRunning.js")
|
||||
|
||||
assert "const depDone = !!task.payload?._dep && _depInstallSucceeded(task.output);" in source
|
||||
assert "const combinedOutput = `${task.output || ''}\\n${live.output_tail || ''}`;" in source
|
||||
assert "const depDone = !!task.payload?._dep && _depInstallSucceeded(combinedOutput);" in source
|
||||
assert "(depDone || downloadDone) ? 'done' : (task.type === 'download' ? 'crashed' : 'stopped')" in source
|
||||
|
||||
|
||||
@@ -91,14 +94,14 @@ def test_background_poll_recovers_done_for_completed_download():
|
||||
normalized = " ".join(source.split())
|
||||
assert (
|
||||
"const downloadDone = task.type === 'download' "
|
||||
"&& String(task.output || '').includes('DOWNLOAD_OK');"
|
||||
"&& String(combinedOutput || '').includes('DOWNLOAD_OK');"
|
||||
) in normalized
|
||||
|
||||
|
||||
def test_dependency_install_payload_keeps_env_path_for_refresh():
|
||||
source = _read("static/js/cookbook.js")
|
||||
|
||||
assert "env_path: _envState.envPath || ''" in source
|
||||
assert "env_path: targetEnvPath || ''" in source
|
||||
|
||||
|
||||
def test_local_dependency_probe_refreshes_user_site_visibility():
|
||||
|
||||
Reference in New Issue
Block a user