fix(#683): claw skills remove/add/uninstall/delete emits typed error, exit 1

- Add unsupported skills action guard in parse_args for remove/add/uninstall/delete
- Add unsupported_skills_action to classify_error_kind for structured JSON errors
- Fix pre-existing compile errors (stale retry_after field, missing Team variant)
- Add regression test unsupported_skills_actions_return_typed_error_683
This commit is contained in:
YeonGyu-Kim
2026-05-25 11:27:43 +09:00
parent 0423321cb1
commit 3d02baf567
4 changed files with 107 additions and 9 deletions

View File

@@ -1503,6 +1503,7 @@ fn parse_sse_frame(
body: trimmed.chars().take(500).collect(),
retryable: false,
suggested_action: suggested_action_for_status(status),
});
}
}
@@ -1518,6 +1519,7 @@ fn parse_sse_frame(
body: trimmed.chars().take(200).collect(),
retryable: false,
suggested_action: Some("verify the API endpoint URL is correct".to_string()),
});
}
return Ok(None);
@@ -1569,6 +1571,7 @@ fn parse_sse_frame(
body: payload.chars().take(200).collect(),
retryable: false,
suggested_action: Some("verify the API endpoint URL is correct".to_string()),
});
}
serde_json::from_str::<ChatCompletionChunk>(&payload)