mirror of
https://github.com/usestrix/strix.git
synced 2026-11-16 09:21:54 +00:00
fix(cloud): show effective scopes in recovery instructions
This commit is contained in:
parent
99cf8c4950
commit
f13c192ff7
2 changed files with 2 additions and 2 deletions
|
|
@ -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},
|
||||
),
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue