Commit c2ec352
committed
fix(agent): correct tuple variant pattern + no-snapshot + error message
Three issues from Copilot review:
1. AgentCommand::Run { .. } -> AgentCommand::Run(_) — Run is a tuple
variant; struct pattern does not compile.
AgentCommand::RunCloud { .. } -> AgentCommand::RunCloud(_) for same
reason (already correct in command_requires_cloud_services, now fixed
in command_requires_hosted_auth).
2. Remove args.snapshot.no_snapshot from local_agent_run_uses_cloud_services.
--no-snapshot only disables upload; snapshot upload is already skipped
in local-only builds, so rejecting it is overly restrictive.
3. Improve cloud-service-unavailable error message to name the specific
cloud-only flags (--task-id, --share, --environment) and clarify that
'cast-codes agent run' itself is valid in local-only builds.1 parent a964c87 commit c2ec352
1 file changed
Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1397 | 1397 | | |
1398 | 1398 | | |
1399 | 1399 | | |
1400 | | - | |
| 1400 | + | |
| 1401 | + | |
1401 | 1402 | | |
1402 | 1403 | | |
1403 | 1404 | | |
| |||
1406 | 1407 | | |
1407 | 1408 | | |
1408 | 1409 | | |
1409 | | - | |
1410 | | - | |
| 1410 | + | |
| 1411 | + | |
1411 | 1412 | | |
1412 | 1413 | | |
1413 | 1414 | | |
| |||
1458 | 1459 | | |
1459 | 1460 | | |
1460 | 1461 | | |
1461 | | - | |
| 1462 | + | |
| 1463 | + | |
| 1464 | + | |
1462 | 1465 | | |
1463 | 1466 | | |
1464 | 1467 | | |
| |||
0 commit comments