fix(cloud): show effective scopes in recovery instructions

This commit is contained in:
Samir Hanna Verza 2026-10-28 19:45:18 -03:00
parent 99cf8c4950
commit f13c192ff7
2 changed files with 2 additions and 2 deletions

View file

@ -134,7 +134,7 @@ def _run_scopes_set(console: Console, argv: list[str]) -> int:
http.CloudError(
"the platform updated the session scopes, but the local session "
f"metadata could not be stored: {exc}. Check the active scopes with "
"`strix cloud session show`; fix local storage and rerun the same "
"`strix cloud session scopes`; fix local storage and rerun the same "
"scopes set command to refresh the stored metadata.",
payload={"scopes_updated": True, "local_record_updated": False},
),

View file

@ -162,7 +162,7 @@ def test_session_scope_update_reports_local_storage_failure(
assert payload["local_record_updated"] is False
output = payload["error"]
assert "disk full" in output
assert "session show" in output
assert "session scopes" in output
assert "platform updated the session scopes" in output
assert calls == [("PATCH", "/cli/session")]
assert auth_path.read_text(encoding="utf-8") == before