feat: prepare 2.2.0 with UI and execution fixes
Add dark theme, richer Markdown and readable plugin results. Improve Android input evidence, response integrity and diagnostics. Unify lifecycle, guidance receipts and evidence sources across clients. Keep direct action dispatch without an added AI quota approval layer. Align version metadata at 2.2.0 and bundle Helper 1.2.2. Validation: 3063 backend tests before the version bump; 44 after. Frontend: 317 tests and production build passed.
This commit is contained in:
1 parent
83bcfd54d5
commit
fac4ccb760
146 files changed
+5689
-2033
No files matched your search
@@ -12,6 +12,7 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
import json
|
||||
from unittest.mock import AsyncMock, MagicMock, patch
|
||||
|
||||
from langchain_core.messages import AIMessage, HumanMessage, SystemMessage, ToolMessage
|
||||
@@ -782,6 +783,33 @@ async def test_final_review_distinguishes_actual_delivery_from_report_claims():
|
||||
assert '"verified": false' in failed and "disk full" in failed
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_final_review_receives_actual_source_ids_without_turning_backend_names_into_platforms():
|
||||
ctx = _mock_ctx()
|
||||
ctx.data_engine.get_agent_friendly_steps.return_value = [
|
||||
{
|
||||
"step_id": "real-step",
|
||||
"step_number": 7,
|
||||
"action_taken": {
|
||||
"plugin_id": "reader",
|
||||
"call_id": "real-call",
|
||||
"source_id": "real-source",
|
||||
"source": {"kind": "api", "target_id": "data-service", "label": "安卓业务后台"},
|
||||
},
|
||||
}
|
||||
]
|
||||
text = await _final_check_human_text(ctx)
|
||||
section = text.split(
|
||||
"# Recorded Source Inventory (provenance only, not verified assertions)\n", 1
|
||||
)[1].split("\n\n", 1)[0]
|
||||
value = json.loads(section)
|
||||
assert value["sources"][0]["kind"] == "api"
|
||||
assert value["sources"][0]["references"][0]["call_id"] == "real-call"
|
||||
guide = assemble_checker_prompt_segments("final", [], False)
|
||||
assert "does not by itself prove backend persistence" in guide
|
||||
assert "cannot silently overwrite the recorded result" in guide
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_exploration_review_sees_conversation_and_can_read_earlier_messages():
|
||||
ctx = _mock_ctx()
|
||||
|
||||
Reference in new issue
Block a user