fix(chat): keep ACP conversation recovery working with provider-restored settings #6797
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.52) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.52 · 650 lines diff across 8 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.388
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #6797"
general
weight: 0.35
JasonBuildAI
Goal And Delivered Outcome
open_session(mode="resume_latest")raisedresume_failedand the session stayed unusable. The gap is the recovery-path confirmation added by #6699 (0cec1c0c5); creation must still confirm the choice LoopX just applied.python examples/loopx-chat-acp-adapter-smoke.pyexits 1 (The previous Agent conversation could not be restored.) at basea54c030eeand exits 0 (loopx-chat-acp-adapter-smoke: ok) at this head. The same check was red in the daily full-public fleet on 2026-10-17: run https://github.com/loopx-project/loopx/actions/runs/39068476762, jobfull-public-smokes (3, 330).mainata54c030ee.Author Declaration
Implemented against
examples/loopx-chat-acp-adapter-smoke.pyrestart contract ata54c030eeare the basis.| Criterion (spec clause) | Disposition | Symbol / path | Test or command |
| --- | --- | --- | --- |
| A restart resumes an ACP session with the provider-restored model and effort | implemented |
_ensure_adapter_lockedrecovery path inloopx/chat_runtime.py|tests/test_chat_reasoning_selection.py::test_acp_restart_records_provider_restored_settings_instead_of_failing|| A newly opened session still confirms the requested choice | implemented |
_observed_model_settingscreation call (unchanged) | ACP selection tests intests/test_chat_reasoning_selection.py|| The shipped restart smoke passes | implemented |
examples/loopx-chat-acp-adapter-smoke.py| validation table || The original request remains provenance, separate from the observed identity | implemented |
requested_agent_model_id,requested_agent_reasoning_effort| regression-test assertions |ACPStdioAdapter.start; the ACP adapter deliberately skips reapplyingconfig_valueson resume and may receive noconfigOptionsfromsession/load, so the restored readback is the only truthful identity. Left the creation-path confirmation and the ACP adapter untouched. Verified the pre-existing unrelatedtest_http_replay_withholds_legacy_raw_reasoning_without_rewriting_historyfailure at the same base (see Scope).Scope And Continuation
tests/test_chat_agent_model_http.py::test_http_replay_withholds_legacy_raw_reasoning_without_rewriting_history(aSimpleNamespacestub withoutrecover_exited_turn), reproduces unchanged at basea54c030eeand is not part of this change.Validation
8e284a906619f643f82f56d22d21822a502d5641| Check kind | Result | Public-safe evidence / limitation |
| --- | --- | --- |
|
unit|passed|uv run pytest tests/test_chat_reasoning_selection.py -k acp_restart -q→ 1 passed at this head; the same test under the base source fails withThe previous Agent conversation could not be restored.||
integration|passed| Linux Python 3.11:pytest tests/test_chat_reasoning_selection.py tests/test_chat_acp_startup_timeout.py tests/test_chat_process_recovery.py tests/test_chat_queue_preparation.py tests/test_chat_session_active_turn.py tests/test_chat_codex_defaults.py→ 125 passed ||
real_entrypoint|passed|python examples/loopx-chat-acp-adapter-smoke.py→loopx-chat-acp-adapter-smoke: ok(exit 0); the identical command exits 1 ata54c030eewith the issue's traceback ||
static|passed|ruff check loopx/chat_runtime.py tests/test_chat_reasoning_selection.py→ All checks passed;python scripts/generate_semantic_inventory.py --changed-from HEAD→ no new vocabulary carriers ||
regression_parity|passed| New test red → green and public smoke red → green on the same base/head comparison; no creation-path behavior changed ||
manual|passed(host failures disclosed) |loopx canary premerge --from-git-diffon native Windows: all direct checks passed at the final revision (diff_checkx3,rfc_bilingual_diff,changed_python_py_compile,module_ceiling_colocation;chat_runtime.pystays within its reviewed 2312-line ceiling), and the public boundary scan passed. The catalog canaries (pr-review-command,value-connectors-github-public-probe,install-local,codex-cli-packaged-install,loopx-update) and the three dsh-plugin risk-profile phases fail on this Windows host in files untouched by this diff; manual holdbenchmark_sensitivedoes not apply to this change. |Frontend / Visual Evidence
Type of Change
LoopX Area
Technical Direction
Shared-authority RFC fixture impact
Boundary Checklist
.loopx/,.codex/goals/, and liveACTIVE_GOAL_STATE.md).none.Signed-off-bytrailer (git commit -s).