refactor: complete runtime configuration migration

This commit is contained in:
jxxghp
2026-08-22 19:07:07 +08:00
parent d131f8d571
commit 1bb6e36e8c
80 changed files with 1432 additions and 581 deletions
@@ -1,6 +1,7 @@
import unittest
import asyncio
import sys
from dataclasses import replace
from types import ModuleType
from types import SimpleNamespace
from unittest.mock import patch
@@ -101,6 +102,7 @@ class TestTransferFailedRetryButtons(unittest.TestCase):
def test_transfer_ai_retry_callback_schedules_agent_takeover(self):
chain = TransferChain()
chain.runtime_config = replace(chain.runtime_config, ai_agent_enable=True)
history = SimpleNamespace(
id=34,
status=False,
@@ -159,6 +161,7 @@ class TestTransferFailedRetryButtons(unittest.TestCase):
def test_transfer_ai_retry_callback_uses_successful_move_dest_as_source(self):
chain = TransferChain()
chain.runtime_config = replace(chain.runtime_config, ai_agent_enable=True)
captured = {}
history = SimpleNamespace(
id=35,