WHEN Joko Widodo came to power last year, he promised to be decisive and to stand up for Indonesia. On April 29th he seemed to fulfil both promises when Indonesia went ahead with the executions of eight convicted drug-smugglers, all but one of them foreign (see article).

Their fates, which hung on the pen of the president, have strained Indonesia’s foreign relations. Australia has snapped, withdrawing its ambassador, for now (see article). The executions may throw light on how Jokowi, as he is known, intends to conduct his foreign policy. If so, he risks damage to Indonesia’s international standing. Only a few months ago, pundits said the chief risk under Jokowi was that handling foreign matters would hardly feature at all.

In terms of its population (250m) and its economy ($870 billion), Indonesia is the giant of South-East Asia. But geographically disparate, chronically underdeveloped and wracked by political instability after the fall of Suharto in 1998, it has punched below its weight diplomatically. That began to change under Jokowi’s predecessor, Susilo Bambang Yudhoyono. Indonesia joined the G20, took an increasingly assertive role in climate-change talks and encouraged pluralism among developing countries at the Bali Democracy Forum. Indonesia assumed a larger role within the often dithering ten-country Association of South-East Asian Nations (ASEAN). Other members welcomed it.

Mr Yudhoyono pursued a foreign policy of “a thousand friends and zero enemies”. By the end, it came to look less like an expression of universal goodwill than an excuse to avoid hard choices. Still, Indonesia began to play a role on the world stage that was more commensurate with its size. Mr Yudhoyono seemed a foreign-affairs heavyweight compared with Jokowi, a former mayor with no foreign-policy experience.

Yet even before the latest executions (Mr Yudhoyono introduced a moratorium on capital punishment), Jokowi had signalled a break with the past. He abandoned the “thousand friends” policy after returning from his first foreign trip as president. He said that he would favour those countries “who give the most benefit to the people. What’s the point of having many friends if we only get the disadvantages?”

Closest to home, the approach entails a more hard-nosed view of ASEAN. Rizal Sukma, a Jokowi foreign-policy adviser and a one-time advocate of Indonesia playing a more assertive regional role, says that whereas Indonesia once called ASEAN “the cornerstone of our foreign policy, now we change it to a cornerstone”. An ambassador in Jakarta says Jokowi would like ASEAN to be “a place where he can get business done”. He seems to have little patience for its consensual, process-driven flummery.